Fix regression when using 'grow' to add a bitmap.
When we allowed a devlist to accompany some --grow modes - but not --bitmap - we made --bitmap always fail, in stead of fail of a device was given to add. As 'devs_found' includes the md device, we need to compare against '1'. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
88b496c269
commit
1d8862cf61
2
mdadm.c
2
mdadm.c
|
@ -1646,7 +1646,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
} else if (bitmap_file) {
|
||||
if (size >= 0 || raiddisks || chunk ||
|
||||
layout_str != NULL || devs_found) {
|
||||
layout_str != NULL || devs_found > 1) {
|
||||
fprintf(stderr, Name ": --bitmap changes cannot be "
|
||||
"used with other geometry changes "
|
||||
"in --grow mode\n");
|
||||
|
|
Loading…
Reference in New Issue