Grow: allow --data-offset to be specified for raid4/5/6
Previously it was rejected for non-RAID10. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
c4b26c643d
commit
4abcbc21b9
3
Grow.c
3
Grow.c
|
@ -1540,7 +1540,8 @@ int Grow_reshape(char *devname, int fd,
|
|||
devname);
|
||||
return 1;
|
||||
}
|
||||
if (data_offset != INVALID_SECTORS && array.level != 10) {
|
||||
if (data_offset != INVALID_SECTORS && array.level != 10
|
||||
&& (array.level < 4 || array.level > 6)) {
|
||||
pr_err("--grow --data-offset not yet supported\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue