summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:19 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:19 +1100
commite336254463da8ffa9923118a9c802253d312b8bb (patch)
tree5e251e8b137c5103c6cd58a4338b27f0e783e39f
parent758d3a8e7d3e0620d68d3b9e72ef0747319c6dac (diff)
downloadmdadm-e336254463da8ffa9923118a9c802253d312b8bb.tar.gz
mdadm-e336254463da8ffa9923118a9c802253d312b8bb.tar.xz
mdadm-e336254463da8ffa9923118a9c802253d312b8bb.zip
Change 'Device Size' to 'Used Dev Size'
because it only shows how much of each device is actually used, not how big they are.
-rw-r--r--ChangeLog2
-rw-r--r--Detail.c9
-rw-r--r--super0.c3
-rw-r--r--super1.c4
4 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c584ba1..bd3424e 100644
--- 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
diff --git a/Detail.c b/Detail.c
index 832e0d8..42e9907 100644
--- 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);
diff --git a/super0.c b/super0.c
index d2338a9..2408c25 100644
--- 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:
diff --git a/super1.c b/super1.c
index 1890949..b7d1c99 100644
--- 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)) {