diff options
author | Neil Brown <neilb@suse.de> | 2006-05-15 08:03:05 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-15 08:03:05 +0200 |
commit | 120230a4fc5a3f8261f002e591c3add3edb370c7 (patch) | |
tree | 7315869cc8bf673d2528ece9223a75321bfa9b00 /Detail.c | |
parent | Allow default creation info to to be stored in mdadm.conf (diff) | |
download | mdadm-120230a4fc5a3f8261f002e591c3add3edb370c7.tar.xz mdadm-120230a4fc5a3f8261f002e591c3add3edb370c7.zip |
Detail checks if array has been started or not and includes that in report.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -190,11 +190,12 @@ int Detail(char *dev, int brief, int test) printf(" Intent Bitmap : Internal\n\n"); atime = array.utime; printf(" Update Time : %.24s\n", ctime(&atime)); - printf(" State : %s%s%s\n", + printf(" State : %s%s%s%s\n", (array.state&(1<<MD_SB_CLEAN))?"clean":"active", array.active_disks < array.raid_disks? ", degraded":"", (!e || e->percent < 0) ? "" : - (e->resync) ? ", resyncing": ", recovering"); + (e->resync) ? ", resyncing": ", recovering", + larray_size ? "": ", Not Started"); printf(" Active Devices : %d\n", array.active_disks); printf("Working Devices : %d\n", array.working_disks); printf(" Failed Devices : %d\n", array.failed_disks); |