summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-10-19 12:52:58 +1100
committerNeilBrown <neilb@suse.de>2009-10-19 12:52:58 +1100
commit5d504f42782ced8af5438ebc455b084275c86eec (patch)
treef9e1909277c8180c187233f7040e807ea1f5afdc /Detail.c
parent2b9aa337af7291d3f141322da96c9f667c99d53c (diff)
parent9f1da8242161ba684f2867f211eb7e9d4baa84bb (diff)
Merge git://github.com/djbw/mdadm
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Detail.c b/Detail.c
index a70db340..e41ad1bb 100644
--- a/Detail.c
+++ b/Detail.c
@@ -194,7 +194,12 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
st->ss->export_detail_super(st);
} else {
struct map_ent *mp, *map = NULL;
+ char nbuf[64];
mp = map_by_devnum(&map, fd2devnum(fd));
+ if (mp) {
+ __fname_from_uuid(mp->uuid, 0, nbuf, ':');
+ printf("MD_UUID=%s\n", nbuf+5);
+ }
if (mp && mp->path &&
strncmp(mp->path, "/dev/md/", 8) == 0)
printf("MD_DEVNAME=%s\n", mp->path+8);