summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-10-13 17:41:57 -0700
committerDan Williams <dan.j.williams@intel.com>2009-10-13 17:41:57 -0700
commitaae5a11207cf6da1682e6a76e116a19e21473f03 (patch)
tree795953d4c515c82e2a43027e3f2861dc53efc77a /mdadm.h
parentd2b9eb5993b6c36bf1d66980811bda1b6eefb19f (diff)
downloadmdadm-aae5a11207cf6da1682e6a76e116a19e21473f03.tar.gz
mdadm-aae5a11207cf6da1682e6a76e116a19e21473f03.tar.xz
mdadm-aae5a11207cf6da1682e6a76e116a19e21473f03.zip
Detail: export MD_UUID from mapfile
The load_super() from an mdadm --detail call may race against an mdmon update. When this happens the load_super sees an inconsistent metadata block and returns an error. The fallback path to use the map file contents lacks uuid reporting, so provide __fname_from_uuid for generically printing a uuid. Reported-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 04b87b8..8212a2c 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -810,6 +810,7 @@ extern void uuid_from_super(int uuid[4], mdp_super_t *super);
extern const int uuid_match_any[4];
extern int same_uuid(int a[4], int b[4], int swapuuid);
extern void copy_uuid(void *a, int b[4], int swapuuid);
+extern char *__fname_from_uuid(int id[4], int swap, char *buf, char sep);
extern char *fname_from_uuid(struct supertype *st,
struct mdinfo *info, char *buf, char sep);
extern unsigned long calc_csum(void *super, int bytes);