summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.19.64.1.19.64Richard W.M. Jones2012-11-2418-500/+500
|
* launch: appliance: Handle non-\0 terminated buffer correctly.Richard W.M. Jones2012-11-241-1/+1
| | | | | | | | | | | | | | The read_all function is used as a callback for guestfs___cmd_set_stdout_callback (cmd, read_all, [str], CMD_STDOUT_FLAG_WHOLE_BUFFER); As noted in the documentation for CMD_STDOUT_FLAG_WHOLE_BUFFER, the buffer returned is not \0-terminated, and so using memdup will create an unterminated string, and therefore potentially a memory overrun when reading or searching the string. Use strndup instead so the final string is \0-terminated.
* appliance: Pass lpj=... on the appliance command line (thanks Marcelo Tosatti).Richard W.M. Jones2012-11-247-4/+172
| | | | | | | | | | | | | | | | | | | | | Try to get the host's loops_per_jiffy value and pass this on the command line to the guest. In theory this should avoid the appliance having to recalculate this value in a VM with TCG (which is generally error-prone). This should avoid timing issues. We only do this when we are certain that the guest will be TCG. Currently we only have enough information to do this from the libvirt attach-method. So mostly this will only affect people using Fedora in a VM. The host loops_per_jiffy value is not exported by the kernel. It is only printed by the kernel early during boot, so if boot messages have "scrolled off" the kernel ring buffer, it won't be available. Some operating systems save early kernel messages in /var/log/dmesg but (a) Fedora 18+ seem to have abandoned this file and (b) on Ubuntu this file is unreadable for spurious "security" reasons. I have submitted a patch to make lpj available through /proc/cpuinfo.
* launch: libvirt: Refactor parameter passing to construct_libvirt_xml* functions.Richard W.M. Jones2012-11-241-100/+118
| | | | This is just code motion.
* lua: fix build error due to LUA_GLOBALSINDEX usageOlaf Hering2012-11-231-1/+1
| | | | | | | lua 5.2 changed API, LUA_GLOBALSINDEX is no longer available. http://www.lua.org/manual/5.2/manual.html#8.3 Signed-off-by: Olaf Hering <olaf@aepfle.de>
* Version 1.19.63.1.19.63Richard W.M. Jones2012-11-2320-35478/+51784
|
* daemon: Ignore lvresize error "New size..matches existing size" (RHBZ#834712).Richard W.M. Jones2012-11-231-6/+21
| | | | | The lvresize command unnecessarily gives an error if you don't change the size of the LV. Suppress this error.
* test-tool: Don't print banner when using --help, -V, etc options (RHBZ#879416).Richard W.M. Jones2012-11-231-11/+12
|
* launch: Refactor duplicate code which constructs the appliance command line.Richard W.M. Jones2012-11-234-67/+62
| | | | Move this into a common file.
* lib: Fix memory leak and simplify command code.Richard W.M. Jones2012-11-236-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. Jones2012-11-228-15/+174
| | | | | | This adds the following new APIs: - cap_get_file - cap_set_file
* New APIs: Implement POSIX ACLs.Richard W.M. Jones2012-11-227-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. Jones2012-11-221-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-toolsWanlong Gao2012-11-223-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.62Richard W.M. Jones2012-11-203-0/+1881
|
* Update PO files from transifex.Richard W.M. Jones2012-11-2016-24689/+10323
|
* Version 1.19.62.Richard W.M. Jones2012-11-206-173/+352
|
* ./run: Ensure all paths are built up cumulatively.Richard W.M. Jones2012-11-201-7/+21
|
* lua: valgrinding Lua code doesn't work.Richard W.M. Jones2012-11-201-1/+10
| | | | See comment.
* valgrind: Ignore init_libguestfs symbol.Richard W.M. Jones2012-11-201-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. Jones2012-11-201-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. Jones2012-11-204-5/+77
| | | | This includes a test.
* lua: Fix whitespace.Richard W.M. Jones2012-11-201-2/+0
|
* lua: Various fixes to the bindings (thanks Jerome Vuarand).Richard W.M. Jones2012-11-2015-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. Jones2012-11-201-2/+18
|
* lua: Add comment (not fix) for incorrect 'g' argument in callbacks.Richard W.M. Jones2012-11-201-1/+4
| | | | Thanks Jerome Vuarand.
* lua: Add bindtests.Richard W.M. Jones2012-11-205-1/+82
|
* lua: Use lua_rawgeti to read elements from lists of strings.Richard W.M. Jones2012-11-201-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. Jones2012-11-201-2/+4
|
* lua: Allow regular int to be passed as a 64 bit integer.Richard W.M. Jones2012-11-201-4/+13
|
* daemon: wipefs: Use --force option if available.Richard W.M. Jones2012-11-201-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. Jones2012-11-201-21/+12
| | | | Use luaL_checkoption which is designed for this purpose.
* lua: Document Guestfs.event_all.Richard W.M. Jones2012-11-191-0/+3
|
* erlang, lua: Fix links in man pages.Richard W.M. Jones2012-11-192-1/+3
|
* lua: Test globals in Guestfs.* namespace.Richard W.M. Jones2012-11-192-0/+28
|
* lua: Add global Guestfs.event_all (list of all events).Richard W.M. Jones2012-11-192-0/+19
|
* Version 1.19.61.1.19.61Richard W.M. Jones2012-11-196-62/+352
|
* lua: Various fixes and enhancements:Richard W.M. Jones2012-11-199-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. Jones2012-11-191-0/+37
|
* lua: examples: Boolean true shouldn't have quotes around it.Richard W.M. Jones2012-11-181-2/+2
|
* lua: Add another test to prove that the handles are really independent.Richard W.M. Jones2012-11-182-0/+43
|
* lua: Don't use %m since Lua string formatter doesn't understand it.Richard W.M. Jones2012-11-181-2/+5
| | | | Use %s + strerror as a replacement.
* lua: Add some missing features.Richard W.M. Jones2012-11-172-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.60Richard W.M. Jones2012-11-1720-3357/+4285
|
* Add Lua bindings.Richard W.M. Jones2012-11-1732-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. Jones2012-11-173-4/+3
|
* perl: Small test of create with flags.Richard W.M. Jones2012-11-171-0/+25
|
* sparsify: Better error when user specifies --compress + raw output ↵Richard W.M. Jones2012-11-151-16/+21
| | | | (RHBZ#852194).
* todo: We must implement ACLs and filesystem capabilities for SCAP.Richard W.M. Jones2012-11-151-1/+23
| | | | Thanks Steve Grubb.
* daemon: Perform device name translation on mke2fs journaldevice (RHBZ#876579).Richard W.M. Jones2012-11-151-4/+18
| | | | | | | Also various fixes: - remove fixed-size buffer - change if (err) free (err) -> free (err).