]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: Allow for component_size not being set for RAID0 arrays.
authorNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 04:00:38 +0000 (15:00 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 04:00:38 +0000 (15:00 +1100)
commit9468aeac5704bd01d6fd334a0b1c018deb7bf238
tree19caea12d9bf7cfbba5e1b2379e4da7deafb21f8
parentd424212ed9c8d1ff95dca3c35177560baddf6a77
Grow: Allow for component_size not being set for RAID0 arrays.

When an RAID0 is started using SET_ARRAY_INFO ioctl the
component_size will be zero.
This confused the code for reshaping a RAID0 via RAID4.

So if that seems to be the case, fake a believable component_size

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c