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:
NeilBrown 2013-05-21 16:33:56 +10:00
parent c4b26c643d
commit 4abcbc21b9
1 changed files with 2 additions and 1 deletions

3
Grow.c
View File

@ -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;
}