]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail checks if array has been started or not and includes that in report.
authorNeil Brown <neilb@suse.de>
Mon, 15 May 2006 06:03:05 +0000 (06:03 +0000)
committerNeil Brown <neilb@suse.de>
Mon, 15 May 2006 06:03:05 +0000 (06:03 +0000)
Signed-off-by: Neil Brown <neilb@suse.de>
ChangeLog
Detail.c

index 8f8d94994d199b3cf6b3fa27e3ea731b130fd4d7..a6047ac059fb7fa1131a939f5100f0d531302cc4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@ Changes Prior to this release
        failure.
     -   New 'CREATE' line in mdadm.conf for defaults such as owner, group,
        mode and auto-flag
+    -   --detail checks if array has been started or not and includes that
+       in report.
 
 Changes Prior to 2.4.1 release
     -   Honour --write-mostly when adding to an array without persistent
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);