Detail checks if array has been started or not and includes that in report.
Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
parent
5bbb48424b
commit
120230a4fc
|
@ -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
|
||||
|
|
5
Detail.c
5
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);
|
||||
|
|
Loading…
Reference in New Issue