]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: fix problem with --grow --continue
authorNeilBrown <neilb@suse.de>
Thu, 28 May 2015 06:43:15 +0000 (16:43 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 May 2015 06:43:15 +0000 (16:43 +1000)
commit8e7ddc5f50af00e569ef115e25c635e2d74e90f0
tree4eed94921039455a93790a05949dec2c4e4668d3
parent20c993e2e5ce3131be5e11f81a51f46d4b17f0ac
Grow: fix problem with --grow --continue

If an array is being reshaped using backup space on a 'spare' device,
then
  mdadm --grow --continue
won't find it as by the time it runs, nothing looks like a spare are
more.  The spare has been added to the array, but has no data yet.

So allow reshape_prepare_fdlist to find a newly-incorporated spare and
report this so it can be used.

Reported-by: Xiao Ni <xni@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c