]> sourceware.org Git - lvm2.git/commitdiff
Make lvconvert --repair --use-policies exit with success when no action is needed.
authorPetr Rockai <prokai@redhat.com>
Sat, 6 Feb 2010 07:44:16 +0000 (07:44 +0000)
committerPetr Rockai <prokai@redhat.com>
Sat, 6 Feb 2010 07:44:16 +0000 (07:44 +0000)
WHATS_NEW
tools/lvconvert.c

index 577682454b255ab5463ee505ae58f78432394a7c..e8aa222a45c248a2886f6a0d42998abff8aaccb6 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.61 - 
 ===================================
+  Make lvconvert --repair --use-policies exit with success when no action is needed.
   Add multiple snapshot lv 'lvconvert --merge @tag' support via process_each_lv().
   Fix inappropriate second resync when adding mimage to core-logged mirror.
   Exclude internal VG names and uuids in lists returned via liblvm interface.
index 397a5cc475ad2954cd7b0d8f29b267a4fe762527..4fb04a1ba3fac5a331498d8ea489876e439a471d 100644 (file)
@@ -1247,6 +1247,8 @@ static int _lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv,
        }
 
        if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) {
+               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);
                return ECMD_FAILED;
        }
This page took 0.049281 seconds and 5 git commands to generate.