Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test-tool: Don't print banner when using --help, -V, etc options (RHBZ#879416). | Richard W.M. Jones | 2012-11-23 | 1 | -11/+12 |
| | |||||
* | launch: Refactor duplicate code which constructs the appliance command line. | Richard W.M. Jones | 2012-11-23 | 4 | -67/+62 |
| | | | | Move this into a common file. | ||||
* | lib: Fix memory leak and simplify command code. | Richard W.M. Jones | 2012-11-23 | 6 | -38/+16 |
| | | | | | | | | | | | | | | | | | | | Fix the following memory leak found by valgrind: ==13629== 498 (112 direct, 386 indirect) bytes in 1 blocks are definitely lost in loss record 99 of 110 ==13629== at 0x4A06B2F: calloc (vg_replace_malloc.c:593) ==13629== by 0x4CA564E: guestfs_safe_calloc (alloc.c:71) ==13629== by 0x4CA9B02: guestfs___new_command (command.c:143) ==13629== by 0x4CA66E9: guestfs___build_appliance (appliance.c:690) ==13629== by 0x4CBD1B9: launch_libvirt (launch-libvirt.c:188) ==13629== by 0x402E7E: main (virt-filesystems.c:349) Also adjust the command code in several places to make it simpler. We can almost always call guestfs___cmd_close right after guestfs___cmd_run, avoiding any need to close the handle along error paths. Tested by running the test suite under valgrind. | ||||
* | New APIs: Implement Linux filesystem capabilities. | Richard W.M. Jones | 2012-11-22 | 8 | -15/+174 |
| | | | | | | This adds the following new APIs: - cap_get_file - cap_set_file | ||||
* | New APIs: Implement POSIX ACLs. | Richard W.M. Jones | 2012-11-22 | 7 | -14/+274 |
| | | | | | | | This adds the following new APIs: - acl_get_file - acl_set_file - acl_delete_def_file | ||||
* | fish: Fix test-remote-events test. | Richard W.M. Jones | 2012-11-22 | 1 | -1/+1 |
| | | | | | | | | | Because the shell script was missing a space, the final output test was failing, although for some reason this didn't cause the whole test to fail. Fixing the missing space also revealed a bug in the test output, which is also fixed. | ||||
* | sysprep: remove crash data generated by kexec-tools | Wanlong Gao | 2012-11-22 | 3 | -0/+49 |
| | | | | | | | | | | Remove the kdump generated kernel crash data. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Added /var/log/dump/* path for SLES (thanks Olaf Hering). - Update po/POTFILES-ml. | ||||
* | Update API support.1.19.62 | Richard W.M. Jones | 2012-11-20 | 3 | -0/+1881 |
| | |||||
* | Update PO files from transifex. | Richard W.M. Jones | 2012-11-20 | 16 | -24689/+10323 |
| | |||||
* | Version 1.19.62. | Richard W.M. Jones | 2012-11-20 | 6 | -173/+352 |
| | |||||
* | ./run: Ensure all paths are built up cumulatively. | Richard W.M. Jones | 2012-11-20 | 1 | -7/+21 |
| | |||||
* | lua: valgrinding Lua code doesn't work. | Richard W.M. Jones | 2012-11-20 | 1 | -1/+10 |
| | | | | See comment. | ||||
* | valgrind: Ignore init_libguestfs symbol. | Richard W.M. Jones | 2012-11-20 | 1 | -1/+0 |
| | | | | It's not relevant, since the memory leak begins in libvirt. | ||||
* | lua: Replace internal lua_guestfs_* functions with guestfs_lua_*. | Richard W.M. Jones | 2012-11-20 | 1 | -19/+19 |
| | | | | | This is just code motion. It just ensures there is no possible conflict with lua_* symbols. | ||||
* | lua: Attach __tostring functions exceptions. | Richard W.M. Jones | 2012-11-20 | 4 | -5/+77 |
| | | | | This includes a test. | ||||
* | lua: Fix whitespace. | Richard W.M. Jones | 2012-11-20 | 1 | -2/+0 |
| | |||||
* | lua: Various fixes to the bindings (thanks Jerome Vuarand). | Richard W.M. Jones | 2012-11-20 | 15 | -52/+88 |
| | | | | | | | | | | | | See http://article.gmane.org/gmane.comp.lang.lua.general/95065 Note that this is incompatible with existing code. You have to do: local G = require "guestfs" local g = G.create () ie. give the module your own name ("G" in that example). | ||||
* | lua: Print the error thrown by callbacks. | Richard W.M. Jones | 2012-11-20 | 1 | -2/+18 |
| | |||||
* | lua: Add comment (not fix) for incorrect 'g' argument in callbacks. | Richard W.M. Jones | 2012-11-20 | 1 | -1/+4 |
| | | | | Thanks Jerome Vuarand. | ||||
* | lua: Add bindtests. | Richard W.M. Jones | 2012-11-20 | 5 | -1/+82 |
| | |||||
* | lua: Use lua_rawgeti to read elements from lists of strings. | Richard W.M. Jones | 2012-11-20 | 1 | -2/+1 |
| | | | | | | This is faster, but more importantly it avoids the strange error 'lua: attempt to index a string value' which appears with (some) single element lists. | ||||
* | lua: Add LuaStyle of commenting to the generator. | Richard W.M. Jones | 2012-11-20 | 1 | -2/+4 |
| | |||||
* | lua: Allow regular int to be passed as a 64 bit integer. | Richard W.M. Jones | 2012-11-20 | 1 | -4/+13 |
| | |||||
* | daemon: wipefs: Use --force option if available. | Richard W.M. Jones | 2012-11-20 | 1 | -2/+40 |
| | | | | | See https://bugzilla.redhat.com/show_bug.cgi?id=872831 and https://bugzilla.redhat.com/show_bug.cgi?id=865961 | ||||
* | lua: Simplify get_event function. | Richard W.M. Jones | 2012-11-20 | 1 | -21/+12 |
| | | | | Use luaL_checkoption which is designed for this purpose. | ||||
* | lua: Document Guestfs.event_all. | Richard W.M. Jones | 2012-11-19 | 1 | -0/+3 |
| | |||||
* | erlang, lua: Fix links in man pages. | Richard W.M. Jones | 2012-11-19 | 2 | -1/+3 |
| | |||||
* | lua: Test globals in Guestfs.* namespace. | Richard W.M. Jones | 2012-11-19 | 2 | -0/+28 |
| | |||||
* | lua: Add global Guestfs.event_all (list of all events). | Richard W.M. Jones | 2012-11-19 | 2 | -0/+19 |
| | |||||
* | Version 1.19.61.1.19.61 | Richard W.M. Jones | 2012-11-19 | 6 | -62/+352 |
| | |||||
* | lua: Various fixes and enhancements: | Richard W.M. Jones | 2012-11-19 | 9 | -55/+435 |
| | | | | | | | | | - add support for events (with test) - test progress messages - update documentation to describe events - refactor handle closing code - refactor error code - use 'assert' in test code instead of 'if ... then error end' | ||||
* | perl: Add test of multiple independent handles. | Richard W.M. Jones | 2012-11-19 | 1 | -0/+37 |
| | |||||
* | lua: examples: Boolean true shouldn't have quotes around it. | Richard W.M. Jones | 2012-11-18 | 1 | -2/+2 |
| | |||||
* | lua: Add another test to prove that the handles are really independent. | Richard W.M. Jones | 2012-11-18 | 2 | -0/+43 |
| | |||||
* | lua: Don't use %m since Lua string formatter doesn't understand it. | Richard W.M. Jones | 2012-11-18 | 1 | -2/+5 |
| | | | | Use %s + strerror as a replacement. | ||||
* | lua: Add some missing features. | Richard W.M. Jones | 2012-11-17 | 2 | -8/+50 |
| | | | | | | | | - Remove default error handler. - User cancel. - Add the errno to the object which is thrown on error. Still no events. | ||||
* | Version 1.19.60.1.19.60 | Richard W.M. Jones | 2012-11-17 | 20 | -3357/+4285 |
| | |||||
* | Add Lua bindings. | Richard W.M. Jones | 2012-11-17 | 32 | -0/+1212 |
| | | | | | | | | These are relatively complete, although only lightly tested. Missing: - events - last_errno - user_cancel | ||||
* | perl: Clean up and update the tests. | Richard W.M. Jones | 2012-11-17 | 3 | -4/+3 |
| | |||||
* | perl: Small test of create with flags. | Richard W.M. Jones | 2012-11-17 | 1 | -0/+25 |
| | |||||
* | sparsify: Better error when user specifies --compress + raw output ↵ | Richard W.M. Jones | 2012-11-15 | 1 | -16/+21 |
| | | | | (RHBZ#852194). | ||||
* | todo: We must implement ACLs and filesystem capabilities for SCAP. | Richard W.M. Jones | 2012-11-15 | 1 | -1/+23 |
| | | | | Thanks Steve Grubb. | ||||
* | daemon: Perform device name translation on mke2fs journaldevice (RHBZ#876579). | Richard W.M. Jones | 2012-11-15 | 1 | -4/+18 |
| | | | | | | | Also various fixes: - remove fixed-size buffer - change if (err) free (err) -> free (err). | ||||
* | recipes: Add sections about hexdumping, hexediting sectors. | Richard W.M. Jones | 2012-11-15 | 1 | -1/+14 |
| | |||||
* | recipes: Add recipe for diffing two guests. | Richard W.M. Jones | 2012-11-14 | 1 | -0/+10 |
| | |||||
* | Version 1.19.59.1.19.59 | Richard W.M. Jones | 2012-11-13 | 20 | -9796/+10535 |
| | |||||
* | dist: Add miscellaneous files to the tarball. | Richard W.M. Jones | 2012-11-13 | 4 | -1/+15 |
| | | | | Lots of these had been omitted over time. | ||||
* | tests/protocol: Add test-qemudir-launchfail.sh to tarball (but don't run it). | Richard W.M. Jones | 2012-11-13 | 1 | -1/+2 |
| | | | | | | | 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. | ||||
* | fish: Add test for remote events. | Richard W.M. Jones | 2012-11-13 | 2 | -1/+3 |
| | | | | | | | This test was present in git, but not included in the tarball, nor in the tests that guestfish actually runs. This fixes commit 17182af3a6de8e3e94e0a914416c54f09bb74007. | ||||
* | tests: Add a parallel launch test. | Richard W.M. Jones | 2012-11-13 | 5 | -0/+203 |
| | | | | | | | This is designed to reveal libvirt race conditions such as bug 875741. This is a "slow test" so it only runs if you do 'make check-slow'. |