md: make sure manual changes to recovery checkpoint are saved.
authorNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 03:22:17 +0000 (14:22 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 03:22:17 +0000 (14:22 +1100)
commitdb07d85ef6395d4768c6cdceeb2ea4878bd2a3f4
treea0e049bfc08c2d6fd39ddae5065f9bd49d87f880
parent91502f099dfc5a1e8812898e26ee280713e1d002
md: make sure manual changes to recovery checkpoint are saved.

If you make an array bigger but suppress resync of the new region with
  mdadm --grow /dev/mdX --size=max --assume-clean

then stop the array before anything is written to it, the effect of
the "--assume-clean" is lost and the array will resync the new space
when restarted.
So ensure that we update the metadata in the case.

Reported-by: Sebastian Riemer <sebastian.riemer@profitbricks.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c