]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
storage: Activate/deactivate logical volumes only on local node
authorRommer <rommer@active.by>
Mon, 12 Dec 2011 07:40:52 +0000 (15:40 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 12 Dec 2011 13:55:47 +0000 (21:55 +0800)
Current "-ay | -an" has problems on pool starting/refreshing if
the volumes are clustered. Rommer has posted a patch to list 2
months ago.

https://www.redhat.com/archives/libvir-list/2011-October/msg01116.html

But IMO we shouldn't skip the inactived vols. So this is a squashed
patch by Rommer.

Signed-off-by: Rommer <rommer@active.by>
src/storage/storage_backend_logical.c

index 61c89a2b851c398fd8fa17c5c76102555c5210b9..d8217174d3e9e4d9ff39f7346b5e3a780bb0030a 100644 (file)
@@ -51,7 +51,7 @@ virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
     const char *cmdargv[4];
 
     cmdargv[0] = VGCHANGE;
-    cmdargv[1] = on ? "-ay" : "-an";
+    cmdargv[1] = on ? "-aly" : "-aln";
     cmdargv[2] = pool->def->source.name;
     cmdargv[3] = NULL;