diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 09:35:25 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 09:35:25 +0100 |
commit | f94c116f56cb821bfd619481d94fcd78ab8b53c0 (patch) | |
tree | 423eb85d05606be21826afb51bdfc7f13193c2b1 /Detail.c | |
parent | Manage: be more careful about --add attempts. (diff) | |
download | mdadm-f94c116f56cb821bfd619481d94fcd78ab8b53c0.tar.xz mdadm-f94c116f56cb821bfd619481d94fcd78ab8b53c0.zip |
detail/wait: better handling of monitoring sync action.
Detail: report reshape and check as well as resync and recovery
Wait: if the resync is pending or delayed, wait for that too.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -355,6 +355,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) if (atime) printf(" Update Time : %.24s\n", ctime(&atime)); if (array.raid_disks) { + static char *sync_action[] = {", recovering",", resyncing",", reshaping",", checking"}; char *st; if (avail_disks == array.raid_disks) st = ""; @@ -367,8 +368,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) printf(" State : %s%s%s%s\n", (array.state&(1<<MD_SB_CLEAN))?"clean":"active", st, - (!e || e->percent < 0) ? "" : - (e->resync) ? ", resyncing": ", recovering", + (!e || e->percent < 0) ? "" : sync_action[e->resync], larray_size ? "": ", Not Started"); } if (array.raid_disks) |