]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Don't complain about missing spares when reshaping a raid0.
authorNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 04:59:24 +0000 (15:59 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 04:59:24 +0000 (15:59 +1100)
commit88c1a083919b53b2e6b4ca71d17e86a26d6e4b8b
treecc75d01adac28437446fa46ea76955b9344fb804
parent86e3692b06f255ead5c290288f0fe9318f75440d
Don't complain about missing spares when reshaping a raid0.

To reshape a RAID0 we convert to RAID4 first.  This makes it look
like it could be degraded and so we are tempted to ensure there are
enough spares.  However this is not appropriate for RAID0, so
explicitly exclude new_level == RAID0 in this check

Reported-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c