[PATCH 16/34] FIX: Use sysfs to change array parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For external metadata parameters has to be changed via sysfs.
i.e. change of raid_disks requires handshake mdmon<->md (md_allow_write())

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 Grow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Grow.c b/Grow.c
index c72b89f..dae9bbf 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1896,7 +1896,8 @@ static int reshape_array(char *container, int fd, char *devname,
 	sync_metadata(st);
 
 	if (info->array.chunk_size == info->new_chunk &&
-	    reshape.before.layout == reshape.after.layout) {
+	    reshape.before.layout == reshape.after.layout &&
+	    st->ss->external == 0) {
 		array.raid_disks = reshape.after.raid_disks;
 		if (ioctl(fd, SET_ARRAY_INFO, &array) != 0) {
 			int err = errno;

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux