diff options
author | NeilBrown <neilb@suse.de> | 2012-10-11 14:22:17 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-11 14:22:17 +1100 |
commit | db07d85ef6395d4768c6cdceeb2ea4878bd2a3f4 (patch) | |
tree | a0e049bfc08c2d6fd39ddae5065f9bd49d87f880 /drivers/md | |
parent | 91502f099dfc5a1e8812898e26ee280713e1d002 (diff) | |
download | linux-3.10-db07d85ef6395d4768c6cdceeb2ea4878bd2a3f4.tar.gz linux-3.10-db07d85ef6395d4768c6cdceeb2ea4878bd2a3f4.tar.bz2 linux-3.10-db07d85ef6395d4768c6cdceeb2ea4878bd2a3f4.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 200d0862335..8d93f867adb 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -3782,6 +3782,8 @@ resync_start_store(struct mddev *mddev, const char *buf, size_t len) return -EINVAL; mddev->recovery_cp = n; + if (mddev->pers) + set_bit(MD_CHANGE_CLEAN, &mddev->flags); return len; } static struct md_sysfs_entry md_resync_start = |