diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Detail.c | 9 | ||||
-rw-r--r-- | super0.c | 3 | ||||
-rw-r--r-- | super1.c | 4 |
4 files changed, 13 insertions, 5 deletions
@@ -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 @@ -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); @@ -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: @@ -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)) { |