summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* syntax: Exclude examples from strcmp and strncmp checks (thanks Jim Meyering).Richard W.M. Jones2012-09-191-0/+2
| | | | (cherry picked from commit 369709177e47773eaa37f1fdbe8d9967b21d1133)
* syntax: Ignore documentation when testing for magic number exit() calls ↵Richard W.M. Jones2012-09-191-0/+1
| | | | | | (thanks Jim Meyering). (cherry picked from commit 552576c7f9ccb1862bcfc9fbd5c301d775aaf90c)
* syntax: Exclude PO files from doubled words test (thanks Jim Meyering).Richard W.M. Jones2012-09-191-0/+1
| | | | (cherry picked from commit 2100ba14fbfaf3e89059d9112959463506932d74)
* syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim ↵Richard W.M. Jones2012-09-192-5/+1
| | | | | | | | Meyering). The gnulib <fcntl.h> replacement header will now define this symbol if it's not defined already. (cherry picked from commit cb13ffe190ac41a9b77fe27521838f495c1a5077)
* syntax: Exclude period in error message checks from PHP programs (thanks: ↵Richard W.M. Jones2012-09-191-0/+1
| | | | | | Jim Meyering). (cherry picked from commit 2337b9ccd729e05b46cf6abb1f4173e6e994c1cb)
* syntax: Disable cast arg to free test (thanks Jim Meyering).Richard W.M. Jones2012-09-191-1/+2
| | | | (cherry picked from commit fbdcfe2b77b6c272876143779912d41b0849111f)
* syntax: Exclude certain files from bindtextdomain test (thanks Jim Meyering).Richard W.M. Jones2012-09-191-0/+3
| | | | (cherry picked from commit b95fff13577cdd3da4300bbd639441cc77cf935a)
* Update to latest gnulib.Richard W.M. Jones2012-09-192-0/+1
| | | | (cherry picked from commit e942c02a2eeb4d55606dec5fe943ea7d81f989ba)
* build: Ignore -Wjump-misses-init warning.Richard W.M. Jones2012-09-191-0/+1
| | | | | | | | | This libguestfs 1.18 and 1.16-specific patch is necessary because something (gcc? gnulib?) has enabled a strict -Wjump-misses-init warning, which breaks libguestfs builds. In the development branch we fixed everything (commit e128a627fb8f39f4f4c11b782cef895bd79f0282, commit 74283d58cfb62e6cc73bfe0f62ca142ddc1e8fb2), but that patch is too invasive to backport.
* extra-tests: Write a qemu wrapper script on the fly.Richard W.M. Jones2012-09-193-26/+14
| | | | | | | | | | | | Passing the $upstream_qemu environment variable is not reliable when libvirt is involved: Environment variables are passed to the first instance of the session libvirtd, but because libvirt reuses the session libvirtd, subsequent environment variable settings are lost (this is filed as RHBZ#856619). Bypass all of this by writing a custom qemu-wrapper.sh which contains the hard-coded values we want. (cherry picked from commit e6bd0b87eb753fa96b6533b0dbe498697701ad3a)
* extra-tests: The upstream qemu test now reruns all the extra tests.Richard W.M. Jones2012-09-193-10/+12
| | | | (cherry picked from commit 509dd90c43afed75b861b7d82ebe8739d3500d54)
* extra-tests: Fix libvirt URI so we can run tests with libvirt attach-method.Richard W.M. Jones2012-09-191-12/+8
| | | | (cherry picked from commit eeb0c598ec8caa50998336713ed4e62902e0a74d)
* syntax: Remove trailing whitespace.Richard W.M. Jones2012-09-197-9/+5
| | | | | Found by 'make syntax-check'. (cherry picked from commit 2cac8d490e9884a8c7376e49fd1cda2e3d3abec1)
* generator: Remove inaccurate comment.Richard W.M. Jones2012-09-191-20/+0
| | | | | | The correct way to extend functions is documented in generator/README. This comment was no longer accurate. (cherry picked from commit 44a11e955b31f7c0cf463a04d640263cccdd0c4d)
* syntax: Replace test == with = or -eq as appropriate.Richard W.M. Jones2012-09-192-12/+12
| | | | | Found by 'make syntax-check'. (cherry picked from commit 6361810b53be4d5e0513b4f7c11d29cf1d6d3b45)
* syntax: Use STREQ/STRNEQ in place of strcmp.Richard W.M. Jones2012-09-193-3/+5
| | | | | Found by 'make syntax-check'. (cherry picked from commit b0cefb417d01c6dcb87cc6bafe9c19b98c690c9d)
* perl: Add <stdio.h> and <stdlib.h> for printf and malloc.Richard W.M. Jones2012-09-191-0/+2
| | | | (cherry picked from commit cd8976a5b52425f9d7c45249e1a593a341d91c52)
* perl: Include <inttypes.h> and assume it always defines PRId64 and PRIu64.Richard W.M. Jones2012-09-191-8/+2
| | | | | | | If these are not defined in the header files, it's a problem on the platform which we should fix with gnulib. Our replacement definitions might be wrong here. (cherry picked from commit 188b44ee458a666bee8a18ed47cccdec25859aff)
* lib: These optargs structures are not modified, hence const.Richard W.M. Jones2012-09-191-3/+3
| | | | (cherry picked from commit 5a46eadd3dcab1b8944eabc0f21097048e0ebe13)
* syntax: Remove test for TAB indentation.Richard W.M. Jones2012-09-191-8/+0
| | | | | | Nothing particularly wrong with using TABs for indentation, and this test also has a lot of false positives. (cherry picked from commit ae137124ca143e57f16d103f24cb3f21a3157b09)
* docs: Fix documentation of syntax-check target, add extra-tests.Richard W.M. Jones2012-09-191-2/+7
| | | | (cherry picked from commit 6951becfdb0b69b4defff4393f48314e884ad7c1)
* test-tool: Print more environment variables.Richard W.M. Jones2012-09-191-7/+18
| | | | | | This prints LIBVIRT_*, LIBVIRTD_*, LD_* and PATH, since these are all useful for debugging and could affect libguestfs in some way. (cherry picked from commit 281b155800f2e62b994e59bef418ca200da8e93a)
* fish: Replace '_' with '-' in deprecation cross-refs (thanks Olaf Hering).Richard W.M. Jones2012-09-192-3/+5
| | | | (cherry picked from commit 8acdc23622ea95a233ac831d67c143517aa94bba)
* extra-tests: Don't use $QEMU as a variable.Richard W.M. Jones2012-09-192-6/+13
| | | | | | | Since 'QEMU' is set (overwritten) by the autoconf-generated Makefile, this test would always test installed qemu, not upstream qemu, making it pretty useless. Use another name for this variable. (cherry picked from commit 81c682f1295a934d18bd4dc9e42b8e843df0c207)
* fix fuse_opt_add_opt_escaped return typeOlaf Hering2012-09-191-1/+1
| | | | | | | | | | | I: Program returns random data in a function E: libguestfs no-return-in-nonvoid-function guestmount.c:75 The function fuse_opt_add_opt_escaped has only one caller and a return code is not checked. Signed-off-by: Olaf Hering <olaf@aepfle.de> (cherry picked from commit bdb5689f58c0db18de28d6a703b3af4f22eded38)
* rescue: If -v / debugging enabled, don't mask error messages.Richard W.M. Jones2012-09-191-1/+2
| | | | | | | | | We set the error handler to NULL in order to mask "normal" error messages that we expect to see because of the unusual way that virt-rescue runs the appliance. However if the user selected -v / enabled debugging, then it is reasonable to expect they want to see every message, so do not mask anything. (cherry picked from commit 6fdf1f40fa85d2e6e7a1118f4cfa532ea9831b89)
* java: Fix >= 32 optargs (thanks Wanlong Gao).Richard W.M. Jones2012-09-191-1/+1
| | | | (cherry picked from commit f65dee769d1fc53c5963c381bf8a1bf02654f78c)
* recipes: Checksum file/device. Download to stdout.Richard W.M. Jones2012-09-191-0/+26
| | | | (cherry picked from commit b799bc58a84e155783afae23f64f27e23ddd06dd)
* tests: Attach copyright and license (GPLv2+) notices to various test scripts.Richard W.M. Jones2012-09-197-0/+112
| | | | | For some reason these tests did not have license notices. (cherry picked from commit a1d981edeae120a0523d0974c703f1a956202415)
* src/dbdump.c: Shouldn't depend on HAVE_HIVEX (thanks Tao Zhou).Richard W.M. Jones2012-09-191-2/+2
| | | | (cherry picked from commit 4e6bf1ed653540a8954a6a11fe5a0fb424013af9)
* Version 1.16.30.1.16.30Richard W.M. Jones2012-08-3020-16132/+16387
|
* lib: Remove AUGEAS_CFLAGS, AUGEAS_LIBS.Richard W.M. Jones2012-08-301-2/+2
| | | | | | | The library doesn't actually use libaugeas, except indirectly via the libguestfs API. The libguestfs API implements this in the daemon, so there's no need for the library to link to augeas at all. (cherry picked from commit 228d49bb842cda517b414bbfab460e8be429cc5f)
* perl: bindtests: Fix 64 bit integers on input on 32 bit Perl interpreter.Richard W.M. Jones2012-08-303-5/+30
| | | | (cherry picked from commit 15cd9dde5e0e4a7d510de71ef8991750971cf6d1)
* Fix disabling the Perl bindings.Wulf C. Krueger2012-08-301-1/+1
| | | | | | | | --disable-perl isn't currently respected because $PERL correctly points to the perl executable and $missing_perl_modules doesn't prevent the perl parts to be installed either. Thus, a check for $enable_perl is needed. (cherry picked from commit cab48ce73cb19b1aa8784e6c6a3cb8f47b0cbc0e)
* po-docs: Copy all *.1 and *.3 files to the install dir.Richard W.M. Jones2012-08-302-8/+4
| | | | (cherry picked from commit 512f21c965c5d4bf1faf922d6a241c397f703e67)
* po-docs: Fix podwrapper so it works on translated POD files.Richard W.M. Jones2012-08-303-21/+68
| | | | | | | | | | | These don't contain literal strings like "AUTHORS" (they have the translated versions instead) and so checking for these English strings is rather useless. Also we don't usually have the '--license' parameter conveniently around so don't enforce this section. (cherry picked from commit ddc67d94f37ca4e942cb385d4e5ec476766fef12)
* tools: Fix podwrapper errors in tools directory.Richard W.M. Jones2012-08-306-94/+2
| | | | | | | | This also makes the test for license "code" less strict, so it should only match POD, not Perl comments. This fixes commit 2f97bf873b64384835f257f8916bf1ebb2af62b4. (cherry picked from commit 23b7fe09e1589c3c9ca5f52a9588ad1c73649b14)
* Mac OS X: Fixed combination of running autogen.sh on Linux and building on ↵Masami HIRATA2012-08-301-0/+2
| | | | | | | | Mac OS X Signed-off-by: Masami HIRATA <msmhrt@gmail.com> (cherry picked from commit 0a275bd090850963f331a115a4fadfbf1dfb1caf)
* podwrapper: Ignore $parser->html_charset if it fails (thanks Wulf C. Krueger).Richard W.M. Jones2012-08-301-1/+2
| | | | | | This method was added in Pod::Simple 3.16 so earlier versions of Perl won't have it. It's not the end of the world if we don't set it. (cherry picked from commit d555a68ca6475bbb6f7f60ae1bdcdffa99df351f)
* daemon: Call udev_settle after mkswap.Richard W.M. Jones2012-08-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This adds a call to udev_settle after creating the swap device. This is an attempt to workaround the following problem seen in Koji and Rawhide: libguestfs: trace: mkswap_L "swapit" "/dev/sda1" libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 00 | ... guestfsd: main_loop: proc 210 (part_disk) took 2.28 seconds guestfsd: main_loop: new request, len 0x44 mkswap -f -L swapit /dev/sda1 libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 01 | 00 12 37 cf | ... libguestfs: trace: mkswap_L = 0 libguestfs: trace: swapon_label "swapit" libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 00 | ... guestfsd: main_loop: proc 131 (mkswap_L) took 0.77 seconds guestfsd: main_loop: new request, len 0x34 swapon -L swapit swapon: cannot find the device for swapit guestfsd: error: swapit: swapon: cannot find the device for swapit libguestfs: recv_from_daemon: 100 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 01 | 00 12 37 d0 | ... libguestfs: trace: swapon_label = -1 (error) swapon_label: swapit: swapon: cannot find the device for swapit test_swapon_label_0 FAILED
* docs: Use man page name as default title in HTML output.Richard W.M. Jones2012-08-301-0/+5
| | | | (cherry picked from commit c638e1f03d2700560fe32c0889224ac29bd52334)
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-3023-0/+152
| | | | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed. (cherry picked from commit 2f97bf873b64384835f257f8916bf1ebb2af62b4)
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-3029-484/+15
| | | | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit. (cherry picked from commit f1d98bbc79496947210ee0305f80440ed8557ec1)
* podwrapper: Ensure the input file is printed in some error messages.Richard W.M. Jones2012-08-301-3/+3
| | | | (cherry picked from commit e89e180d2b1ee7c3a452a327a336dd3facd2a51f)
* docs: Document null disks.Richard W.M. Jones2012-08-302-0/+64
| | | | | | It's always been possible to use /dev/null as a disk image. Document this formally in the API. (cherry picked from commit e1e8b3a1cfdeee34fbd51f79b8724c5a58f25c10)
* recipes: Update dumping filesystem content to mention that we now support ↵Richard W.M. Jones2012-08-301-1/+1
| | | | | | MD/RAID. (cherry picked from commit 52e38c7bdc293cb2f2531eab3dde6d569a05b5e9)
* recipes: Refer to virt-format, virt-make-fs for creating disk images.Richard W.M. Jones2012-08-301-1/+7
| | | | (cherry picked from commit 1e4c6e36a6d122b4615dc509ef745dde7e37321d)
* recipes: Cloning Windows: plans for virt-sysprep.Richard W.M. Jones2012-08-301-10/+10
| | | | (cherry picked from commit 5f234548ed07b8e41a31462290aae3ea842630c2)
* recipes: For auditing for setuid files, point to virt-ls examples.Richard W.M. Jones2012-08-301-4/+1
| | | | (cherry picked from commit 9fd4d16819ad200814be717732c77664e18132f2)
* recipes: For sparsifying guests, point to virt-sparsify.Richard W.M. Jones2012-08-301-4/+1
| | | | (cherry picked from commit 0d2e70b1c71dba01f71a4375eb10b83059a41bb2)