diff options
author | Neil Brown <neilb@suse.de> | 2004-08-11 02:16:01 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2004-08-11 02:16:01 +0000 |
commit | e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1 (patch) | |
tree | 889e38efabcc146f7ee4c59f39c79aae7c783d8d /Examine.c | |
parent | dd0781e50555c32ff2f808ec46f4b03a5693ea47 (diff) | |
download | mdadm-e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1.tar.gz mdadm-e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1.tar.xz mdadm-e5329c3747a4e9eb7addbfaa59b8d5e8688ce2a1.zip |
mdadm-1.7.0mdadm-1.7.0
Diffstat (limited to 'Examine.c')
-rw-r--r-- | Examine.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -174,11 +174,20 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust) printf (" --- adjusting superblock for 2.2/sparc compatability ---\n"); } printf(" Events : %d.%d\n", super.events_hi, super.events_lo); + if (super.events_hi == super.cp_events_hi && + super.events_lo == super.cp_events_lo && + super.recovery_cp > 0 && + (super.state & (1<<MD_SB_CLEAN)) == 0 ) + printf("Sync checkpoint : %d KB (%d%%)\n", super.recovery_cp/2, super.recovery_cp/(super.size/100*2)); printf("\n"); if (super.level == 5) { c = map_num(r5layout, super.layout); printf(" Layout : %s\n", c?c:"-unknown-"); } + if (super.level == 10) + printf(" Layout : near=%d, far=%d\n", + super.layout&255, (super.layout>>8) & 255); + switch(super.level) { case 0: case 4: @@ -209,6 +218,7 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust) if ((dv=map_dev(dp->major, dp->minor))) printf(" %s", dv); printf("\n"); + if (d == -1) printf("\n"); } } if (SparcAdjust == 2) { |