[Libguestfs] [PATCH v2 6/9] daemon: Always pass -F option to mke2fs.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" Apparently e2fsprogs only knows that "/dev/sda" is a whole device, but doesn't think that "/dev/vda" is. On switching the default device over to virtio-scsi, that causes mke2fs without -F option to complain and ask for an interactive prompt. Adding -F forces it to go

[Libguestfs] [PATCH v2 5/9] appliance: Add support for virtio-scsi.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" This requires febootstrap >= 3.15. --- README |3 +- src/guestfs-internal.h |3 ++ src/launch.c | 140 +++- 3 files changed, 121 insertions(+), 25 deletions(-) diff --git a/README b/README

[Libguestfs] [PATCH v2 8/9] tests: Fix spelling in comment.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" --- tests/md/test-inspect-fstab.sh |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/md/test-inspect-fstab.sh b/tests/md/test-inspect-fstab.sh index fec42c0..d1cf610 100755 --- a/tests/md/test-inspect-fstab.sh +++ b/tests/md/test-inspect-

[Libguestfs] [PATCH v2 9/9] tests/md: Don't hard code /dev/vda in expected output of tests.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" Use a small sed script to canonicalize the device names. --- tests/md/test-inspect-fstab.sh| 15 --- tests/md/test-list-filesystems.sh | 12 ++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/md/test-inspect-fstab.sh

[Libguestfs] [PATCH v2 7/9] tests/lvm: Don't hard-code /dev/vda in test.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" Break virtio-scsi where the devices are /dev/sda etc. --- tests/lvm/test-lvm-mapping.pl |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lvm/test-lvm-mapping.pl b/tests/lvm/test-lvm-mapping.pl index 3e6faa5..b92a5c5 100755 --- a/tests/lvm/te

[Libguestfs] [PATCH v2 4/9] Record output of qemu -device '?'.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" This allows us to find out what qemu devices are supported at runtime. --- configure.ac |8 src/guestfs-internal.h |1 + src/guestfs.c |1 + src/launch.c |9 + 4 files changed, 19 insertions(+) diff --git a

[Libguestfs] [PATCH v2 1/9] New API: fstrim - allow filesystem trim.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" --- daemon/Makefile.am |1 + daemon/fstrim.c| 97 generator/generator_actions.ml | 27 ++- gobject/Makefile.inc |6 ++- po/POTFILES|2 + src/MAX_P

[Libguestfs] [PATCH v2 2/9] Remove ./configure --with-drive-if and --with-net-if options.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" These were used to select the default drive and network interface. They both default to 'virtio'. These were added back in the day when virtio was buggy, so that packagers could revert to using ide/ne2k_pci to work around distro bugs. However virtio has been stable in

[Libguestfs] [PATCH v2 3/9] Require QEMU >= 1.0.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" QEMU 1.0 was released at the end of 2011. Remove all the cruft about detecting broken -machine type which was only required for QEMU 0.15. This also reverts commit 30ecbf3ec2ada68f7e125a180553e31b069033b7. Even on ARM you can pass -machine accel=kvm:tcg and qemu does

[Libguestfs] [PATCH v2 0/9]

2012-06-12 Thread Richard W.M. Jones
More comprehensive support for virtio-scsi. Passes all the tests. Rich. ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

[Libguestfs] [PATCH 4/5] Record output of qemu -device ?.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" This allows us to find out what qemu devices are supported at runtime. --- configure.ac |8 src/guestfs-internal.h |1 + src/guestfs.c |1 + src/launch.c |9 + 4 files changed, 19 insertions(+) diff --git a

[Libguestfs] [PATCH 3/5] Require QEMU >= 1.0.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" QEMU 1.0 was released at the end of 2011. Remove all the cruft about detecting broken -machine type which was only required for QEMU 0.15. This also reverts commit 30ecbf3ec2ada68f7e125a180553e31b069033b7. Even on ARM you can pass -machine accel=kvm:tcg and qemu does

[Libguestfs] [PATCH 5/5] appliance: Add support for virtio-scsi.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" This requires febootstrap >= 3.15. --- README |2 +- src/guestfs-internal.h |3 ++ src/launch.c | 141 +++- 3 files changed, 121 insertions(+), 25 deletions(-) diff --git a/README b/README

[Libguestfs] [PATCH 1/5] New API: fstrim - allow filesystem trim.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" --- daemon/Makefile.am |1 + daemon/fstrim.c| 97 generator/generator_actions.ml | 27 ++- gobject/Makefile.inc |6 ++- po/POTFILES|2 + src/MAX_P

[Libguestfs] [PATCH 2/5] Remove ./configure --with-drive-if and --with-net-if options.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" These were used to select the default drive and network interface. They both default to 'virtio'. These were added back in the day when virtio was buggy, so that packagers could revert to using ide/ne2k_pci to work around distro bugs. However virtio has been stable in

[Libguestfs] [PATCH 0/5] Assorted patches to add virtio-scsi support.

2012-06-12 Thread Richard W.M. Jones
These assorted patches end up with adding virtio-scsi support to libguestfs. It passes libguestfs-test-tool, but I haven't yet tried to run the full set of tests. In theory > 26 devices can be added, but it's likely that certain parts of the daemon will break if you actually try this. This of co

[Libguestfs] [PATCH] init: Add 'root=...' parameter to specify the appliance.

2012-06-12 Thread Richard W.M. Jones
From: "Richard W.M. Jones" This is required when using virtio-scsi with libguestfs. --- helper/init.c | 78 - 1 file changed, 66 insertions(+), 12 deletions(-) diff --git a/helper/init.c b/helper/init.c index a1887a0..19e8948 100644 ---

[Libguestfs] [PATCH] Add virtio-scsi support to febootstrap.

2012-06-12 Thread Richard W.M. Jones
This patch is the minimum possible to add virtio-scsi support to febootstrap. Problem: SCSI devices are detected asynchronously after the Linux kernel module is loaded. The usual solutions to this involve scsi_wait_scan (deprecated apparently) or udev. However febootstrap doesn't use udev, and a

Re: [Libguestfs] [hivex][PATCH v2] OS X, bootstrap: Locate pkg.m4

2012-06-12 Thread Jim Meyering
Richard W.M. Jones wrote: > On Mon, Jun 11, 2012 at 11:54:14AM -0700, Alex Nelson wrote: >> OS X does not include pkg-config by default. This causes ./configure >> to fail when invoking PKG_CHECK_MODULES for libxml2. >> >> This change autodetects the path for aclocal, c/o RWMJ noting the real >> p

Re: [Libguestfs] [hivex][PATCH v2] OS X, bootstrap: Locate pkg.m4

2012-06-12 Thread Richard W.M. Jones
On Mon, Jun 11, 2012 at 11:54:14AM -0700, Alex Nelson wrote: > OS X does not include pkg-config by default. This causes ./configure > to fail when invoking PKG_CHECK_MODULES for libxml2. > > This change autodetects the path for aclocal, c/o RWMJ noting the real > problem is a deficiency in acloca