mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-29 17:33:09 +00:00
fix a miscalculation of command line size for vgcreate
* src/storage_backend_logical.c: fix a miscalculation of command line size for vgcreate, patch from Jim Fehlig Daniel
This commit is contained in:
parent
9567aad381
commit
c37031ebf3
@ -1,3 +1,8 @@
|
|||||||
|
Thu Sep 4 15:05:34 CEST 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/storage_backend_logical.c: fix a miscalculation of command line
|
||||||
|
size for vgcreate, patch from Jim Fehlig
|
||||||
|
|
||||||
Thu Sep 4 11:43:20 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Thu Sep 4 11:43:20 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Augeas config file support
|
Augeas config file support
|
||||||
|
@ -351,7 +351,7 @@ virStorageBackendLogicalBuildPool(virConnectPtr conn,
|
|||||||
memset(zeros, 0, sizeof(zeros));
|
memset(zeros, 0, sizeof(zeros));
|
||||||
|
|
||||||
/* XXX multiple pvs */
|
/* 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"));
|
virStorageReportError(conn, VIR_ERR_NO_MEMORY, "%s", _("command line"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user