Detail: export MD_UUID from mapfile
authorDan Williams <dan.j.williams@intel.com>
Wed, 14 Oct 2009 00:41:57 +0000 (17:41 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 14 Oct 2009 00:41:57 +0000 (17:41 -0700)
commitaae5a11207cf6da1682e6a76e116a19e21473f03
tree795953d4c515c82e2a43027e3f2861dc53efc77a
parentd2b9eb5993b6c36bf1d66980811bda1b6eefb19f
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>
Detail.c
mdadm.h
util.c