]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Change 'Device Size' to 'Used Dev Size'
authorNeil Brown <neilb@suse.de>
Thu, 14 Dec 2006 06:31:19 +0000 (17:31 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 14 Dec 2006 06:31:19 +0000 (17:31 +1100)
because it only shows how much of each device is actually used, not
how big they are.

ChangeLog
Detail.c
super0.c
super1.c

index c584ba19b5ce62f6d80ff984300daa1e98e771e6..bd3424ef90fd6e7270d5ca8a41ce25c2fac99758 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,8 @@ Changes Prior to this release
     -   Increase raid456 stripe cache size if needed to --grow the array.
        The setting used unfortunately requires intimate knowledge of the
        kernel, and it not reset when the reshape finishes.
+    -   Change 'Device Size' to 'Used Dev Size' because it only shows how
+       much of each device is actually used, not how big they are.
 
 Changes Prior to 2.5.6 release
     -   Fix bug which meant "bitmap=xxx" in mdadm.conf was not handled
index 832e0d8719d1adcf861aacfa3406ba48fafd952d..42e990771a7d1f6ea1a0a1cedfa4714ad94b1545 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -168,11 +168,14 @@ int Detail(char *dev, int brief, int test, char *homehost)
                            (larray_size >= 0xFFFFFFFFULL|| array.size == 0)) {
                                unsigned long long dsize = get_component_size(fd);
                                if (dsize > 0)
-                                       printf("    Device Size : %llu%s\n", dsize, human_size((long long)array.size<<10));
+                                       printf("  Used Dev Size : %llu%s\n",
+                                              dsize,
+                                        human_size((long long)array.size<<10));
                                else
-                                       printf("    Device Size : unknown\n");
+                                       printf("  Used Dev Size : unknown\n");
                        } else
-                               printf("    Device Size : %d%s\n", array.size, human_size((long long)array.size<<10));
+                               printf("  Used Dev Size : %d%s\n", array.size,
+                                      human_size((long long)array.size<<10));
                }
                printf("   Raid Devices : %d\n", array.raid_disks);
                printf("  Total Devices : %d\n", array.nr_disks);
index d2338a9d2d689a8518d318b7830a992497307390..2408c25b971e0b633cf382b34b846cc59a211741 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -116,7 +116,8 @@ static void examine_super0(void *sbv, char *homehost)
        printf("     Raid Level : %s\n", c?c:"-unknown-");
        if ((int)sb->level >= 0) {
                int ddsks=0;
-               printf("    Device Size : %d%s\n", sb->size, human_size((long long)sb->size<<10));
+               printf("  Used Dev Size : %d%s\n", sb->size,
+                      human_size((long long)sb->size<<10));
                switch(sb->level) {
                case 1: ddsks=1;break;
                case 4:
index 1890949740d971a70f53d1a303e1a43baa77a94d..b7d1c996e88a824bdd3eb492aef2897b7a891bac 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -174,7 +174,9 @@ static void examine_super1(void *sbv, char *homehost)
        printf("     Raid Level : %s\n", c?c:"-unknown-");
        printf("   Raid Devices : %d\n", __le32_to_cpu(sb->raid_disks));
        printf("\n");
-       printf("    Device Size : %llu%s\n", (unsigned long long)sb->data_size, human_size(sb->data_size<<9));
+       printf("  Used Dev Size : %llu%s\n",
+              (unsigned long long)sb->data_size,
+              human_size(sb->data_size<<9));
        if (__le32_to_cpu(sb->level) >= 0) {
                int ddsks=0;
                switch(__le32_to_cpu(sb->level)) {