summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-15 08:03:05 +0200
committerNeil Brown <neilb@suse.de>2006-05-15 08:03:05 +0200
commit120230a4fc5a3f8261f002e591c3add3edb370c7 (patch)
tree7315869cc8bf673d2528ece9223a75321bfa9b00 /Detail.c
parentAllow default creation info to to be stored in mdadm.conf (diff)
downloadmdadm-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Detail.c b/Detail.c
index 882ec078..b5f7d189 100644
--- a/Detail.c
+++ b/Detail.c
@@ -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);