summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ruby: Fix libruby test.Richard W.M. Jones2012-06-281-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. (cherry picked from commit 823ba05ebd8f1a12574a3f154aaf7c8b4f2aeeac)
* virt-format: Don't call wipefs unless API is available.Richard W.M. Jones2012-06-281-1/+25
| | | | | | This API is optional. Don't call it unless it's available in the appliance. (cherry picked from commit 6cb74d46ba5b1c3f1edd3bfb12df9d4da2ec8a8f)
* tests: Add SKIP_TEST_* variables to allow these tests to be skipped.Richard W.M. Jones2012-06-288-0/+40
| | | | | | By setting these variables, we can skip tests that fail on RHEL 5. (cherry picked from commit 145f35badfd9ca4a6d9f54f7732566a5e5114876)
* Version 1.18.2.1.18.2Richard W.M. Jones2012-06-2120-3903/+3973
|
* FAQ: Mention update-guestfs-appliance (thanks Steven Dake).Richard W.M. Jones2012-06-211-0/+4
| | | | (cherry picked from commit 6352953ea927819a8ece795d03c4938e657d0a97)
* build: Workaround for AC_PROG_SED not existing.Richard W.M. Jones2012-06-211-1/+7
| | | | | This didn't exist on ancient autoconf in RHEL 5. (cherry picked from commit 489da3ccdf96e995d3f53fe68eced37b16baa1d2)
* build: Define abs_builddir if not defined already.Richard W.M. Jones2012-06-213-0/+9
| | | | | | | This is missing on RHEL 5. This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6. (cherry picked from commit bc7f1a5ef156576c069f47ea33f4977979ac032d)
* fuse: Skip 'truncate' tests if this command is missing.Richard W.M. Jones2012-06-211-9/+12
| | | | (cherry picked from commit d7c9c6a0d926982b64d13949a5da580ea4ecc4b6)
* tests: Replace truncate command with 'guestfish sparse'.Richard W.M. Jones2012-06-216-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 (cherry picked from commit 39df80dcc0e485e69048bddbf33c259ce532e50d)
* fuse: Add replacement for fuse_opt_add_opt_escaped.Richard W.M. Jones2012-06-212-1/+37
| | | | | | | | RHEL 5-era FUSE didn't have this function. I copied the function out of upstream FUSE, since the license is compatible. (cherry picked from commit 4846b84476015874d569c14c2c30fcd71aa4d54c)
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-2116-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 (cherry picked from commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6)
* ocaml: Use OCAMLOPTFLAGS when compiling .cmx (ie. native code) files.Richard W.M. Jones2012-06-213-3/+3
| | | | (cherry picked from commit dd216fedbdacfd641c2da4073ae26d3ccb6098a6)
* configure: Look for mkisofs as well as genisoimage.Richard W.M. Jones2012-06-211-2/+2
| | | | | For our purposes, the two tools are compatible. (cherry picked from commit 87de36670108a19b832e8f5ded8d413e7b575d70)
* Ignore .gdb_history file.Richard W.M. Jones2012-06-211-0/+1
| | | | (cherry picked from commit 60a2f8706b305b4068df020598abee9566022e20)
* virt-edit: Document CVE-2012-2690.Richard W.M. Jones2012-06-211-0/+14
| | | | (cherry picked from commit d43e3d63de1622e98313bb797922dfd7d95ddd11)
* lvm-filter: Make it work with > 26 devices.Richard W.M. Jones2012-06-211-11/+14
| | | | | Thanks Alasdair Kergon. (cherry picked from commit 998ebc333dbfe40c5953e36fb42f9610727a7532)
* daemon: Fix order of devices in guestfs_list_devices when > 26 disks.Richard W.M. Jones2012-06-213-2/+69
| | | | | | Sort the device names correctly, not just treating them as strings. As a result, /dev/sdz < /dev/sdaa. (cherry picked from commit c0a087b8236755e95371d5c352c9d29a3ca992c0)
* appliance: Add lsscsi to package list.Richard W.M. Jones2012-06-211-0/+1
| | | | (cherry picked from commit cef979b2897725b735c68f5b806d332f4cea864d)
* tests/md: Don't hard code /dev/vda in expected output of tests.Richard W.M. Jones2012-06-212-13/+14
| | | | | Use a small sed script to canonicalize the device names. (cherry picked from commit 320adf477805f703b0a1c79d86c3fb4078d11700)
* tests: Fix spelling in comment.Richard W.M. Jones2012-06-211-2/+2
| | | | (cherry picked from commit 9a5c0d39081f9f40d7ad12fbb55fb6120046679c)
* tests/lvm: Don't hard-code /dev/vda in test.Richard W.M. Jones2012-06-211-1/+1
| | | | | | Hard-coding it breaks virtio-scsi because the devices are called /dev/sda etc. (cherry picked from commit 7509cdf18e6d3fd96b10246f4d0417e5285e38f6)
* daemon: Always pass -F option to mke2fs.Richard W.M. Jones2012-06-211-6/+6
| | | | | | | | | | | 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 ahead anyway. This caused several less-used APIs to break with virtio-scsi. (cherry picked from commit 62c5b6db58911a5e51f59965619355437b7a7214)
* tests: Allow regression test for bug 690819 to be skipped.Richard W.M. Jones2012-06-211-0/+12
| | | | (cherry picked from commit 251b131e0a55cce21f6ee2240315903e34c4ffe1)
* blockdev_getbsz: Remove test.Richard W.M. Jones2012-06-211-2/+1
| | | | | | The output of this test depends on page size, so on ppc64 it returns 64K. (cherry picked from commit 42475dd21fbdc551137fe815efadf08a87729642)
* fish: Change test-escapes so test is not endian-sensitive.Richard W.M. Jones2012-06-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The test used the external 'od' command to compare the output of guestfish with what it's supposed to be. Unfortunately by default this outputs groups of 2-byte words, with the words' endianness affected by the current hardware endianness. For example: x86-64$ echo -n ab | od 0000000 061141 0000002 ppc64$ echo -n ab | od 0000000 060542 0000002 By using 'od -b' instead we can output bytes instead of words, and there is no endianness issue, and the output is clearer: x86-64$ echo -n ab | od -b 0000000 141 142 0000002 ppc64$ echo -n ab | od -b 0000000 141 142 0000002 (cherry picked from commit 20137c8731d142797e2476e35fe724c95a8a7a06)
* out-of-tree build/install fix for translationsHilko Bengen2012-06-211-8/+6
| | | | (cherry picked from commit 6cf15e8841897d3190c3e730e6eeae06fe4b8b1d)
* Enhance BUGS script.Richard W.M. Jones2012-06-213-150/+175
| | | | | | | | | | | | | | | | Since RHBZ was updated, the old python-bugzilla program broke. When it was fixed, I found the (undocumented) ordering of the results from the old tool was no longer true. This commit adds a small Perl script to sort the output predictably. Now bugs are sorted by both bug state and bug number, so the output should be more stable than before. Re-enable creation of the BUGS file in 'make dist' (this reverts commit 91f3456244e7843768da659e24ce0aeeb4ebe4b0). Also the BUGS file has been updated. (cherry picked from commit f90c01a5dc6a01284debdd0a45406f9d4a5e7159)
* arm: Use #if defined instead of #ifdef.Richard W.M. Jones2012-06-211-1/+1
| | | | | No functional change. (cherry picked from commit 4e5d3b06fb2f366c0010ae6aa15f9dee74261917)
* ocaml: Fix parameters to ocaml_guestfs_create.Richard W.M. Jones2012-06-211-3/+3
| | | | | The first parameter (not used) is a unit, so declare it properly. (cherry picked from commit 1bdfc88eba7f932b2581d55ecf4455d0e70335c2)
* ppc64: Avoid "defined by not used" warning for is_openable function.Richard W.M. Jones2012-06-211-0/+4
| | | | (cherry picked from commit 450493cf6b563389bd11f02284bd22d7ed90b5da)
* Version 1.18.1.1.18.1Richard W.M. Jones2012-06-0119-676/+1605
|
* Split off GObject tests that require an applianceHilko Bengen2012-06-013-3/+32
| | | | (cherry picked from commit 3893dc0b9436ebb4dd620c6ca9b1d038eacf83a6)
* Fix out-of-tree build for GObject bindingsHilko Bengen2012-06-011-2/+2
| | | | (cherry picked from commit 148e8068267bcf9ce8ff3a5062747998f960619d)
* appliance: 'udevd' has been renamed, since it joined systemd.Richard W.M. Jones2012-06-011-28/+29
| | | | (cherry picked from commit a7868dd3c940b6cee0894e6033ba611f01a423dd)
* appliance: Move udev (common package name) to the common section.Richard W.M. Jones2012-06-011-3/+1
| | | | | This should be just code motion. (cherry picked from commit a7e4a6c692554e4207b3bdff65946427e66e9fce)
* tests: Add a test of non-ASCII character fidelity on various filesystem ↵Richard W.M. Jones2012-06-015-0/+494
| | | | | | | types (RHBZ#823887). Thanks Laszlo Ersek. (cherry picked from commit 8e8a5764293d1b6bc3dbfb9409722e4c13384aec)
* doc: Add documentation covering use of utf8 option when mounting vfat ↵Richard W.M. Jones2012-06-011-0/+77
| | | | | | (RHBZ#823887). (cherry picked from commit 6445bc5952efd47fb1aa0880d9038040551d72ed)
* trace: Fix display of non-printing characters.Richard W.M. Jones2012-06-011-0/+5
| | | | | | | | Previously the code would drop the first character in any sequence of non-printing characters that occurred within a string. Fix for commit e6f18c59d577dd0b443bc6a1d76f699c4e0dde9f. (cherry picked from commit 73071b3163774ff9a514a05bc8e6fb35fa910787)
* trace: Fix escaping of non-printable signed characters.Richard W.M. Jones2012-06-011-1/+1
| | | | | Fix for commit e6f18c59d577dd0b443bc6a1d76f699c4e0dde9f. (cherry picked from commit fba81add94cde015afe8a65245cb4e60a1d3e6bf)
* inspection: Don't fail if /etc/HOSTNAME or /etc/hostname are empty files ↵Richard W.M. Jones2012-06-012-4/+24
| | | | | | | | | | | | | | | | | | | (RHBZ#823821). Change guestfs___first_line_of_file so that if the file is empty this returns an empty string instead of an error. This is consistent with the behaviour of this function in the case where the file starts with a \n character, where it would previously have returned an empty string. Change all callers so that they handle this case. Then change the hostname parsing code so that it doesn't give up when /etc/HOSTNAME is empty, but falls through to the next alternative, and similarly for /etc/hostname. Thanks Todd Mummert for finding and diagnosing this bug. (cherry picked from commit f00066d22b11bf40d0272f68565a2a27fea15627)
* inspection: Use parse_release_file to parse ttylinux release file.Richard W.M. Jones2012-06-011-2/+1
| | | | | | | | | | parse_release_file should be used to set fs->product_name, instead of calling guestfs___first_line_of_file directory, although currently the two are equivalent. This is code motion and fixes commit b648b1813fc8e55db790435b5414d9be3ec765d2. (cherry picked from commit cffb7fefc88a317f957785f6448fb24183c8c629)
* fish/mount: Add better error message when -m (mount) fails (RHBZ#824043).Richard W.M. Jones2012-06-012-7/+16
| | | | (cherry picked from commit ee9ab52bc3e087f63dcc51d3b6ac5c79277425e1)
* fish: Remove inaccurate comment from code.Richard W.M. Jones2012-06-011-4/+0
| | | | (cherry picked from commit 216a6d16abdfbc36a5514df34f59507ef825e33e)
* virt-make-fs: When writing vfat, add utf8 option to mount (RHBZ#823885).Richard W.M. Jones2012-06-011-1/+10
| | | | (cherry picked from commit d5d9ceee8b56a10761e207ad9970ebf704fc46e8)
* virt-make-fs: Provide a clearer error message when mkfs fails (RHBZ#823883).Richard W.M. Jones2012-06-011-1/+13
| | | | (cherry picked from commit 975a41db20eff2b5edf510f8a65005c915b21f27)
* appliance: Include 'bzip2' in appliance (RHBZ#824716).Richard W.M. Jones2012-06-011-0/+1
| | | | | | | | | Missing package caused this error in compress-device-out: libguestfs: error: compress_device_out: compression type bzip2 is not supported Thanks Mohua Li. (cherry picked from commit f904fa822316ff793e71d4d4ff7dc79e608dcb25)
* FAQ: Add section about using libguestfs in closed source programs.Richard W.M. Jones2012-06-011-0/+9
| | | | (cherry picked from commit b8b5ed65c26dd19a0bc9f8282a50c6dff90c456a)
* FAQ: Add a note about "child process died unexpectedly".Richard W.M. Jones2012-06-011-0/+12
| | | | | | This is a common search term on the main website, and there is no good information provided by Google at present. (cherry picked from commit 144d7cd98811472a5541d2c53c487e670657051b)
* FAQ: Update Ubuntu instructions.Richard W.M. Jones2012-06-011-4/+24
| | | | (cherry picked from commit c7d3aa9cd6c065158d43b3c7fe553e814c642d6b)
* java: Remove unnecessary imports from the generated Java code.Richard W.M. Jones2012-06-011-8/+0
| | | | (cherry picked from commit 54028b9b669cfe495089a7652bb8cd06115f4907)