]> sourceware.org Git - lvm2.git/commitdiff
Hold VG lock while doing vgremove.
authorPatrick Caulfield <pcaulfie@redhat.com>
Fri, 24 Sep 2004 12:48:43 +0000 (12:48 +0000)
committerPatrick Caulfield <pcaulfie@redhat.com>
Fri, 24 Sep 2004 12:48:43 +0000 (12:48 +0000)
agk - you may want to check this.

tools/vgremove.c

index 093624c4525427771259f5ddfc37f9ad58ffc118..1dade9715447ab6425b2bcade39f7f2dc58299ce 100644 (file)
@@ -88,8 +88,8 @@ int vgremove(struct cmd_context *cmd, int argc, char **argv)
        }
 
        ret = process_each_vg(cmd, argc, argv,
-                             LCK_VG | LCK_WRITE | LCK_NONBLOCK, 1, NULL,
-                             &vgremove_single);
+                             LCK_VG | LCK_WRITE | LCK_NONBLOCK | LCK_HOLD, 1, 
+                             NULL, &vgremove_single);
 
        unlock_vg(cmd, "");
 
This page took 0.03841 seconds and 5 git commands to generate.