]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Detail checks if array has been started or not and includes that in report.
[thirdparty/mdadm.git] / Detail.c
index 882ec07835a5bc0529f336e26c2e0a81c601c06c..b5f7d189405ad6fa493a50328c31e0b0b1971b0f 100644 (file)
--- 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);