summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.19.12.1.19.12Richard W.M. Jones2012-06-2618-146/+193
|
* launch: Avoid double-close when qemu exits early.Richard W.M. Jones2012-06-261-2/+6
| | | | | | | | | | | | | | | The stdin and stdout of the qemu process are aliased to g->fd: g->fd[0] = wfd[1]; g->fd[1] = rfd[0]; However if the child exits early, then child_cleanup closes g->fd[0], g->fd[1], AND the code at the cleanup1 label closes wfd[1], rfd[0], resulting in a double-close. Avoid this case by setting wfd[1], rfd[0] to -1. In the cleanup1 label, only close wfd[1], rfd[0] if they are not -1, and add the same for g->fd[0], g->fd[1].
* launch: Ensure errno from test_qemu_cmd is captured and printed.Richard W.M. Jones2012-06-261-5/+3
|
* launch: Set g->sock = -1 to avoid double-close.Richard W.M. Jones2012-06-261-0/+1
| | | | This fixes commit ef5c02c6ee72eb8e127115923951777a2c2b8480.
* launch: Log errors from close syscall.Richard W.M. Jones2012-06-261-1/+6
|
* tests: Add thread IDs to test of bug 790721.Richard W.M. Jones2012-06-261-5/+10
|
* sysprep: Don't check for /dev/fuse before running the test.Richard W.M. Jones2012-06-251-5/+0
| | | | | The program doesn't actually require FUSE when used without any --script options.
* fish: Allow mount-local test to be skipped with environment variable.Richard W.M. Jones2012-06-251-0/+5
| | | | The test uses FUSE, so we need a way to disable it on RHEL 5.
* tests: Allow SELinux tests to be skipped with an environment variable.Richard W.M. Jones2012-06-251-0/+6
|
* Version 1.19.11.1.19.11Richard W.M. Jones2012-06-2520-11533/+11620
|
* launch: Treat /dev/null specially, for old KVM.Richard W.M. Jones2012-06-256-10/+45
| | | | | | | | | Old KVM can't add /dev/null readonly. Treat /dev/null as a special case. We also fix a few tests where /dev/null was being used with format=qcow2. This was always incorrect behaviour, but qemu appears to tolerate it.
* lib: Remove obsolete NETWORK, ROUTER definitions in header file.Richard W.M. Jones2012-06-251-21/+0
| | | | These haven't been used since we switched over to virtio-serial.
* Version 1.19.10.1.19.10Richard W.M. Jones2012-06-2220-592/+542
|
* tests/xml: Fix compilation of test on RHEL 5 with old libvirt.Richard W.M. Jones2012-06-221-2/+9
| | | | | | | | | | | Old <libvirt.h> had a conflicting definition of virDomainGetXMLDesc: fake_libvirt_xml.c:36: error: conflicting types for 'virDomainGetXMLDesc' /usr/include/libvirt/libvirt.h:715: error: previous declaration of 'virDomainGetXMLDesc' was here The difference is not material ('int' vs. 'unsigned int'). Avoid the error by not including <libvirt.h>.
* tests: Add workaround for missing O_CLOEXEC.Richard W.M. Jones2012-06-221-0/+4
|
* tests: Fix broken workarounds for missing O_CLOEXEC.Richard W.M. Jones2012-06-222-2/+2
|
* test-virt-resize: Replace truncate with guestfish sparse.Richard W.M. Jones2012-06-221-1/+1
| | | | | | | Another instance of 'truncate' command. See commit 39df80dcc0e485e69048bddbf33c259ce532e50d for an explanation.
* part-get-bootable: Fix when partitions are missing or unordered (RHBZ#602997).Richard W.M. Jones2012-06-221-4/+16
| | | | | | | | The original fix for this in commit 511c82df46f5c6f4a7f984fdb81d4691038ed6da was not complete, in that it did not fix the case of the old (pre '-m' option) parted. This doesn't matter for Fedora, but it matters for RHEL 5 which has this ancient parted.
* ruby: Add a replacement rb_hash_lookup function for Ruby 1.8.5.Richard W.M. Jones2012-06-223-1/+23
| | | | This function was first added to Ruby in 1.8.7.
* ruby: Fix libruby test.Richard W.M. Jones2012-06-221-3/+2
| | | | | | If -lruby was not available, this used to define HAVE_LIBRUBY=0. However this meant that the later test -n "$HAVE_LIBRUBY" would be successful, whereas it should fail in this case.
* virt-format: Don't call wipefs unless API is available.Richard W.M. Jones2012-06-221-1/+25
| | | | | This API is optional. Don't call it unless it's available in the appliance.
* tests: Add SKIP_TEST_* variables to allow these tests to be skipped.Richard W.M. Jones2012-06-228-0/+40
| | | | | By setting these variables, we can skip tests that fail on RHEL 5.
* FAQ: Mention update-guestfs-appliance (thanks Steven Dake).Richard W.M. Jones2012-06-191-0/+4
|
* build: Workaround for AC_PROG_SED not existing.Richard W.M. Jones2012-06-181-1/+7
| | | | This didn't exist on ancient autoconf in RHEL 5.
* build: Define abs_builddir if not defined already.Richard W.M. Jones2012-06-183-0/+9
| | | | | | This is missing on RHEL 5. This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6.
* Version 1.19.9.1.19.9Richard W.M. Jones2012-06-1818-325/+325
|
* fuse: Skip 'truncate' tests if this command is missing.Richard W.M. Jones2012-06-181-9/+12
|
* tests: Replace truncate command with 'guestfish sparse'.Richard W.M. Jones2012-06-186-7/+13
| | | | | | | | | | RHEL 5 didn't have the truncate command, but we can replace: truncate -s SIZE FILE with the roughly equivalent command: guestfish sparse FILE SIZE
* fuse: Add replacement for fuse_opt_add_opt_escaped.Richard W.M. Jones2012-06-182-1/+37
| | | | | | | RHEL 5-era FUSE didn't have this function. I copied the function out of upstream FUSE, since the license is compatible.
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-1816-10/+61
| | | | | | | | | | | | | | | | | | | | | RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
* ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.Richard W.M. Jones2012-06-183-3/+3
|
* configure: Look for mkisofs as well as genisoimage.Richard W.M. Jones2012-06-181-2/+2
| | | | For our purposes, the two tools are compatible.
* Ignore .gdb_history file.Richard W.M. Jones2012-06-141-0/+1
|
* ppc64: is_openable function needed on all platforms now.Richard W.M. Jones2012-06-141-4/+0
| | | | This fixes commit 295d6af48d1d8c5238d1536b0c6a2ece42b0b445.
* Version 1.19.8.1.19.8Richard W.M. Jones2012-06-146-59/+153
|
* tests: Add tests for extended attrs and SELinux, direct and via FUSE.Richard W.M. Jones2012-06-148-0/+466
| | | | | | | Note that the SELinux + FUSE test is disabled because of: https://bugzilla.redhat.com/show_bug.cgi?id=811217 https://bugzilla.redhat.com/show_bug.cgi?id=812798#c42
* virtio-scsi: Increase udev timeout.Richard W.M. Jones2012-06-142-2/+2
| | | | | In Koji, when you've got 200+ disks, udev times out before all the udev events have been processed.
* virt-edit: Document CVE-2012-2690.Richard W.M. Jones2012-06-141-0/+14
|
* Require febootstrap >= 3.17.Richard W.M. Jones2012-06-141-1/+1
|
* Version 1.19.7.1.19.7Richard W.M. Jones2012-06-1320-20919/+21961
|
* tests: Add a test which adds the maximum number of disks and uses them.Richard W.M. Jones2012-06-134-0/+194
|
* virt-df: Use guestfs_max_disks instead of hard-coding limit of 25.Richard W.M. Jones2012-06-133-49/+142
| | | | And comprehensively fix it so it works with > 26 disks.
* New API: device-index.Richard W.M. Jones2012-06-133-2/+38
| | | | | | This returns the index of the device, eg. /dev/sdb => 1. Or you can think of it as the order that the device was added, or the index of the device in guestfs_list_devices.
* New API: guestfs_canonical_device_name.Richard W.M. Jones2012-06-1312-122/+117
| | | | This API makes device names canonical, eg. /dev/vda1 -> /dev/sda1.
* lvm-filter: Make it work with > 26 devices.Richard W.M. Jones2012-06-131-11/+14
| | | | Thanks Alasdair Kergon.
* daemon: Fix order of devices in guestfs_list_devices when > 26 disks.Richard W.M. Jones2012-06-133-2/+69
| | | | | Sort the device names correctly, not just treating them as strings. As a result, /dev/sdz < /dev/sdaa.
* New API: guestfs_max_disks.Richard W.M. Jones2012-06-133-0/+36
| | | | Returns the maximum number of disks that may be added to a handle.
* Update documentation on maximum number of disks.Richard W.M. Jones2012-06-131-8/+10
|
* appliance: Add lsscsi to package list.Richard W.M. Jones2012-06-131-0/+1
|
* virtio-scsi: Fix disk name calculation.Richard W.M. Jones2012-06-131-2/+3
| | | | This fixes commit 0c0a7d0d868d153adf0600189f771459e1068b0a.