From c37031ebf3021841e2d36c9ffc9267875ff205d1 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 4 Sep 2008 13:13:32 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ src/storage_backend_logical.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a82bcef659..fdcdafe8e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 4 15:05:34 CEST 2008 Daniel Veillard + + * 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 Augeas config file support diff --git a/src/storage_backend_logical.c b/src/storage_backend_logical.c index d182b5e36d..744848d26b 100644 --- a/src/storage_backend_logical.c +++ b/src/storage_backend_logical.c @@ -351,7 +351,7 @@ virStorageBackendLogicalBuildPool(virConnectPtr conn, 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; }