Dan Williams: Kill subarray v2

Martin F. Krafft madduck at alioth.debian.org
Sat Aug 28 18:44:20 UTC 2010


Module: mdadm
Branch: build
Commit: 33414a0182ae193150f65f7bca97a7e4d818a49e
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=33414a0182ae193150f65f7bca97a7e4d818a49e

Author: Dan Williams <dan.j.williams at intel.com>
Date:   Tue Jun 15 17:55:41 2010 -0700

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 at intel.com>

---

 Kill.c        |   78 +++++++++++++++++++++++++
 ReadMe.c      |    1 +
 mdadm.8       |   10 +++
 mdadm.c       |    8 +++
 mdadm.h       |    8 +++
 mdmon.c       |   25 +-------
 super-ddf.c   |   25 +++++++-
 super-intel.c |  179 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 util.c        |  137 +++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 431 insertions(+), 40 deletions(-)

Diff:   http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commitdiff;h=33414a0182ae193150f65f7bca97a7e4d818a49e



More information about the pkg-mdadm-commits mailing list