Zhilong Liu <zlliu@xxxxxxxx> writes: > It doesn't make sense to write_bitmap with less than 2 nodes, > in order to avoid 'write_bitmap' received invalid nodes number, > it would be better to do checking nodes in getopt operations. > > Signed-off-by: Zhilong Liu <zlliu@xxxxxxxx> > --- > such as following method would reproduce the issue. > # mdadm -CR /dev/md0 -l1 -n2 --bitmap=internal /dev/sda /dev/sdb > # mdadm --grow /dev/md0 --bitmap=none > # mdadm --grow /dev/md0 --bitmap=clustered --nodes=1 > # mdadm -X /dev/sda, it would be written internal bitmap. Applied! Thanks, Jes -- 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