e83588671c
fixes (fixes bz523262) - Fix display of metadata version in output of Detail mode - Add UUID output to --detail --export (bz523314)
16 lines
707 B
Diff
16 lines
707 B
Diff
diff -up mdadm-3.0/Detail.c~ mdadm-3.0/Detail.c
|
|
--- mdadm-3.0/Detail.c~ 2009-06-02 07:48:29.000000000 +0200
|
|
+++ mdadm-3.0/Detail.c 2009-09-14 17:11:15.000000000 +0200
|
|
@@ -185,6 +185,11 @@ int Detail(char *dev, int brief, int exp
|
|
if (mp && mp->path &&
|
|
strncmp(mp->path, "/dev/md/", 8) == 0)
|
|
printf("MD_DEVNAME=%s\n", mp->path+8);
|
|
+ if (mp && (mp->uuid[0] || mp->uuid[1] || mp->uuid[2] ||
|
|
+ mp->uuid[3]))
|
|
+ printf("MD_UUID=%08x:%08x:%08x:%08x\n",
|
|
+ mp->uuid[0], mp->uuid[1], mp->uuid[2],
|
|
+ mp->uuid[3]);
|
|
}
|
|
goto out;
|
|
}
|