search for: backingformat_free

Displaying 6 results from an estimated 6 matches for "backingformat_free".

2020 Feb 06
3
[PATCH] lib: Autodetect backing format and specify it explicitly.
...create.c index e2a59b88d..e30286c39 100644 --- a/lib/create.c +++ b/lib/create.c @@ -255,6 +255,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, const struct guestfs_disk_create_argv *optargs) { const char *backingformat = NULL; + CLEANUP_FREE char *backingformat_free = NULL; const char *preallocation = NULL; const char *compat = NULL; int clustersize = -1; @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, } } + /* With libvirt >= 6.0 the backing format must be specified. */ + if (backingfile != NUL...
2020 Mar 09
3
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
...c > > +++ b/lib/create.c > > @@ -255,6 +255,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > const struct guestfs_disk_create_argv *optargs) > > { > > const char *backingformat = NULL; > > + CLEANUP_FREE char *backingformat_free = NULL; > > const char *preallocation = NULL; > > const char *compat = NULL; > > int clustersize = -1; > > @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > } > > } > > > > + /* With libv...
2020 Mar 09
2
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
...@@ -255,6 +255,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > > > const struct guestfs_disk_create_argv *optargs) > > > > { > > > > const char *backingformat = NULL; > > > > + CLEANUP_FREE char *backingformat_free = NULL; > > > > const char *preallocation = NULL; > > > > const char *compat = NULL; > > > > int clustersize = -1; > > > > @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > > > } &g...
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
...100644 > --- a/lib/create.c > +++ b/lib/create.c > @@ -255,6 +255,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > const struct guestfs_disk_create_argv *optargs) > { > const char *backingformat = NULL; > + CLEANUP_FREE char *backingformat_free = NULL; > const char *preallocation = NULL; > const char *compat = NULL; > int clustersize = -1; > @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > } > } > > + /* With libvirt >= 6.0 the backing format must be...
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
...ate.c > > > @@ -255,6 +255,7 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > > const struct guestfs_disk_create_argv *optargs) > > > { > > > const char *backingformat = NULL; > > > + CLEANUP_FREE char *backingformat_free = NULL; > > > const char *preallocation = NULL; > > > const char *compat = NULL; > > > int clustersize = -1; > > > @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > > } > > > } > &g...
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
...disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > > > > > const struct guestfs_disk_create_argv *optargs) > > > > > { > > > > > const char *backingformat = NULL; > > > > > + CLEANUP_FREE char *backingformat_free = NULL; > > > > > const char *preallocation = NULL; > > > > > const char *compat = NULL; > > > > > int clustersize = -1; > > > > > @@ -302,6 +303,18 @@ disk_create_qcow2 (guestfs_h *g, const char *filename, int64_t size, > >...