diff options
author | NeilBrown <neilb@suse.com> | 2016-01-28 11:57:54 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2016-01-28 11:57:54 +1100 |
commit | 9f7f28ee5030bbed94c4d54a8da908649ccb7ce0 (patch) | |
tree | 9be359fe297b8a3a0cf628e4a1bcb4138ff7cb6f /Detail.c | |
parent | cec72c071bbec386383ec64d25826c4f421efbc0 (diff) | |
download | mdadm-9f7f28ee5030bbed94c4d54a8da908649ccb7ce0.tar.gz |
super0: Fix reporting of devices between 2GB and 4GB
v0.90 metadata can handle devices between 2GB and 4GB, but we need
to treat the 'size' and unsigned. In a couple of places we don't.
URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809447
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -425,8 +425,9 @@ int Detail(char *dev, struct context *c) else printf(" Used Dev Size : unknown\n"); } else - printf(" Used Dev Size : %d%s\n", array.size, - human_size((long long)array.size<<10)); + printf(" Used Dev Size : %lu%s\n", + (unsigned long)array.size, + human_size((unsigned long long)array.size<<10)); } if (array.raid_disks) printf(" Raid Devices : %d\n", array.raid_disks); |