]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: fix reshape-array for shrinking reshapes.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 19:59:48 +0000 (06:59 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 19:59:48 +0000 (06:59 +1100)
commitce4783d3d60af3b89e4d06a6948a972d3e1c87cd
treebe047470a6d99b9d7e0fc6eb1f0047c92b338415
parent27a1e5b5a48d89feffb49ceab94e1ac764258f79
Grow: fix reshape-array for shrinking reshapes.

The value in info->array.raid_disks is the total number of
devices, which is the 'after' number when the number is increasing,
and the 'before' number when the number is decreasing.

The code currently assumes it is always the 'after' number - so fix
that.

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