summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-02-05 15:32:49 +1100
committerNeilBrown <neilb@suse.de>2013-02-05 16:00:50 +1100
commitec1b28fdc0b00b14a6550621951e58f159cb105e (patch)
treed792dbe920d4e274fba02431f26e8080db2d70d6 /Detail.c
parent030419821fb77f9955f2017b4a6d3d8139d6db25 (diff)
Detail: print correct size for large external-metadata arrays.
If externally menaged metadata is in use, array.major_version will be zero, so the test here to consider using get_component_size() is wrong. So if sra is present, use the major_version from there. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Detail.c b/Detail.c
index ff0b6e86..ab49803d 100644
--- a/Detail.c
+++ b/Detail.c
@@ -338,6 +338,8 @@ int Detail(char *dev, struct context *c)
printf(" Array Size : %llu%s\n", (larray_size>>10),
human_size(larray_size));
if (array.level >= 1) {
+ if (sra)
+ array.major_version = sra->array.major_version;
if (array.major_version != 0 &&
(larray_size >= 0xFFFFFFFFULL|| array.size == 0)) {
unsigned long long dsize = get_component_size(fd);