diff options
author | Neil Brown <neilb@suse.de> | 2007-10-17 10:28:38 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-10-17 10:28:38 +1000 |
commit | 5cda096425ff640c89f5b2f98611c6956c1a8e97 (patch) | |
tree | cfd521c13d9a23287f429eac2b684ad68cec9327 /super1.c | |
parent | dc2ee6b3e3330d8f8d7af11ae78b6f0e5e2e9d69 (diff) | |
download | mdadm-5cda096425ff640c89f5b2f98611c6956c1a8e97.tar.gz mdadm-5cda096425ff640c89f5b2f98611c6956c1a8e97.tar.xz mdadm-5cda096425ff640c89f5b2f98611c6956c1a8e97.zip |
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).
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); } |