baf220d
diff -up mdadm-3.0/Detail.c~ mdadm-3.0/Detail.c
baf220d
--- mdadm-3.0/Detail.c~	2009-06-02 07:48:29.000000000 +0200
baf220d
+++ mdadm-3.0/Detail.c	2009-09-14 17:11:15.000000000 +0200
baf220d
@@ -185,6 +185,11 @@ int Detail(char *dev, int brief, int exp
baf220d
 			if (mp && mp->path &&
baf220d
 			    strncmp(mp->path, "/dev/md/", 8) == 0)
baf220d
 				printf("MD_DEVNAME=%s\n", mp->path+8);
baf220d
+                        if (mp && (mp->uuid[0] || mp->uuid[1] || mp->uuid[2] ||
baf220d
+                                   mp->uuid[3]))
baf220d
+                                printf("MD_UUID=%08x:%08x:%08x:%08x\n",
baf220d
+                                        mp->uuid[0], mp->uuid[1], mp->uuid[2],
baf220d
+                                        mp->uuid[3]);
baf220d
 		}
baf220d
 		goto out;
baf220d
 	}