]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
Assemble: block attempts to reassemble container members
authorDan Williams <dan.j.williams@intel.com>
Tue, 4 Nov 2008 09:51:12 +0000 (20:51 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 4 Nov 2008 09:51:12 +0000 (20:51 +1100)
commit2de8884f0f3676cd170727b5161701a20e44f458
treed45a62981c94eb7d463423cdb87fb8f58bc5256d
parent6234c63ccc136a66be341c6bdc42eadc08c285d1
Assemble: block attempts to reassemble container members

Attempting to open(O_EXCL) each candidate device usually filters out all
busy raid components.  However, containers do not behave like components
and will return container_content that may describe active member
arrays.

This patch just adds a function that will be used to check if a
container member is busy.  It will be used shortly.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c