diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-08-07 20:54:09 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-08-07 20:54:09 +0200 |
commit | 63d7cc784b7cfb2c6086f33bb6cad873b7d21968 (patch) | |
tree | 4043c2444d638fc9a69e98150a59cca74d45323a /managemon.c | |
parent | Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/md... (diff) | |
download | mdadm-63d7cc784b7cfb2c6086f33bb6cad873b7d21968.tar.xz mdadm-63d7cc784b7cfb2c6086f33bb6cad873b7d21968.zip |
mdmon: use 'recover' instead of 'repair' when activating a spare
Repair sets MD_RECOVERY_REQUESTED in md which may not result in the
spare device being recovered.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'managemon.c')
-rw-r--r-- | managemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c index 94f42962..7a1c0633 100644 --- a/managemon.c +++ b/managemon.c @@ -301,7 +301,7 @@ static void manage_member(struct mdstat_ent *mdstat, } queue_metadata_update(updates); replace_array(a->container, a, newa); - sysfs_set_str(&a->info, NULL, "sync_action", "repair"); + sysfs_set_str(&a->info, NULL, "sync_action", "recover"); } } } |