forked from pool/libvirt
22 lines
916 B
Diff
22 lines
916 B
Diff
Index: libvirt-0.4.4/src/storage_backend_logical.c
|
|
===================================================================
|
|
--- libvirt-0.4.4.orig/src/storage_backend_logical.c
|
|
+++ libvirt-0.4.4/src/storage_backend_logical.c
|
|
@@ -280,7 +280,7 @@ virStorageBackendLogicalBuildPool(virCon
|
|
memset(zeros, 0, sizeof(zeros));
|
|
|
|
/* XXX multiple pvs */
|
|
- if (VIR_ALLOC_N(vgargv, 1) < 0) {
|
|
+ if (VIR_ALLOC_N(vgargv, 3 + pool->def->source.ndevice) < 0) {
|
|
virStorageReportError(conn, VIR_ERR_NO_MEMORY, "%s", _("command line"));
|
|
return -1;
|
|
}
|
|
@@ -531,6 +531,7 @@ virStorageBackend virStorageBackendLogic
|
|
.deleteVol = virStorageBackendLogicalDeleteVol,
|
|
|
|
.poolOptions = {
|
|
+ .flags = (VIR_STORAGE_BACKEND_POOL_SOURCE_DEVICE),
|
|
.formatFromString = virStorageBackendLogicalPoolFormatFromString,
|
|
.formatToString = virStorageBackendLogicalPoolFormatToString,
|
|
},
|