Dan Williams: Rename subarray v2

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


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

Author: Dan Williams <dan.j.williams at intel.com>
Date:   Tue Jun 22 16:30:59 2010 -0700

Rename subarray v2

Allow the name of the array stored in the metadata to be updated.  In
some cases the metadata format may not be able to support this rename
without modifying the UUID.  In these cases the request will be blocked.
Otherwise we allow the rename to take place, even for active arrays.
This assumes that the user understands the difference between the kernel
node name, the device node symlink name, and the metadata specific name.

Anticipating further need to modify subarrays in-place, introduce the
->update_subarray() superswitch method.  A future potential use
case is setting storage pool (spare-group) identifiers.

Signed-off-by: Dan Williams <dan.j.williams at intel.com>

---

 Manage.c      |   53 ++++++++++++++++++++++++++
 ReadMe.c      |    1 +
 mdadm.8       |   30 +++++++++++++++
 mdadm.c       |   41 ++++++++++++++++++-
 mdadm.h       |    7 +++-
 super-intel.c |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 6 files changed, 235 insertions(+), 14 deletions(-)

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



More information about the pkg-mdadm-commits mailing list