]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Grow: fix resent grow_continue breakage.
authorNeilBrown <neilb@suse.de>
Thu, 22 May 2014 04:22:58 +0000 (14:22 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 22 May 2014 04:22:58 +0000 (14:22 +1000)
commit06e293d0970e36b1ed049b9d3ccb21a870e9d2eb
tree4c02a0185af565fdabd73d23791f0a4e23fab812
parent2ecda5a3fa0382c615aebe11111c671357137378
Grow: fix resent grow_continue breakage.

Commit 5e76dce1acd906e8fc8af04973c3a129cdc77fd6 changed
Grow_continue to assume a fork had already happened, so that
   mdadm --grow --continue

didn't fork.  This is good, but it means that if Grow_continue
is run from Assemble, then
  mdadm --assemble ....

can misbehave if the array was in the middle of a reshape.

So introduce finer control.  Grow_continue only assumes it has
already forked if run from "mdadm --grow --continue".

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