diff options
author | NeilBrown <neilb@suse.de> | 2010-07-22 07:45:18 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-07-22 07:45:18 +0200 |
commit | c43f7d91cc15a1eb202e40e435623bf14dc2adb8 (patch) | |
tree | d9be4bd6650cbb592cd9d890022ee7e58467e881 /super0.c | |
parent | Cast to long long before left-shifting too much. (diff) | |
download | mdadm-c43f7d91cc15a1eb202e40e435623bf14dc2adb8.tar.xz mdadm-c43f7d91cc15a1eb202e40e435623bf14dc2adb8.zip |
Don't report Used Dev Size for RAID0.
This number isn't meaningful for RAID0 as a different amount of space
might be used from each device.
It isn't meaningful for linear either, but already was not reported
for linear.
Detail doesn't report it either.
So make --examine not report it.
Signed-off-by: NeilBrown <neilb@suse.de>
Reported-by: Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -113,7 +113,7 @@ static void examine_super0(struct supertype *st, char *homehost) printf(" Creation Time : %.24s\n", ctime(&atime)); c=map_num(pers, sb->level); printf(" Raid Level : %s\n", c?c:"-unknown-"); - if ((int)sb->level >= 0) { + if ((int)sb->level > 0) { int ddsks=0; printf(" Used Dev Size : %d%s\n", sb->size, human_size((long long)sb->size<<10)); |