]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: do not allow for container operation for the same disks number
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 26 Jan 2011 15:03:33 +0000 (16:03 +0100)
committerNeilBrown <neilb@suse.de>
Fri, 28 Jan 2011 00:25:26 +0000 (10:25 +1000)
commitd7d205bd25d4b5f18907fee12cbc38b934dfc033
treef168c8ccfbd1ace7f24012e59b3a246a1f1efc60
parentaa4cab513d6afb775b2a97c6ed5432fdecfc768b
imsm: FIX: do not allow for container operation for the same disks number

imsm_reshape_super() currently allows for expansion when requested
raid_disks number is the same as current.
This is wrong. Existing in code condition is too weak.
We should allow for expansion when new disks_number is greater
than current only.

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