summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authormwilck@arcor.de <mwilck@arcor.de>2013-08-16 20:21:56 +0200
committerNeilBrown <neilb@suse.de>2013-08-28 14:58:02 +1000
commitcc9bfd9ea4e83e20b8a13c5a9f8aea8087e74413 (patch)
tree8b0b05d0bb9fc224ccf6b8a94960eda26c99b99f /super-ddf.c
parentbb925ff08beda785d42f5ff8a0f082d91c5caad4 (diff)
DDF: export_examine_super_ddf: print MD_DEVICES
Have mdadm -E --export print the number of RAID devices, like other meta data formats do. Anaconda (RHEL/CentOS installer) depends on it. Signed-off-by: Martin Wilck <mwilck@arcor.de> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c
index ee6499a3..ad8bc0a8 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1593,6 +1593,8 @@ static void export_examine_super_ddf(struct supertype *st)
printf("MD_METADATA=ddf\n");
printf("MD_LEVEL=container\n");
printf("MD_UUID=%s\n", nbuf+5);
+ printf("MD_DEVICES=%u\n",
+ be16_to_cpu(((struct ddf_super *)st->sb)->phys->used_pdes));
}
static int copy_metadata_ddf(struct supertype *st, int from, int to)