Displaying 20 results from an estimated 500 matches similar to: "[PATCH] lib: create: Allow any [[:alnum:]]+ string as a backingfmt parameter."
2017 Jun 25
0
Re: [PATCH 1/2] launch: add support for autodetection of appliance image format
On Fri, Jun 23, 2017 at 04:12:35PM +0300, Pavel Butsykin wrote:
> This feature allows you to use different image formats for the fixed
> appliance. The raw format is used by default.
>
> Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
> ---
> lib/create.c | 5 +++--
> lib/guestfs-internal.h | 2 ++
> lib/launch-direct.c | 2 ++
>
2018 Aug 22
1
[PATCH] lib: create: avoid one extra string allocation
When creating the qemu-img command, use the guestfs_int_cmd_add_arg &
guestfs_int_cmd_add_arg_format APIs to add the proper filename directly,
without creating a string for it.
This should cause no functional change.
---
lib/create.c | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/lib/create.c b/lib/create.c
index 60e467fb6..fcc5855e0 100644
2014 Nov 23
0
[PATCH 1/3] lib: guestfs_disk_create: Allow vmdk as a valid backingformat.
Commit 588af1953e5f7ab74009b9175cc5d3efb8bb651a started with a very
conservative list of permitted backing formats (just "raw" or
"qcow2"). We can allow almost any format permitted by qemu, but this
commit just adds "vmdk" to this whitelist.
---
src/create.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/create.c b/src/create.c
index
2017 Oct 06
2
[PATCH] lib: Pick up qemu-img path at build time.
The main purpose of this change is two-fold:
(1) Ensure that we run the same version of qemu-img that we are
built against.
(2) Allow the qemu-img path to be overridden at build time in case
it's on a nonstandard path or (like RHV) has a nonstandard name.
---
docs/guestfs-building.pod | 6 ++++++
lib/command.c | 4 ++--
lib/create.c | 4 ++--
lib/info.c
2020 Feb 06
3
[PATCH] lib: Autodetect backing format and specify it explicitly.
In the guestfs_disk_create API we have traditionally allowed you to
set backingfile without setting backingformat. The meaning of this is
to let qemu autodetect the backing format when opening the overlay
disk.
However libvirt >= 6.0 refuses to even pass such disks to qemu (see
https://bugzilla.redhat.com/show_bug.cgi?id=1798148).
For this reason, move the autodetection earlier and make it
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
On Thursday, 6 February 2020 18:20:19 CET Richard W.M. Jones wrote:
> In the guestfs_disk_create API we have traditionally allowed you to
> set backingfile without setting backingformat. The meaning of this is
> to let qemu autodetect the backing format when opening the overlay
> disk.
>
> However libvirt >= 6.0 refuses to even pass such disks to qemu (see
>
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
On Monday, 9 March 2020 11:40:46 CET Richard W.M. Jones wrote:
> On Mon, Mar 09, 2020 at 11:07:20AM +0100, Pino Toscano wrote:
> > On Thursday, 6 February 2020 18:20:19 CET Richard W.M. Jones wrote:
> > > In the guestfs_disk_create API we have traditionally allowed you to
> > > set backingfile without setting backingformat. The meaning of this is
> > > to let
2020 Mar 09
3
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
On Mon, Mar 09, 2020 at 11:07:20AM +0100, Pino Toscano wrote:
> On Thursday, 6 February 2020 18:20:19 CET Richard W.M. Jones wrote:
> > In the guestfs_disk_create API we have traditionally allowed you to
> > set backingfile without setting backingformat. The meaning of this is
> > to let qemu autodetect the backing format when opening the overlay
> > disk.
> >
2020 Mar 09
0
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
On Mon, Mar 09, 2020 at 11:19:39AM +0000, Richard W.M. Jones wrote:
> On Mon, Mar 09, 2020 at 12:07:08PM +0100, Pino Toscano wrote:
> > On Monday, 9 March 2020 11:40:46 CET Richard W.M. Jones wrote:
> > > On Mon, Mar 09, 2020 at 11:07:20AM +0100, Pino Toscano wrote:
> > > > On Thursday, 6 February 2020 18:20:19 CET Richard W.M. Jones wrote:
> > > > > In
2020 Mar 09
2
Re: [PATCH] lib: Autodetect backing format and specify it explicitly.
On Mon, Mar 09, 2020 at 12:07:08PM +0100, Pino Toscano wrote:
> On Monday, 9 March 2020 11:40:46 CET Richard W.M. Jones wrote:
> > On Mon, Mar 09, 2020 at 11:07:20AM +0100, Pino Toscano wrote:
> > > On Thursday, 6 February 2020 18:20:19 CET Richard W.M. Jones wrote:
> > > > In the guestfs_disk_create API we have traditionally allowed you to
> > > > set
2015 Aug 12
1
[PATCH 1/2] disk-create: Allow preallocation off/metadata/full.
For raw, this allows "off" as a synonym for "sparse" (to make it
consistent with qcow2).
For qcow2, this allows "sparse" as a synonym for "off".
It also adds qcow2 "full" preallocation, which is actually mapped to
the qemu option "falloc" (see arguments about this on the qemu-devel
mailing list, which we lost).
This also updates the
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
Only in end-user messages and documentation. This change was done
mostly mechanically using the Perl script attached below.
I also changed don't -> don’t etc and made some other simple fixes.
See also: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
----------
#!/usr/bin/perl -w
use strict;
use Locale::PO;
my $re = qr{'([-\w%.,=?*/]+)'};
my %files = ();
foreach my $filename
2014 Nov 23
7
[PATCH 0/3] patches needed for virt-bmap
See http://rwmj.wordpress.com/2014/11/23/mapping-files-to-disk/
2017 May 17
0
[PATCH 3/5] s390x: appliance: Use /dev/ttysclp0 for serial console.
---
lib/appliance-kcmdline.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/lib/appliance-kcmdline.c b/lib/appliance-kcmdline.c
index 4dde7a865..a394e6e67 100644
--- a/lib/appliance-kcmdline.c
+++ b/lib/appliance-kcmdline.c
@@ -40,11 +40,19 @@
guestfs_int_string_is_valid ((term), 1, 16, \
VALID_FLAG_ALPHA|VALID_FLAG_DIGIT,
2014 Jan 28
11
[PATCH 00/10] New API: disk-create for creating blank disks.
A lot of code runs 'qemu-img create' or 'truncate' to create blank
disk images.
In the past I resisted adding an API to do this, since it essentially
duplicates what you can already do using other tools (ie. qemu-img).
However this does simplify calling code quite a lot since qemu-img is
somewhat error-prone to use (eg: don't try to create a disk called
"foo:bar")
2020 Feb 24
3
*** buffer overflow detected *** accessing invalid FD in libguestfs
We have extended collectd virt plugin to extract info about disk usage from
a libvirt domain using libguestfs. In addition to my previous mail I am
attaching some more infomration about the problem.
Currently the collectd plugin works fine and retrieves the required
statistics. The problem that I face happens after certain number of cycles
(getting disk usage statistics). Collectd is terminated
2016 Nov 30
0
[PATCH] v2v: -o vdsm, -o rhev: Don't create compat=0.10 images;
Support for RHEV with RHEL 6 nodes required us to output the old style
qcow2 compat=0.10 images. Since RHEV 3.6 GA, RHEL 6 has not been
supported as a RHEV node type.
There are significant downsides to using qcow2 compat=0.10 instead of
the modern default (compat=1.1), so stop forcing compat=0.10 for these
targets.
Thanks: Yaniv Kaul, Michal Skrivanek.
---
v2v/output_rhev.ml | 4 ----
2016 Aug 02
0
[PATCH] launch: libvirt: Autodetect backing format for drive overlays (RHBZ#1354335).
If the user doesn't specify a format (ie. they want autodetection)
then we must do the file format detection ourselves since libvirt
disabled this and now doesn't work at all on qcow2 overlays that have
no backing_fmt field set.
---
src/launch-libvirt.c | 90 ++++++++++++++++++++++++++++++++--------------------
1 file changed, 56 insertions(+), 34 deletions(-)
diff --git
2020 Feb 06
1
Re: [PATCH v2] launch: add support for autodetection of appliance image format
On Tue, Jun 27, 2017 at 07:42:20PM +0300, Pavel Butsykin wrote:
> This feature allows you to use different image formats for the fixed
> appliance. The raw format is used by default.
I wonder if you're stil using this feature?
Unfortunately because of a recent change in libvirt it is no longer
possible to have a backing file where libvirt will autodetect the
format. See:
2016 Dec 01
1
[PATCH v2] v2v: -o vdsm: Add --vdsm-compat-11 flag, -o rhev: Drop support for RHV < 4.1 (RHBZ#1400205).
Support for RHEV with RHEL 6 nodes required us to output the old style
qcow2 compat=0.10 images. Since RHEV 3.6 GA, RHEL 6 has not been
supported as a RHEV node type. Since RHV 4.1, compat=1.1 is supported.
Support for compat=1.1 is uncertain in RHV 4.0 even on RHEL 7 nodes.
There are significant downsides to using qcow2 compat=0.10 instead of
the modern default (compat=1.1).
Therefore this