]> git.ipfire.org Git - thirdparty/mdadm.git/commit - sysfs.c
sysfs: allow sysfs_read to detect and drop removed disks
authorDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:56 +0000 (18:45 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:56 +0000 (18:45 -0700)
commitdab4a5134e8d946f3809163af6abb80a945c904c
tree74c51faa30b739d3449d00b691295332efffa747
parentdb575f3b9ebfdf0d7ac8dd5f9b1d4b4d0e446e80
sysfs: allow sysfs_read to detect and drop removed disks

All operations that rely on loading from an existing container (like
--add) will fail after a disk has been removed.  Provide an option to
skip missing / offline disks rather than abort.  We attempt to do this
in the load_super_{imsm,ddf}_all cases when mdmon is running i.e. we
already have a consitent version of the metadata running in the system.
Otherwise, we fail as normal and let the administrator fix up the
container.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
mdadm.h
super-ddf.c
super-intel.c
sysfs.c