]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: don't try to use 'raid_disks' value for a container.
authorNeilBrown <neilb@suse.de>
Wed, 9 Mar 2011 07:50:59 +0000 (18:50 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Mar 2011 07:50:59 +0000 (18:50 +1100)
commiteff4954d9a3e067bf495f7ee1bbe957879b732b4
tree94639534474c8e7da618ec4f66c24d98599d3298
parent817ed7d6d6d92628aabc19e1216cbcbaf8c3450b
Grow: don't try to use 'raid_disks' value for a container.

The 'raid_disks' for a container is zero, so subtracting it
from the given raid_disks to get delta_disks doesn't make sense.

Rather set delta_disks to UnSet and set raid_disks to the requested
number of disks.   This then gets passed to reshape_super() which
can use it as required.

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