]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
DDF: export_examine_super_ddf: print MD_DEVICES
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 16 Aug 2013 18:21:56 +0000 (20:21 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 28 Aug 2013 04:58:02 +0000 (14:58 +1000)
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>
super-ddf.c

index ee6499a338f22bc3a22855367fc631cfff269329..ad8bc0a8033ed0a6ac83cf746f6b37d7454a074d 100644 (file)
@@ -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)