]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Detail: fix for an imsm container with a spare
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:34:20 +0000 (11:34 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Sep 2009 18:34:20 +0000 (11:34 -0700)
commit436305c6905f81735eb04e9ef6577c21358836e8
treec9845253bfb5db4eea3b72a35124dba26532e271
parentee836c39b503e67b895a7ebabee8208a7ff0fea8
Detail: fix for an imsm container with a spare

Spares for imsm arrays do not have any info about the container in their
metadata records.  If Detail() inadvertantly picks such a device for
->get_array_info() it will end up with less than useful info for the
container.  So, continue to read from the disks until a non-spare device
is found.

This bug was found by timeouts waiting for udev to create the
user-friendly container name.  To detect future UUID reporting problems
and a debug print to the timeout case in wait_for().

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Detail.c
util.c