diff options
author | Lukasz Dorau <lukasz.dorau@intel.com> | 2012-04-20 11:00:25 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-04-23 10:12:33 +1000 |
commit | b51702b82767b726e34d205c9e00a4f61d3044a7 (patch) | |
tree | 8b3e8e073d0e59c5b317e26ef846b96fbd296faf /Grow.c | |
parent | 7ce05701813496571e1f7f79c726aa6e4868bd5f (diff) | |
download | mdadm-b51702b82767b726e34d205c9e00a4f61d3044a7.tar.gz |
fix: correct extending size of raid0 array
Setting "sync_action" to "idle" while extending size of raid0 array
is racy and sometimes fails.
"sync_action" should be set to "frozen" instead.
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r-- | Grow.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1749,7 +1749,7 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, /* do not recync non-existing parity, * we will drop it anyway */ - sysfs_set_str(sra, NULL, "sync_action", "idle"); + sysfs_set_str(sra, NULL, "sync_action", "frozen"); /* go back to raid0, drop parity disk */ sysfs_set_str(sra, NULL, "level", "raid0"); |