From cc9bfd9ea4e83e20b8a13c5a9f8aea8087e74413 Mon Sep 17 00:00:00 2001 From: "mwilck@arcor.de" Date: Fri, 16 Aug 2013 20:21:56 +0200 Subject: 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 Signed-off-by: NeilBrown --- super-ddf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'super-ddf.c') 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) -- cgit v1.2.3