]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
Kill subarray v2
authorDan Williams <dan.j.williams@intel.com>
Wed, 16 Jun 2010 00:55:41 +0000 (17:55 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 16 Jun 2010 00:55:41 +0000 (17:55 -0700)
commit33414a0182ae193150f65f7bca97a7e4d818a49e
treeb468723303ac3fa1e9f452cf2dd43cd94ab4e0e5
parent200871adf9e15d5ad985f28c349fd89c386ef48a
Kill subarray v2

Support for deleting a subarray out of a container.  When all subarrays
are deleted the component devices are converted back into spares, a
--zero-superblock is still needed to kill the remaining metadata at this
point.  This operation is blocked when the subarray is active and may
also be blocked by the metadata handler when deleting the subarray might
change the uuid of other active subarrays.  For example, with imsm,
deleting subarray 'n' may change the uuid of subarrays with indexes > n.

Deleting a subarray needs to be a container wide event to ensure
disks that record the modified subarray list perceive other disks that
did not receive this change as out of date.

Notes:
The st->subarray parsing in super-intel.c and super-ddf.c is updated to
be more strict now that we are reading user supplied subarray values.

Offline container modification shares actions that mdmon typically
handles so promote is_container_member() and version_to_superswitch()
(formerly find_metadata_methods()) to generic utility functions for the
cases where mdadm performs the operation.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Kill.c
ReadMe.c
mdadm.8
mdadm.c
mdadm.h
mdmon.c
super-ddf.c
super-intel.c
util.c