Change "dirty" to "active" in array status
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
This commit is contained in:
parent
a75f2fbcf2
commit
182661f409
|
@ -1,6 +1,7 @@
|
||||||
Changes Prior to 1.9.0 release
|
Changes Prior to 1.9.0 release
|
||||||
- Fix rpm build problem (stray %)
|
- Fix rpm build problem (stray %)
|
||||||
- Minor manpage updates
|
- Minor manpage updates
|
||||||
|
- Change "dirty" status to "active" as it was confusing people.
|
||||||
|
|
||||||
Changes Prior to 1.8.0 release
|
Changes Prior to 1.8.0 release
|
||||||
- Makefile cleanup from Luca Berra <bluca@comedia.it>
|
- Makefile cleanup from Luca Berra <bluca@comedia.it>
|
||||||
|
|
2
Detail.c
2
Detail.c
|
@ -161,7 +161,7 @@ int Detail(char *dev, int brief, int test)
|
||||||
atime = array.utime;
|
atime = array.utime;
|
||||||
printf(" Update Time : %.24s\n", ctime(&atime));
|
printf(" Update Time : %.24s\n", ctime(&atime));
|
||||||
printf(" State : %s%s%s\n",
|
printf(" State : %s%s%s\n",
|
||||||
(array.state&(1<<MD_SB_CLEAN))?"clean":"dirty",
|
(array.state&(1<<MD_SB_CLEAN))?"clean":"active",
|
||||||
array.active_disks < array.raid_disks? ", degraded":"",
|
array.active_disks < array.raid_disks? ", degraded":"",
|
||||||
(!e || e->percent < 0) ? "" :
|
(!e || e->percent < 0) ? "" :
|
||||||
(e->resync) ? ", resyncing": ", recovering");
|
(e->resync) ? ", resyncing": ", recovering");
|
||||||
|
|
|
@ -154,7 +154,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust)
|
||||||
atime = super.utime;
|
atime = super.utime;
|
||||||
printf(" Update Time : %.24s\n", ctime(&atime));
|
printf(" Update Time : %.24s\n", ctime(&atime));
|
||||||
printf(" State : %s\n",
|
printf(" State : %s\n",
|
||||||
(super.state&(1<<MD_SB_CLEAN))?"clean":"dirty");
|
(super.state&(1<<MD_SB_CLEAN))?"clean":"active");
|
||||||
printf(" Active Devices : %d\n", super.active_disks);
|
printf(" Active Devices : %d\n", super.active_disks);
|
||||||
printf("Working Devices : %d\n", super.working_disks);
|
printf("Working Devices : %d\n", super.working_disks);
|
||||||
printf(" Failed Devices : %d\n", super.failed_disks);
|
printf(" Failed Devices : %d\n", super.failed_disks);
|
||||||
|
|
Loading…
Reference in New Issue