Neil Brown: Clarify the avail/used devices sizes with version1 superblock.
Martin F. Krafft
madduck at alioth.debian.org
Tue Apr 22 10:25:58 UTC 2008
Module: mdadm
Branch: upstream-patches
Commit: 5cda096425ff640c89f5b2f98611c6956c1a8e97
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git/?a=commit;h=5cda096425ff640c89f5b2f98611c6956c1a8e97
Author: Neil Brown <neilb at suse.de>
Date: Wed Oct 17 10:28:38 2007 +1000
Clarify the avail/used devices sizes with version1 superblock.
Not all of the device may be available. Of that, not all may be used
(if devices are of different sizes).
---
super1.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/super1.c b/super1.c
index 0525a83..2b096d3 100644
--- a/super1.c
+++ b/super1.c
@@ -182,7 +182,7 @@ 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(" Used Dev Size : %llu%s\n",
+ printf(" Avail Dev Size : %llu%s\n",
(unsigned long long)__le64_to_cpu(sb->data_size),
human_size(__le64_to_cpu(sb->data_size)<<9));
if (__le32_to_cpu(sb->level) >= 0) {
@@ -202,7 +202,7 @@ static void examine_super1(void *sbv, char *homehost)
ddsks*(unsigned long long)__le64_to_cpu(sb->size),
human_size(ddsks*__le64_to_cpu(sb->size)<<9));
if (sb->size != sb->data_size)
- printf(" Used Size : %llu%s\n",
+ printf(" Used Dev Size : %llu%s\n",
(unsigned long long)__le64_to_cpu(sb->size),
human_size(__le64_to_cpu(sb->size)<<9));
}
More information about the pkg-mdadm-commits
mailing list