From 5cda096425ff640c89f5b2f98611c6956c1a8e97 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 17 Oct 2007 10:28:38 +1000 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/super1.c b/super1.c index 0525a83f..2b096d32 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)); } -- 2.47.3