]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: provide simple detail_super() implementation.
authorNeilBrown <neilb@suse.de>
Mon, 28 Apr 2014 06:50:57 +0000 (16:50 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 21 May 2014 01:54:48 +0000 (11:54 +1000)
Just print the GUID, Seq and number of VDs in the container.

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

index 2f72556a90c77f49e479b8ac8edcc535f13f20a0..fb363f5d722b3e8260bbffd795d3155b23880e63 100644 (file)
@@ -1751,12 +1751,14 @@ err:
 
 static void detail_super_ddf(struct supertype *st, char *homehost)
 {
-       /* FIXME later
-        * Could print DDF GUID
-        * Need to find which array
-        *  If whole, briefly list all arrays
-        *  If one, give name
-        */
+       struct ddf_super *sb = st->sb;
+       int cnt = be16_to_cpu(sb->virt->populated_vdes);
+
+       printf(" Container GUID : "); print_guid(sb->anchor.guid, 1);
+       printf("\n");
+       printf("            Seq : %08x\n", be32_to_cpu(sb->active->seq));
+       printf("  Virtual Disks : %d\n", cnt);
+       printf("\n");
 }
 
 static const char *vendors_with_variable_volume_UUID[] = {