summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-04-28 16:50:57 +1000
committerNeilBrown <neilb@suse.de>2014-05-21 11:54:48 +1000
commitff84d052108f26fbff0595e5edf2fd54e4d849ac (patch)
tree133f594b5b67dc134cba9cd3f5b0e7f67e24828a /super-ddf.c
parentf70d549f12c71e2432d5d7bf3e80ce7bac9cd06e (diff)
DDF: provide simple detail_super() implementation.
Just print the GUID, Seq and number of VDs in the container. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 2f72556a..fb363f5d 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -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[] = {