summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* inspection: Temporary logo for Windows 8.HEADmasterRichard W.M. Jones2012-11-301-0/+50
| | | | | | | | | | | | | | See the comment from the code: NB about Windows 8: No location we've found so far contains a suitable icon for Win8. In particular, explorer.exe definitely does *not* contain any Windows logo as a resource (I checked). Therefore the "basket icon" that this produces is just a stand-in until we have a better idea for solving this problem. and: https://bugzilla.redhat.com/show_bug.cgi?id=801117
* inspection, virt-sysprep: Use /etc/hostname on F18+, RHEL7+ (RHBZ#881953, ↵Richard W.M. Jones2012-11-302-17/+24
| | | | RHBZ#858696).
* daemon: Avoid gcc warning about noreturn function in acl & cap code.Richard W.M. Jones2012-11-302-0/+10
| | | | | acl.c: In function 'do_acl_get_file': acl.c:158:1: error: function might be candidate for attribute 'noreturn' [-Werror=suggest-attribute=noreturn]
* Version 1.19.65.1.19.65Richard W.M. Jones2012-11-2920-9272/+9557
|
* inspection: Don't probe partitions when we've probed the whole device ↵Richard W.M. Jones2012-11-291-0/+31
| | | | | | | (RHBZ#798979). So we don't get multiple <operatingsystem> entries, particularly for install ISOs.
* inspection: Read libosinfo database in order to inspect OS install ↵Richard W.M. Jones2012-11-296-10/+715
| | | | CD/DVD/ISOs (RHBZ#803650, RHBZ#805417).
* lib: Indent CFLAGS in Makefile.am.Richard W.M. Jones2012-11-291-6/+6
| | | | This is just a whitespace change.
* inspection: Move variable decls to top of function.Richard W.M. Jones2012-11-291-3/+5
| | | | This is just code motion.
* inspection: Implement "openbsd" type and distro.Richard W.M. Jones2012-11-293-0/+12
|
* daemon: isoinfo: Fix parsing of bogus dates.Richard W.M. Jones2012-11-291-1/+2
| | | | | | | | | | | | | | | | | eg: $ isoinfo --debug -d -i ubuntu-12.04-desktop-amd64.iso CD-ROM is in ISO 9660 format System id: Volume id: Ubuntu 12.04 LTS amd64 Volume set id: Publisher id: [...] Creation Date: 2012 04 25 16:13:46.00 Modification Date: 2012 04 25 16:13:46.00 Expiration Date: : : . Effective Date: : : . [...]
* fish: Make type == drv_N field private to guestfish.Richard W.M. Jones2012-11-294-2/+12
| | | | | The -N option / drv_N type only makes sense when we are compiling guestfish, and just serves to complicate non-guestfish code.
* virt-df: Better output when multiple -a/-d options are specified (RHBZ#880801).Richard W.M. Jones2012-11-292-17/+100
| | | | | | | | | | | | | | This is very well explained in the bugzilla comments: https://bugzilla.redhat.com/show_bug.cgi?id=880801#c1 With this change, the disk name has a one or more plus signs ('+') appended to show that there are additional disks: $ virt-df -a Win7x32TwoDisks-a -a Win7x32TwoDisks-b Filesystem 1K-blocks Used Available Use% Win7x32TwoDisks-a+:/dev/sda1 102396 24712 77684 25% Win7x32TwoDisks-a+:/dev/sda2 12478460 7403416 5075044 60% Win7x32TwoDisks-a+:/dev/sdb1 521212 55728 465484 11%
* Add .mailmap to EXTRA_DIST.Richard W.M. Jones2012-11-271-0/+1
|
* Add the .mailmap and change the method to generate AUTHORSWanlong Gao2012-11-273-6/+16
| | | | Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* lib: lpj: Refactor code.Richard W.M. Jones2012-11-261-27/+45
| | | | Only run one grep command to grep any number of files.
* lib: lpj: Only return first match in read_all function.Richard W.M. Jones2012-11-261-1/+2
| | | | | If there where several lpj=.. matches then the earlier matches would be leaked. Only return the first one and don't leak memory.
* lib: Get lpj= from /var/log/boot.msg (thanks Olaf Hering).Richard W.M. Jones2012-11-251-1/+15
|
* 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
|