[libvirt] [PATCH 5/7] storage: Create helper to set input for CreateQemuImg code
Peter Krempa
pkrempa at redhat.com
Mon Jun 6 13:44:06 UTC 2016
On Fri, Jun 03, 2016 at 06:42:10 -0400, John Ferlan wrote:
> Create helper virStorageBackendCreateQemuImgSetInput to set the input
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/storage/storage_backend.c | 50 +++++++++++++++++++++++++++----------------
> 1 file changed, 31 insertions(+), 19 deletions(-)
>
> diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
> index 4c40e43..4a3c41d 100644
> --- a/src/storage/storage_backend.c
> +++ b/src/storage/storage_backend.c
> @@ -943,6 +943,7 @@ struct _virStorageBackendQemuImgInfo {
> int backingFormat;
>
> const char *inputPath;
> + const char *inputType;
This is misleading. That's the string version of 'inputFormat'. I'd call
it inputFormatStr if you wan't to store it here.
> int inputFormat;
> };
>
ACK with the tweak
More information about the libvir-list
mailing list