[Kimchi-devel] [PATCHv1 2/2] logical pool: Fix logical pool target path
lvroyce at linux.vnet.ibm.com
lvroyce at linux.vnet.ibm.com
Fri Mar 7 13:56:58 UTC 2014
From: Royce Lv <lvroyce at linux.vnet.ibm.com>
Logical pool target path, which refers to the VG path,
is always under /dev.
Specify a random file system path will not take effective.
LV link is always created under /dev/VG-name/.
REF:
libvirt/src/storage/storage_backend_logical.c
virStorageBackendLogicalBuildPool()
Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
---
src/kimchi/model/libvirtstoragepool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kimchi/model/libvirtstoragepool.py b/src/kimchi/model/libvirtstoragepool.py
index 1fbd8c0..b8f3d42 100644
--- a/src/kimchi/model/libvirtstoragepool.py
+++ b/src/kimchi/model/libvirtstoragepool.py
@@ -143,7 +143,7 @@ class LogicalPoolDef(StoragePoolDef):
def __init__(self, poolArgs):
super(LogicalPoolDef, self).__init__(poolArgs)
- self.path = '/var/lib/kimchi/logical_mount/' + self.poolArgs['name']
+ self.path = '/dev/' + self.poolArgs['name']
@property
def xml(self):
--
1.8.1.2
More information about the Kimchi-devel
mailing list