]> sourceware.org Git - lvm2.git/commitdiff
Don't take write lock in vgchange --refresh, --poll or --monitor.
authorAlasdair Kergon <agk@redhat.com>
Mon, 25 Oct 2010 10:40:13 +0000 (10:40 +0000)
committerAlasdair Kergon <agk@redhat.com>
Mon, 25 Oct 2010 10:40:13 +0000 (10:40 +0000)
WHATS_NEW
tools/vgchange.c

index a09acf1896ac64ff9df8ab21232904123675244a..05acc3bd434653408eec3cb90e488b5bea1f64d5 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,6 +1,7 @@
 Version 2.02.75 - 
 =====================================
-  Skip dm devices in scan if they contain only error targets.
+  Don't take write lock in vgchange --refresh, --poll or --monitor.
+  Skip dm devices in scan if they contain only error targets or are empty.
   Fix strict-aliasing compile warning in partition table scanning.
   Add an option to automatically extend snapshots through dmeventd.
   Remove dependency on libm, floor() is replaced with integer algorithm.
index b16fc54d9bfd14e178d445f8134cd99f061b0d5c..92f32dbbc3b1e6f3c873f83267a5f3e0ac3e776e 100644 (file)
@@ -687,7 +687,10 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv)
        }
 
        return process_each_vg(cmd, argc, argv,
-                              (arg_count(cmd, available_ARG)) ?
+                              (arg_count(cmd, available_ARG) ||
+                               arg_count(cmd, refresh_ARG) ||
+                               arg_count(cmd, monitor_ARG) ||
+                               arg_count(cmd, poll_ARG)) ?
                               0 : READ_FOR_UPDATE,
                               NULL,
                               &vgchange_single);
This page took 0.048244 seconds and 5 git commands to generate.