summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* extra-tests: Add suppression for uninitialized memory bug in latest glibc.Richard W.M. Jones2012-02-081-0/+8
|
* extra-tests: libnl moved from /lib64 to /usr/lib64 on Fedora.Richard W.M. Jones2012-02-081-0/+13
| | | | Update suppressions file to match.
* perl: Ignore perl/MYMETA.jsonRichard W.M. Jones2012-02-071-0/+1
|
* blockdev, parted: Call udev_settle before and after commands. (RHBZ#769304)Richard W.M. Jones2012-02-062-52/+115
| | | | | | | See comments in the code for details. This is an alternate fix to commit a9c8123c72db47bcab8dd738e8d5256a9ae87f11.
* Revert "daemon: Run udev_settle after pwrite-device finishes."Richard W.M. Jones2012-02-062-17/+4
| | | | This reverts commit a9c8123c72db47bcab8dd738e8d5256a9ae87f11.
* build: Choose a virtual directory for the daemon which is not a symlink.Richard W.M. Jones2012-02-062-4/+27
| | | | | | | Check /sbin, /usr/sbin, /bin and /usr/bin to ensure that neither the directory nor the parent (eg. /usr) is a symlink, and use this directory for the virtual directory used to store guestfsd in the appliance.
* build: Remove 'run' from EXTRA_DIST.Richard W.M. Jones2012-02-031-1/+0
| | | | | | This file shouldn't be included in the tarball as it contains hard-coded paths from the maintainer's machine which cannot be relevant to the target machine.
* Version 1.17.4.1.17.4Richard W.M. Jones2012-02-0120-46/+65
|
* Clarify the error message when unavailable functions are called (RHBZ#679737).Richard W.M. Jones2012-02-018-136/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Callers are supposed to use the availability API to check for functions that may not be available in particular builds of libguestfs. If they don't do this, currently they tend to get obscure error messages, eg: libguestfs: error: zerofree: /dev/vda1: zerofree: No such file or directory This commit changes the error message to explain what callers ought to be doing instead: libguestfs: error: zerofree: feature 'zerofree' is not available in this build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for how to check for the availability of features. This patch makes the stubs check for availability. The stub code changes to: static void zerofree_stub (XDR *xdr_in) { [...] /* The caller should have checked before calling this. */ if (! optgroup_zerofree_available ()) { reply_with_error ("feature '%s' is not available in this\n" "build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for\n" "how to check for the availability of features.", "zerofree"); goto done; } [...]
* examples: code cleanupsWanlong Gao2012-01-312-2/+2
| | | | | | do a code cleanup by removing the tailing spaces Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* guestmount: use O_ACCMODE instead of hard codingWanlong Gao2012-01-301-1/+1
| | | | | | | Change hard code 3 to O_ACCMODE. it'll be more sensible. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* guestmount: remove tailing spacesWanlong Gao2012-01-301-2/+2
| | | | | | | just do a cleanup. remove the tailing spaces. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* daemon: Fix crash in aug-defnode (RHBZ#785668).Richard W.M. Jones2012-01-301-6/+15
|
* virt-alignment-scan: Fix typo in man page (thanks yurchor).Richard W.M. Jones2012-01-281-1/+1
|
* ocaml: Various fixes for bytecode compilation.Richard W.M. Jones2012-01-281-8/+15
| | | | | | | | | | | | Set LD_LIBRARY_PATH so we link against the just-built library, not the installed library. Use OCAMLCFLAGS instead of OCAMLOPTFLAGS where appropriate. Remove unnecessary -cclib option for bytecode linking (gcc is not used in this case). This fixes commit eb68a314133c88260cdf4547d7d338446488e698.
* Version 1.17.3.1.17.3Richard W.M. Jones2012-01-2818-20/+26
|
* ocaml: Sort the tests.Richard W.M. Jones2012-01-281-2/+3
|
* extra-tests: ocaml: Additional suppressions so we can test bytecode.Richard W.M. Jones2012-01-281-0/+14
|
* ocaml: Test bytecode and native code bindings.Richard W.M. Jones2012-01-273-24/+68
| | | | | Compile each test twice, as bytecode and native code, and test both.
* ocaml: Fix bytecode bindings for functions with >= 6 args.Richard W.M. Jones2012-01-271-1/+1
|
* Update to latest gnulib.Richard W.M. Jones2012-01-272-0/+1
| | | | | | | | This contains a workaround for stdalign bug: http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023 (Thanks Paul Eggert).
* appliance: udev >= 176 now requires /dev to be a devtmpfs.Richard W.M. Jones2012-01-271-0/+3
| | | | | See this udev commit: https://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=220893b3cbdbf8932f95c44811b169a8f0d33939
* Version 1.17.2.1.17.2Richard W.M. Jones2012-01-2619-23/+27
|
* build: Add gobject/TODO.txt to EXTRA_DIST.Richard W.M. Jones2012-01-261-1/+2
| | | | This updates commit dd25638fc14ea63cf8e8eb0940173f1c6952447f.
* build: Add contrib/make-check-on-installed.pl to EXTRA_DIST.Richard W.M. Jones2012-01-261-0/+1
| | | | This updates commit 3d0c9f3fc63395083fef798ee31058a0bea8432e.
* contrib: Add a script for running test suite on installed packages.Richard W.M. Jones2012-01-262-0/+184
|
* contrib: Delete 'removed' sections from the README file.Richard W.M. Jones2012-01-261-19/+0
| | | | There is no point in continuing to document removed stuff.
* fish: Fix 'test-guestfish-escapes.sh' when running an alternate guestfish ↵Richard W.M. Jones2012-01-261-12/+16
| | | | | | | | | | | binary. The error messages would be prefixed by the path to the alternate binary, eg: ../fish/guestfish: invalid escape sequence in string (starting at offset 0) Fix this by normalizing the messages further.
* ocaml: Don't install bindtests.*.Richard W.M. Jones2012-01-261-0/+1
|
* ocaml: Don't install libguestfsocaml.a.Richard W.M. Jones2012-01-261-0/+1
|
* gobject: Add a TODO listMatthew Booth2012-01-261-0/+9
|
* gobject: Add an explicit close callMatthew Booth2012-01-264-13/+90
| | | | | This change binds guestfs_close(). It consequently results in RConstOptString being able to throw an error.
* gobject: Allow RConstOptString to return an errorMatthew Booth2012-01-261-18/+11
| | | | | | | | | | | RConstOptString cannot return an error in the C api. This makes it a special case for the GObject api, as all other return types have a corresponding GError **err argument to return an error. This change removes this special case, and includes the possibility of an error return in the API. An error is indicated by setting *err to a non-NULL value. This change is in preparation for adding a close api. An attempt to call any api, even RConstOptString, on a closed handle must return an error.
* appliance: Switch to using 'iproute' ('ip' command) from 'net-tools' ↵Jiri Popelka2012-01-252-6/+10
| | | | | | | | | (RHBZ#784647). Change 'ifconfig' and 'netstat' commands to use 'ip' instead. 'iproute' was already included in the appliance, so this reduces the size of the appliance accordingly.
* Version 1.17.1.1.17.1Richard W.M. Jones2012-01-2420-6635/+6688
|
* daemon: Fix use-after-free in case-insensitive-path (found by valgrind).Richard W.M. Jones2012-01-241-38/+81
| | | | | | | | | This commit tidies up the code by splitting out the path element-searching code into a separate function. Valgrind found that 'closedir' frees the 'struct dirent *', which wasn't immediately obvious. So now we do the 'closedir' after all operations which touch 'd->d_name'.
* daemon: Fix leaking error message (found by valgrind).Richard W.M. Jones2012-01-241-0/+1
|
* daemon: Close inotify handle on exit.Richard W.M. Jones2012-01-241-0/+11
|
* daemon: Close augeas handle on exit.Richard W.M. Jones2012-01-241-0/+11
|
* daemon: Fix leak of strings in md-detail (found by valgrind).Richard W.M. Jones2012-01-241-2/+2
|
* daemon: md: Whitespace changes, and use size_t for i instead of pointer.Richard W.M. Jones2012-01-241-20/+23
| | | | This is just a code clean-up with no functional change.
* daemon: Fix leak of strings in blkid (found by valgrind).Richard W.M. Jones2012-01-241-2/+2
|
* daemon: blkid: Whitespace changes, and use size_t for i instead of pointer.Richard W.M. Jones2012-01-241-18/+21
| | | | This is just a code clean-up with no functional change.
* daemon: Return value from write syscall is ssize_t, not int.Richard W.M. Jones2012-01-241-1/+1
|
* daemon: Don't leak 'cmdline' (found by valgrind).Richard W.M. Jones2012-01-241-0/+2
|
* daemon: Length of message is a 32 bit unsigned quantity.Richard W.M. Jones2012-01-241-2/+2
|
* daemon: Fix use of uninitialized stack data (found by valgrind).Richard W.M. Jones2012-01-241-0/+2
| | | | | This uninitialized data was also sent over the protocol, potentially being a serious information leak.
* daemon: Fix memory leak in 'initrd-cat' (found by valgrind).Richard W.M. Jones2012-01-241-0/+2
|
* Enable running the daemon under valgrind.Richard W.M. Jones2012-01-247-3/+54
| | | | | | | | | | | | | | | | | This commit allows you to run the daemon under valgrind. You have to enable it at configure time: ./configure --enable-valgrind-daemon This should *not* be done for production builds. When this feature is enabled, valgrind is added to the appliance and the daemon is run under valgrind. Log messages from valgrind are passed back over a virtio-serial channel into a file called 'valgrind.log.$PID' in the top build directory. Running 'make check', 'make extra-tests' etc causes many valgrind.log.* files to be created which must be examined by hand.
* resize, sparsify: find progress mini-library in out-of-tree builds (2)Hilko Bengen2012-01-232-3/+3
|