]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: add data-offset information to --examine output.
authorNeilBrown <neilb@suse.de>
Wed, 21 May 2014 02:43:40 +0000 (12:43 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 21 May 2014 02:43:40 +0000 (12:43 +1000)
 Raid Devices[1] : 5 (4@20000K 3@20000K 2@0K 1@0K 0@0K)

The data offsets are 200000K and 0K.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index e866046d67413bbeaaf8962669a3c7e04f69edff..943b51aa0aaffa083bb2a78d671cf5ec9647b35e 100644 (file)
@@ -1461,6 +1461,7 @@ static void examine_vd(int n, struct ddf_super *sb, char *guid)
                                printf("%d", j);
                        else
                                printf("--");
+                       printf("@%lluK", (unsigned long long) be64_to_cpu(LBA_OFFSET(sb, vc)[i])/2);
                }
                printf(")\n");
                if (vc->chunk_shift != 255)