summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.16.33.1.16.33Richard W.M. Jones2012-10-3020-11957/+12688
|
* build: Source 'localenv' in top-level Makefile.Richard W.M. Jones2012-10-302-0/+37
| | | | | | Also document 'local*' files. (cherry picked from commit de129a136355a92aa6a4afe47678aa13160fc806) (cherry picked from commit 3ede8bed62cb867869a05b35e64a2dac536abf42)
* guestfs-testing: Use L<> around links.Richard W.M. Jones2012-10-301-2/+2
| | | | | (cherry picked from commit dd09744432468c416033ca84dc0ae1a438240de0) (cherry picked from commit 204d87098a0c9375c3bc5c10e8a9b7b7e8a1f768)
* docs: Review and clarify ERROR HANDLING section of guestfs(3).Richard W.M. Jones2012-10-301-12/+29
| | | | | | Cherry picked from commit 3c1d85ae95452cee30029c719aa2523fdb5384c7. Modified to remove references to libguestfs 1.20. (cherry picked from commit 438206c750267a4e95c4767e9e90fd3c29c45583)
* gitignore: Ignore config.cache file.Richard W.M. Jones2012-10-301-0/+1
| | | | | (cherry picked from commit 835ae2c43ca70a90e33262bb71da1883ab6a4473) (cherry picked from commit 14d39df1558164193bbd621b40ebf0e253b16c5a)
* daemon: Mark some functions as attribute((noreturn)).Richard W.M. Jones2012-10-301-2/+2
| | | | | (cherry picked from commit 5c8f073786285303f3bda1c30bd0b1953e0667a7) (cherry picked from commit 1a6c3d665a6dcbe8f4d1ad50be43f074ef5c63b8)
* resize: Depend explicitly on Unix module.Richard W.M. Jones2012-10-301-1/+1
| | | | | | | | | | | | Commit a0722c7ad846960be54978a31ebe73b76e119203 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 a66fd2fac25d5520b4eb2935dea6a501daed946a) (cherry picked from commit b7d622dbbf51fc69d77493020aa23e1e6e790dbf)
* valgrind: Add suppression for memory leak in libdl:_dl_init function.Richard W.M. Jones2012-10-301-0/+8
| | | | | (cherry picked from commit 2dab72794eef55f941cc61f1f34baa9fc7988298) (cherry picked from commit 3e77ee6a96c7e3131de29ecd6f375457cda7a4dd)
* configure: Add db5.1_dump, db5.1_load for Debian Wheezy.Richard W.M. Jones2012-10-301-2/+2
| | | | | (cherry picked from commit 67e483689c086e22e9a3e038ea4e7285d9a0c4d2) (cherry picked from commit 2fe8e9d0519a788220f45732446750622038ed85)
* ocaml: Get rid of CAMLprim.Richard W.M. Jones2012-10-302-16/+16
| | | | | | | It's wrong to use it, and in any case it doesn't do anything on Linux. (cherry picked from commit 3d46f7dc038f87e00a27e9f294d4115436f1ff23) (cherry picked from commit 46ab54b16819bb373dfdde74d7cc177ecfda77e2)
* resize, sparsify: Suppress progress bar when output is not a tty.Richard W.M. Jones2012-10-301-21/+27
| | | | | (cherry picked from commit a0722c7ad846960be54978a31ebe73b76e119203) (cherry picked from commit f90b5bdff7a5a454345980f2e69f3d43a187c33d)
* sparsify: Fix dependencies so they include resize/progress.*Richard W.M. Jones2012-10-301-1/+1
| | | | | | This fixes commit 91b2238fc8e462c02f697f0c053043a55f43c13d. (cherry picked from commit c9acb029edf7c20ca937a1f6051b5834cdfdddf7) (cherry picked from commit 1cce90463e26da1f6400fb5f2a5254f656014552)
* valgrind: Fix FUSE memory leak suppression.Richard W.M. Jones2012-10-301-2/+10
| | | | | (cherry picked from commit 626ca8e74f97a8c5fbe354211e81132976a21435) (cherry picked from commit 41dbcdf94f254c00a0bebfe2e0637ba4879a894a)
* docs: Make 'EVENTS' into its own =head1 section.Richard W.M. Jones2012-10-301-2/+6
| | | | | | | For some reason it was stuck under "CALLS WITH OPTIONAL ARGUMENTS", which made no sense. (cherry picked from commit 085bf7c97aae67e8f84fe95f97ee4bfee849d523) (cherry picked from commit 27114fc0267872792bccba6d9fc22652cadd1ce0)
* lib: Pointer arg to safe_memdup function should be const.Richard W.M. Jones2012-10-303-3/+3
| | | | | (cherry picked from commit 64e8e0011c6e961bae010b6008d07f501d53f35d) (cherry picked from commit 53eb3eb45afbf6685f92e10db954aa2b82618962)
* daemon: Call udev-settle at the start of the daemon.Richard W.M. Jones2012-10-301-0/+11
| | | | | (cherry picked from commit 15b9ed3ed2078c034f25bf3ba31298dd89c6cddf) (cherry picked from commit 54cf2805bd95f9a52f1ad0f21024af9f457bfc38)
* fish: progress bar: Send interactive progress bar output to /dev/tty ↵Richard W.M. Jones2012-10-301-18/+36
| | | | | | | (RHBZ#859875). (cherry picked from commit 911a16a9fa965ce8defb3307f6bf338f5d2d5c94) (cherry picked from commit ea09c6e889b57aab8d2989dba4821a66785ad991)
* sparsify: Re-use progress bar wrapper code from virt-resize.Richard W.M. Jones2012-10-3013-204/+20
| | | | | | | | | | | | | | 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 91b2238fc8e462c02f697f0c053043a55f43c13d) (cherry picked from commit 07b409ff9a2b4594b01fad3b6c53adbec2d31ad7)
* fish: inspect: Move variable decls to top of function.Richard W.M. Jones2012-10-301-3/+6
| | | | | | This is just code motion. (cherry picked from commit c34dcf184ef4eaa35634d1696e0c68d21b811170) (cherry picked from commit 44d69a19f56f57843ad5b6382bcfca19e99b8af1)
* launch: Add warning not to avoid calling launch twice on the same handle.Richard W.M. Jones2012-10-301-1/+6
| | | | | | | | For more information on this topic, see: https://www.redhat.com/archives/libguestfs/2012-October/msg00045.html (cherry picked from commit 2e388e8a3740aa470276b78027f51304a7f0ff92) (cherry picked from commit 0cfad99d74ebe2df9bd32a260bc03f4805239886)
* docs: Fully document all subdirectories of the source.Richard W.M. Jones2012-10-301-0/+17
| | | | | (cherry picked from commit 0032c60336c6f819859d30ec68179373e8943ef6) (cherry picked from commit 856b8d761692796fc5ed419ea9303db3a3cfba16)
* docs: Add overview to guestfs(3)/EXTENDING LIBGUESTFS.Richard W.M. Jones2012-10-301-3/+34
| | | | | (cherry picked from commit b54fa22cd0a6a091324ff1978e0de2c54a0fabde) (cherry picked from commit 52cc8c455e429aa5cc9f5218cb9b939edf3b95b1)
* build: Use 'tmp-d' as name of temporary directory instead of 'tmp'.Richard W.M. Jones2012-10-301-6/+6
| | | | | | | | | 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 92feed7d662b7d9d1f8c475cf06df203143a3a5f) (cherry picked from commit 30d13b5c70af2e08844dbd783561f794f5a914dd)
* docs: add_drive: Clean up documentation of the 'filename' parameter.Richard W.M. Jones2012-10-301-4/+5
| | | | | | Cherry picked from commit 1467ea00b850bec2722671a400adb2ffda533365 and modified for stable-1.18 branch. (cherry picked from commit 1369c71ec9726b7e655d041c061ea0d86687c894)
* docs: Minor cleanup of documentation for add_drive 'name' parameter.Richard W.M. Jones2012-10-301-2/+3
| | | | | (cherry picked from commit 60650da1ed7b6d916ceeee0e397c7bb2fbc282e5) (cherry picked from commit 2602275072cd24edb85bea5345421a35dad5a394)
* syntax: Use __PATTERNS__ instead of @PATTERNS@ in podwrapper man pages.Richard W.M. Jones2012-10-307-27/+27
| | | | | | | | 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 4a4ca0c01da3307b69fc4925c5f2ece1e728d4b3) (cherry picked from commit f346abfb412b772d57da1c58037bce7120534814)
* Version 1.16.32.1.16.32Richard W.M. Jones2012-10-0120-4744/+5181
|
* daemon: When sorting devices, don't fail on mix of /dev/sd and /dev/vdRichard W.M. Jones2012-10-011-0/+8
| | | | | | | | | | | | | | | | (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 6f53d49a27fbf7f1b5c22080e2509375e128d5e4) (cherry picked from commit 4ff32ca76ef11cc7a7b62ba2503c037cbd791b36)
* inspection: Fix calls to case_sensitive_path (RHBZ#858126).Richard W.M. Jones2012-10-015-34/+35
| | | | | | | | | | | | | | | | | | | | | | | | Don't assume that if guestfs_case_sensitive_path returns NULL, that it means the file does not exist. The (previously undefined) behaviour of case_sensitive_path was that a NULL return meant "either the file doesn't exist or some other error". However in commit 973581780d8a006f336684fef6762801402d775d this was changed so that if the last element of the path didn't exist, it was assumed to be a new file and the (non-NULL) path of the new file is returned. This change breaks code (including in libguestfs) which tries to use case_sensitive_path as a dual-purpose call to fix-up a path for Windows and test if the file exists. Such code should be rewritten so that it explicitly tests for file existence after calling case_sensitive_path. I examined all the calls to case_sensitive_path in libguestfs and modified them where necessary. Cherry picked from commit 9ea6e9701461e594033999150f930cc4fafec4d2. (cherry picked from commit ff610469fb8ad1d27dac5d3cb2f1e007d8c0ecc7)
* virt-edit: If case_sensitive_path returns an error, exit.Richard W.M. Jones2012-10-011-0/+2
| | | | | | | | | The 'windows_path' function was blindly copied from virt-cat. In virt-cat, errors are checked by the caller to 'windows_path'. But virt-edit lacks this check. Change the function in virt-edit to add a check and exit on error. (cherry picked from commit 55b7c4df7895b8c22d737723d857a9a63db69926) (cherry picked from commit dd913ddd0e78bd7f4a2a586fd824f467590f28d6)
* recipes: Add a section about diagnosing hanging guests.Richard W.M. Jones2012-10-011-0/+29
| | | | | (cherry picked from commit f7e138835a7194135113088767c46df65dbf292a) (cherry picked from commit f487298ed4cff3cbda26c0a62c94b9a5e71c13df)
* test-tool: Add prominent warning about including complete output.Richard W.M. Jones2012-10-011-0/+11
| | | | | | | | | Everyone ignores the documentation. Everyone ignores me even when I specifically tell them to include the complete output. Place a prominent notice at the beginning of the output. (cherry picked from commit 4f3048c6be0663c6c254a765ec5f83a7b40a8808) (cherry picked from commit 093d286f844b64dcb28543cec113c35208ea8e0d)
* test-tool: guestfs_get_path might return NULL.Richard W.M. Jones2012-10-011-1/+1
| | | | | | | It would almost certainly indicate a bug if it happens, but don't rely on printf not segfaulting if it did happen. (cherry picked from commit ca2e65275d797864d2a5b3b3d0e115460522e5bb) (cherry picked from commit c3eedd00d7d974613b4f8138211b8226e37b2c79)
* guestfs-testing(1): Start by running libguestfs-test-tool.Richard W.M. Jones2012-10-011-0/+14
| | | | | (cherry picked from commit 9b7813c5bd91d53e358deee64ab42b00b42c37ba) (cherry picked from commit 7d674f2fbfa663366c957f8662822f55ed1f2e1c)
* remove the useless "h" optionWanlong Gao2012-10-014-12/+0
| | | | | | | | "h" option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> (cherry picked from commit f7f746a98e8d378ac8934a7f7b82a48b3e2a5aa4) (cherry picked from commit 9b45ae5ddeb1703ba14a4eeefde53a45e03ce0c8)
* docs: Link to guestfs-recipes(1) from intro in guestfs(3).Richard W.M. Jones2012-10-011-0/+2
| | | | | (cherry picked from commit d19e557df54f3822d38621b8c2da098bf44b4d53) (cherry picked from commit b782d36589a981760625967b47b8e1d38aa1c90a)
* generator: Tidy up comments in guestfs_protocol.x.Richard W.M. Jones2012-10-011-8/+17
| | | | | (cherry picked from commit db6a8512402f068815f882928662af0d8f5eec83) (cherry picked from commit d7f08bc4f7b4fa50d15fcf74a41591ba952b9f1d)
* generator: Allow an optional emacs-mode at the top of generated files.Richard W.M. Jones2012-10-011-2/+7
| | | | | (cherry picked from commit a95d4261b8cedc31bfc3c5358be7b346b27d457b) (cherry picked from commit d8014089d1585810153f97fc75d8e5e93fb34b2f)
* test-launch-race: Add comment.Richard W.M. Jones2012-10-011-1/+1
| | | | | (cherry picked from commit 09c372ea250e8241d62e9fde70eabe7bdca83050) (cherry picked from commit 77ca1f94d5982a0b49a57b7787a7f89b6b0b7de4)
* ./run: Keep gnome-keyring from disturbing test script outputHilko Bengen2012-10-011-0/+4
| | | | | (cherry picked from commit 71f87d9a8f04212fc0534b3fb423780185181585) (cherry picked from commit 29d2be7d8e36068feea2bda5775a63672c15887c)
* rename local variable to avoid clash with match macroOlaf Hering2012-10-011-3/+3
| | | | | | | | match will expand to guestfs___match, rename the local variable to avoid clash. Signed-off-by: Olaf Hering <olaf@aepfle.de> (cherry picked from commit b36b44af9e177fe5c9677d430abc7cba0633049c) (cherry picked from commit 409a80476442a65b3c4498422fa6c812e21ba928)
* docs: Add links to various guestfs-* man pages from guestfs(3).Richard W.M. Jones2012-10-011-0/+4
| | | | | | Cherry picked from commit 64cc0dafd03bb23ef1520c8f46fd2dd44a0d8c4e. Remove ref to guestfs-release-notes(1) which doesn't exist in 1.18. (cherry picked from commit 9a01948a80cf4d6c3902b23c12d88e1b886dc4a5)
* recipes: Add section about uploading raw filesystem content.Richard W.M. Jones2012-10-011-0/+24
| | | | | (cherry picked from commit 8aa8eb205b02e1014e5ed9577f4a9da9fd864aba) (cherry picked from commit 53c4ec871d0d43dd628a9693b18017d1552ec651)
* launch: Make the "launched failed" message more explanatory.Richard W.M. Jones2012-10-012-2/+19
| | | | | | | | | | | Since this is the most common error seen by people who have installation problems, buggy qemu, etc, and since no one reads the FAQ, describe in this error message what resources are available to debug launch problems. Cherry picked from commit 840deea12079b05a9f588016af273843d5d6e1b8 and fixed for the stable branch. Cherry picked from commit 58f190b2b8c507c6151fd86e6fef896f842b3e87.
* Version 1.16.31.1.16.31Richard W.M. Jones2012-09-1921-1155/+1478
|
* extra-tests: Clean up some comments about the upstream qemu tests.Richard W.M. Jones2012-09-191-3/+4
| | | | (cherry picked from commit 157b5006dbf2db2927e48ce592a83a279513d183)
* extra-tests: Add scripts used by these tests to EXTRA_DIST.Richard W.M. Jones2012-09-191-1/+4
| | | | (cherry picked from commit 7e4b197cb6a5071c13e407546a21f9b93fe3798d)
* maint: remove a subsumed syntax-check ruleJim Meyering2012-09-191-11/+1
| | | | | | | * cfg.mk (sc_prohibit_trailing_blank_lines): Remove rule. It is now subsumed by the much more efficient sc_prohibit_empty_lines_at_EOF rule in gnulib's maint.mk. (cherry picked from commit 176bd182d3f94fe7e774b8af0b56c014f639d6c7)
* syntax: Exclude examples and test program from <config.h> requirementRichard W.M. Jones2012-09-191-0/+1
| | | | | (thanks Jim Meyering). (cherry picked from commit 3988dec9b7bbf3cb8628aff879d1f518a9d52404)
* syntax: Allow strncpy in launch-*.c files (thanks Jim Meyering).Richard W.M. Jones2012-09-191-0/+1
| | | | | | We use strncpy, justifiably, to copy the socket name into the fixed length Unix domain sun_path buffer. (cherry picked from commit 72ab351acef2f2bc6b0e4f36d69e94f8fa064f3c)