Commit Graph

3972 Commits

Author SHA1 Message Date
Richard W.M. Jones
ec0161d3ba Version 1.16.35. 1.16.35 2013-04-11 18:32:09 +01:00
Richard W.M. Jones
f4ba5564c8 valgrind suppressions: Suppress libmagic leaks.
(cherry picked from commit f1a73f3281)
2013-04-11 18:10:26 +01:00
Richard W.M. Jones
553fc879a1 daemon: file: Remove extraneous space after output of 'file' command (RHBZ#928995).
(cherry picked from commit d6ea2f5911)
(cherry picked from commit ffefe26ec5)
2013-04-11 16:49:38 +01:00
Richard W.M. Jones
28a0d52555 python: Let RHashtable be returned as a Python dict.
The initial proposal was suggested by Matt Booth and discussed on the
mailing list here:

https://www.redhat.com/archives/libguestfs/2013-April/msg00007.html

(cherry picked from commit ba0199c487)
(cherry picked from commit 70e550c775eb5312ddd095146235bb7ac92cc4a0)
2013-04-11 16:49:38 +01:00
Richard W.M. Jones
f153f67090 proto: Fix stack overflow when there are many progress events (RHBZ#909624).
Thanks: Eric Blake.
(cherry picked from commit b3cf5d1d96)
(cherry picked from commit d91a048c58)
2013-04-11 16:25:14 +01:00
Richard W.M. Jones
3535eafc4a fuse: If guestfs_last_errno returns 0, don't return no error to FUSE layer.
guestfs_last_errno (g) == 0 doesn't mean "no error".  It means the
errno was not captured.  In this case we have to substitute some sort
of errno, so choose EINVAL arbitrarily.
(cherry picked from commit 28e34290ff)
(cherry picked from commit eda7274512)
2013-04-11 16:24:07 +01:00
Richard W.M. Jones
0f21b64aa1 daemon: Change ln, ln-f (hard-link) APIs to use link(2) instead of external ln (RHBZ#895905).
The reasons to do this are twofold:

(a) It's probably a tiny bit faster.

(b) It lets us capture the real errno if the link(2) syscall fails.

The errno is also passed through guestmount, fixing RHBZ#895905:

+ guestmount -a test1.img -m /dev/sda1:/ -m /dev/sda2:/boot /tmp/mnt
+ touch /tmp/mnt/foo
+ cd /tmp/mnt
+ ln foo boot/foo
ln: failed to create hard link ‘boot/foo’ => ‘foo’: Invalid cross-device link

(cherry picked from commit 533082e282)
(cherry picked from commit 8e8978cb48)
2013-04-11 16:22:08 +01:00
Richard W.M. Jones
6cc1e46fde Version 1.16.34. 1.16.34 2012-11-22 14:08:05 +00:00
Richard W.M. Jones
0ba80caa1d ./run: Ensure all paths are built up cumulatively.
(cherry picked from commit d0f89fed85)
(cherry picked from commit 79d445df5d)
2012-11-22 13:09:00 +00:00
Richard W.M. Jones
442651ce60 perl: Add test of multiple independent handles.
(cherry picked from commit d14557d434)
(cherry picked from commit 1c4b44bc75)
2012-11-22 13:08:42 +00:00
Richard W.M. Jones
99e9ead404 perl: Clean up and update the tests.
(cherry picked from commit 4a2e8e8957)
(cherry picked from commit f3aa9f3868)
2012-11-22 13:08:38 +00:00
Richard W.M. Jones
4e687f687a recipes: Add sections about hexdumping, hexediting sectors.
(cherry picked from commit 5d9f10c312)
(cherry picked from commit 6ea7c08c99)
2012-11-22 13:07:05 +00:00
Richard W.M. Jones
f1a304055a recipes: Add recipe for diffing two guests.
(cherry picked from commit fd81d3f9b2)
(cherry picked from commit c8b3ea823e)
2012-11-22 13:07:01 +00:00
Richard W.M. Jones
9152ba4873 dist: Add miscellaneous files to the tarball.
Lots of these had been omitted over time.
(cherry picked from commit e8ad3efbc4)
(cherry picked from commit 0fbf12736a)
2012-11-22 13:06:47 +00:00
Richard W.M. Jones
d55c359b26 tests/protocol: Add test-qemudir-launchfail.sh to tarball (but don't run it).
This file was present in git, but missing from the tarball.

Don't actually run the test: it depends on details of how the
appliance is constructed which would fail for old-style appliances.
(cherry picked from commit 2d89aef897)
(cherry picked from commit 1608317239)
2012-11-22 13:05:18 +00:00
Richard W.M. Jones
0b988037ce tests: More efficient use of strings in the object code.
No functional change.
(cherry picked from commit a74f168168)
(cherry picked from commit aae5a9b333)
2012-11-22 13:04:09 +00:00
Richard W.M. Jones
8f53a9f00c tests: Cleanup code that prints each test name.
This is just code motion.
(cherry picked from commit 2deb235cf4)
(cherry picked from commit 03584e9a32)
2012-11-22 13:03:55 +00:00
Richard W.M. Jones
8a3cc4b0e0 tests: Change code for printing warnings about untested functions.
Just code cleanup, no functional change.
(cherry picked from commit 56c7967cad)
(cherry picked from commit 802cb6068b)
2012-11-22 13:03:49 +00:00
Richard W.M. Jones
507759bfe9 tests: Remove dead code in generated output.
(cherry picked from commit 04a8cffee7)
(cherry picked from commit e4ddeb4e85)
2012-11-22 13:03:45 +00:00
Richard W.M. Jones
b0435cf6bb tests: Format the generated code properly.
This is just whitespace changes in the output.
(cherry picked from commit 599a1930b0)
(cherry picked from commit 6360e6e253)
2012-11-22 13:03:39 +00:00
Richard W.M. Jones
97c37075a7 lib: Break long line in definition of guestfs_set_error_handler.
This is just a whitespace change.
(cherry picked from commit 2013e005bd)
(cherry picked from commit 5d799b8e90)
2012-11-22 13:03:34 +00:00
Richard W.M. Jones
d8f2c83e1c format: Allow virt-format test to be skipped by setting SKIP_TEST_VIRT_FORMAT_SH=1.
(cherry picked from commit 101fd44fc5)
(cherry picked from commit a7f059cc78)
2012-11-22 13:03:23 +00:00
Richard W.M. Jones
b582175fee Version 1.16.33. 1.16.33 2012-10-30 19:22:56 +00:00
Richard W.M. Jones
4c8f514165 build: Source 'localenv' in top-level Makefile.
Also document 'local*' files.
(cherry picked from commit de129a1363)
(cherry picked from commit 3ede8bed62)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
6cb10eac0f guestfs-testing: Use L<> around links.
(cherry picked from commit dd09744432)
(cherry picked from commit 204d87098a)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
057ca1ea64 docs: Review and clarify ERROR HANDLING section of guestfs(3).
Cherry picked from commit 3c1d85ae95.
Modified to remove references to libguestfs 1.20.
(cherry picked from commit 438206c750)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
6450a2721f gitignore: Ignore config.cache file.
(cherry picked from commit 835ae2c43c)
(cherry picked from commit 14d39df155)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
b480edbb63 daemon: Mark some functions as attribute((noreturn)).
(cherry picked from commit 5c8f073786)
(cherry picked from commit 1a6c3d665a)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
3d68039f84 resize: Depend explicitly on Unix module.
Commit a0722c7ad8 introduced a
dependency on the Unix module.  This was not listed in the list of
'-package's, but as long as you had ocaml-gettext installed it would
still work because that pulled in Unix implicitly.

Thanks Olaf Hering.

(cherry picked from commit a66fd2fac2)
(cherry picked from commit b7d622dbbf)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
16c4153798 valgrind: Add suppression for memory leak in libdl:_dl_init function.
(cherry picked from commit 2dab72794e)
(cherry picked from commit 3e77ee6a96)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
c2035e5026 configure: Add db5.1_dump, db5.1_load for Debian Wheezy.
(cherry picked from commit 67e483689c)
(cherry picked from commit 2fe8e9d051)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
c1e3606c29 ocaml: Get rid of CAMLprim.
It's wrong to use it, and in any case it doesn't do anything on Linux.

(cherry picked from commit 3d46f7dc03)
(cherry picked from commit 46ab54b168)
2012-10-30 18:42:34 +00:00
Richard W.M. Jones
61b7a6c83d resize, sparsify: Suppress progress bar when output is not a tty.
(cherry picked from commit a0722c7ad8)
(cherry picked from commit f90b5bdff7)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
05c9263ae0 sparsify: Fix dependencies so they include resize/progress.*
This fixes commit 91b2238fc8.
(cherry picked from commit c9acb029ed)
(cherry picked from commit 1cce90463e)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
4d9caf6a0b valgrind: Fix FUSE memory leak suppression.
(cherry picked from commit 626ca8e74f)
(cherry picked from commit 41dbcdf94f)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
e19786c1a7 docs: Make 'EVENTS' into its own =head1 section.
For some reason it was stuck under "CALLS WITH OPTIONAL ARGUMENTS",
which made no sense.
(cherry picked from commit 085bf7c97a)
(cherry picked from commit 27114fc026)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
7004a88d1d lib: Pointer arg to safe_memdup function should be const.
(cherry picked from commit 64e8e0011c)
(cherry picked from commit 53eb3eb45a)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
fbceb538ce daemon: Call udev-settle at the start of the daemon.
(cherry picked from commit 15b9ed3ed2)
(cherry picked from commit 54cf2805bd)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
1226162d4b fish: progress bar: Send interactive progress bar output to /dev/tty (RHBZ#859875).
(cherry picked from commit 911a16a9fa)
(cherry picked from commit ea09c6e889)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
49a2541872 sparsify: Re-use progress bar wrapper code from virt-resize.
The code was identical -- just copied with s/resize/sparsify/.
Instead of duplicating identical code, cause the Makefile.am to use
the code from the ../resize/ directory.

Unfortunately because there are two Utils modules (which are
different), this means we had to rename those modules to Resize_utils
and Sparsify_utils respectively.  So this is a rather larger change
than intended.  However it's just code motion.

(cherry picked from commit 91b2238fc8)
(cherry picked from commit 07b409ff9a)
2012-10-30 18:42:33 +00:00
Richard W.M. Jones
18d5b809be fish: inspect: Move variable decls to top of function.
This is just code motion.
(cherry picked from commit c34dcf184e)
(cherry picked from commit 44d69a19f5)
2012-10-30 18:24:56 +00:00
Richard W.M. Jones
c8e0b12745 launch: Add warning not to avoid calling launch twice on the same handle.
For more information on this topic, see:
https://www.redhat.com/archives/libguestfs/2012-October/msg00045.html

(cherry picked from commit 2e388e8a37)
(cherry picked from commit 0cfad99d74)
2012-10-30 18:24:51 +00:00
Richard W.M. Jones
5d886100ef docs: Fully document all subdirectories of the source.
(cherry picked from commit 0032c60336)
(cherry picked from commit 856b8d7616)
2012-10-30 18:24:35 +00:00
Richard W.M. Jones
8ebb9b1715 docs: Add overview to guestfs(3)/EXTENDING LIBGUESTFS.
(cherry picked from commit b54fa22cd0)
(cherry picked from commit 52cc8c455e)
2012-10-30 18:24:01 +00:00
Richard W.M. Jones
11add08944 build: Use 'tmp-d' as name of temporary directory instead of 'tmp'.
When building supermin.d/daemon.img, use 'tmp-d' instead of 'tmp'
as the name of the temporary directory.

This is just code motion.
(cherry picked from commit 92feed7d66)
(cherry picked from commit 30d13b5c70)
2012-10-30 18:23:52 +00:00
Richard W.M. Jones
e10874a6d4 docs: add_drive: Clean up documentation of the 'filename' parameter.
Cherry picked from commit 1467ea00b8
and modified for stable-1.18 branch.
(cherry picked from commit 1369c71ec9)
2012-10-30 18:23:44 +00:00
Richard W.M. Jones
7e5dd485d1 docs: Minor cleanup of documentation for add_drive 'name' parameter.
(cherry picked from commit 60650da1ed)
(cherry picked from commit 2602275072)
2012-10-30 18:23:22 +00:00
Richard W.M. Jones
bfc5270528 syntax: Use __PATTERNS__ instead of @PATTERNS@ in podwrapper man pages.
It is slightly dangerous to use @PATTERNS@, since these might
be substituted by autoconf when they appear in Makefile.am files.

(cherry picked from commit 4a4ca0c01d)
(cherry picked from commit f346abfb41)
2012-10-30 18:22:39 +00:00
Richard W.M. Jones
eef20065b8 Version 1.16.32. 1.16.32 2012-10-01 16:30:37 +01:00
Richard W.M. Jones
f51a2de425 daemon: When sorting devices, don't fail on mix of /dev/sd and /dev/vd
(RHBZ#858128).

If compare_device_names was given two devices with devices with
different interfaces (eg. /dev/sda and /dev/vda) then it would try to
compare the partition numbers, and fail when it could parse them.

It's arguable what we should be doing in this case (except for
strongly discouraging people from using the interface feature), but
let's at least not cause the daemon to assert-fail.

Found by Red Hat QA, thanks Mohua Li.
(cherry picked from commit 6f53d49a27)
(cherry picked from commit 4ff32ca76e)
2012-10-01 15:07:14 +01:00