]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Print 'Events' more sensibly.
authorNeil Brown <neilb@suse.de>
Mon, 28 Apr 2008 06:29:45 +0000 (16:29 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 28 Apr 2008 06:29:45 +0000 (16:29 +1000)
Instead of MSW.LSW, just print it as a 64bit number.

ChangeLog
super0.c

index fd42b4e1ea69ce7a3c3f9e78c8ccf0997527f056..d96aa868bae3f1ce7b62765c66cc7686336f8108 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@ Changes Prior to this release
        arrays.
     -   Fix problem with failing to add devices to v.large (>4TB) arrays,
        cause by problems with device-size overflow.
+    -   For v0.90 superblocks, print the 'Events' count as a real count,
+       not 2 numbers separated by a dot.
 
 Changes Prior to 2.6.4 release
     -   Make "--create --auto=mdp" work for non-standard device names.
index 0cff1ef02bcedd25e5f2a3d1fc44ef33d7c24889..2ca127e52068fcb74d42467a28ce2a2a5ae0dc68 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -179,7 +179,9 @@ static void examine_super0(struct supertype *st, char *homehost)
                printf("       Checksum : %x - correct\n", sb->sb_csum);
        else
                printf("       Checksum : %x - expected %lx\n", sb->sb_csum, calc_sb0_csum(sb));
-       printf("         Events : %d.%d\n", sb->events_hi, sb->events_lo);
+       printf("         Events : %llu\n",
+              ((unsigned long long)sb->events_hi << 32)
+              + sb->events_lo);
        printf("\n");
        if (sb->level == 5) {
                c = map_num(r5layout, sb->layout);