]> sourceware.org Git - lvm2.git/commitdiff
Allow 'lvconvert --repair' to operate on RAID 4/5/6.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 22 Feb 2012 17:18:49 +0000 (17:18 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 22 Feb 2012 17:18:49 +0000 (17:18 +0000)
The higher level RAIDs should be allowed for repair along with 'mirror' and
'raid1' segment types.

WHATS_NEW
tools/lvconvert.c

index d5247493e9e33645f45d4eb414917b3d255d5879..c5f3cd26efb21dd0f33026da3768602ba44bcf76 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.93 - 
 ====================================
+  Allow 'lvconvert --repair' to operate on RAID 4/5/6
   Fix 'build_parallel_areas_from_lv' to work properly with RAID 4/5/6
 
 Version 2.02.92 - 20th February 2012
index 043613f4cb7b403ada0cf9078c4a133c6e5e5e4d..79b664636fb4879d2a85c9aa28bddbda1067031d 100644 (file)
@@ -1736,7 +1736,8 @@ static int _lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv,
                return ECMD_FAILED;
        }
 
-       if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) {
+       if (arg_count(cmd, repair_ARG) &&
+           !(lv->status & MIRRORED) && !(lv->status & RAID)) {
                if (arg_count(cmd, use_policies_ARG))
                        return ECMD_PROCESSED; /* nothing to be done here */
                log_error("Can't repair non-mirrored LV \"%s\".", lv->name);
This page took 0.037122 seconds and 5 git commands to generate.