summaryrefslogtreecommitdiffstats
path: root/Examine.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2004-06-04 12:03:19 +0000
committerNeil Brown <neilb@suse.de>2004-06-04 12:03:19 +0000
commitdd0781e50555c32ff2f808ec46f4b03a5693ea47 (patch)
treea423ae6f7033fa5e05dcf60f2b3659e38c9d5cb7 /Examine.c
parent98c6faba80e6db0693f99faf5c6525ef4f1fb680 (diff)
downloadmdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.tar.gz
mdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.tar.xz
mdadm-dd0781e50555c32ff2f808ec46f4b03a5693ea47.zip
mdadm-1.6.0mdadm-1.6.0
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Examine.c b/Examine.c
index 2dd76b5..1f23745 100644
--- a/Examine.c
+++ b/Examine.c
@@ -152,9 +152,8 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust)
printf("\n");
atime = super.utime;
printf(" Update Time : %.24s\n", ctime(&atime));
- printf(" State : %s, %serrors\n",
- (super.state&(1<<MD_SB_CLEAN))?"clean":"dirty",
- (super.state&(1<<MD_SB_ERRORS))?"":"no-");
+ printf(" State : %s\n",
+ (super.state&(1<<MD_SB_CLEAN))?"clean":"dirty");
printf(" Active Devices : %d\n", super.active_disks);
printf("Working Devices : %d\n", super.working_disks);
printf(" Failed Devices : %d\n", super.failed_disks);
@@ -236,8 +235,9 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust)
char sep='=';
char *c=map_num(pers, ap->super.level);
char *d;
- printf("ARRAY /dev/md%d level=%s num-devices=%d UUID=",
- ap->super.md_minor, c?c:"-unknown-", ap->super.raid_disks);
+ printf("ARRAY %s level=%s num-devices=%d UUID=",
+ get_md_name(ap->super.md_minor),
+ c?c:"-unknown-", ap->super.raid_disks);
if (spares) printf(" spares=%d", spares);
if (ap->super.minor_version >= 90)
printf("%08x:%08x:%08x:%08x", ap->super.set_uuid0, ap->super.set_uuid1,