summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.9.11.1.9.11Richard W.M. Jones2011-03-1518-3039/+3954
|
* ruby: Missing files from EXTRA_DIST.Richard W.M. Jones2011-03-151-0/+2
|
* perl: Binding and test for guestfs_last_errno (RHBZ#672491).Richard W.M. Jones2011-03-152-0/+110
|
* ruby: Use ALLOC_N to avoid potential memory leak (RHBZ#667610).Richard W.M. Jones2011-03-151-1/+1
|
* ruby: Remove unnecessary checking around StringValueCStr (RHBZ#667610).Richard W.M. Jones2011-03-151-5/+0
|
* ruby: Add rdoc documentation (RHBZ#667610).Richard W.M. Jones2011-03-156-6/+128
|
* New event API - Ruby bindings (RHBZ#664558).Richard W.M. Jones2011-03-153-7/+231
|
* New event API - Perl bindings (RHBZ#664558).Richard W.M. Jones2011-03-154-50/+240
| | | | | | | | The methods $h->set_progress_callback and $h->clear_progress_callback have been removed, and replaced with a complete mechanism for setting and deleting general-purpose events. This also updates virt-resize to use the new API.
* New event API - OCaml bindings (RHBZ#664558).Richard W.M. Jones2011-03-158-70/+305
| | | | | | The functions set_progress_callback and clear_progress_callback have been removed, and replaced with a complete mechanism for setting and deleting general-purpose events.
* New event API (RHBZ#664558).Richard W.M. Jones2011-03-1523-292/+1072
| | | | | | | | | | | | | This API allows more than one callback to be registered for each event, makes it possible to call the API from other languages, and allows [nearly all] log, debug and trace messages to be rerouted from stderr. An older version of this API was discussed on the mailing list here: https://www.redhat.com/archives/libguestfs/2010-December/msg00081.html https://www.redhat.com/archives/libguestfs/2011-January/msg00012.html This also updates guestfish to use the new API for its progress bars.
* New APIs: guestfs_first_private, guestfs_next_private to walk overRichard W.M. Jones2011-03-157-6/+242
| | | | | | | | the private data area. This commit adds new APIs for walking over the keys and pointers in the private data area associated with each handle (note this is only applicable to the C API).
* check the pid is > 0 before calling waitpid()Angus Salkeld2011-03-151-1/+1
| | | | Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
* check the pid is > 0 before calling waitpid()Angus Salkeld2011-03-141-1/+1
| | | | Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
* RHEL5: Old pod2man didn't have --stderr or -u options.Richard W.M. Jones2011-03-112-3/+26
|
* configure: Remove unnecessary variable assignment.Richard W.M. Jones2011-03-111-1/+0
| | | | Left over from pre-virtio-serial days.
* RHEL5: Make use of 'futimens' function optional.Richard W.M. Jones2011-03-112-1/+5
|
* Version 1.9.10.1.9.10Richard W.M. Jones2011-03-0817-432/+435
|
* Detect Red Hat Desktop as 'rhel' distro (RHBZ#682979).Richard W.M. Jones2011-03-082-5/+5
| | | | | | | | | | | | | /etc/redhat-release on Red Hat Desktop contains the following string: Red Hat Desktop release 4 (Nahant Update 8) Previously we matched against the string "Red Hat Enterprise Linux" but since this does not contain that string, this distro wasn't being detected correctly. Note this also changes the obsolete Perl code, for the benefit of virt-v2v.
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-076-0/+6
| | | | Fix required by gcc 4.6.0.
* generator: Introduce error code (errcode) concept.Richard W.M. Jones2011-03-0711-223/+315
| | | | | | | | There was a lot of repeated code to map return types (eg. RErr) to error cases (eg. -1 or NULL). This commit introduces an error code type and two functions to map return types to error codes and error codes to strings.
* Fix trace segfault for non-daemon functions (RHBZ#682756).Richard W.M. Jones2011-03-071-17/+30
| | | | | | | | | | | | | Previously we expanded the code for 'trace_return' unconditionally for all non-daemon functions. However this code was not prepared to handle all error conditions, and in fact would segfault if it tried to print RStringList or RHashtable where r == NULL. We need to make the code conditional on the return value, calling either 'trace_return' or 'trace_return_error' as appropriate. Note the difficult case for RConstOptString which returns NULL in non-error cases.
* Fix URL of transifex instance to be the canonical one.Richard W.M. Jones2011-03-071-1/+1
| | | | This updates commit 182a2ceae6d6f50448159e24d8b5c0c92f44407f.
* Import project into transifex.Richard W.M. Jones2011-03-071-0/+13
| | | | http://www.transifex.net/projects/p/libguestfs/
* debian: Rename nilfs2-tools to nilfs-tools.Richard W.M. Jones2011-03-051-1/+1
|
* virt-make-fs: Round disk size to integer, fix for qemu-img 0.14.Richard W.M. Jones2011-03-041-0/+2
| | | | | | | qemu-img used to allow you to specify a fractional image size in bytes (or at least, it used to ignore the part after the decimal place). In qemu-img 0.14 it no longer does this so we round down the size to a whole number of bytes.
* virt-make-fs: In debug mode, print qemu-img command line.Richard W.M. Jones2011-03-041-0/+3
|
* Version 1.9.9.1.9.9Richard W.M. Jones2011-03-0416-57/+81
|
* Fix inspection code when PCRE or hivex is missing.Richard W.M. Jones2011-03-031-0/+24
|
* java: Add a test of g.list_filesystems (a function that returns a Map).Richard W.M. Jones2011-03-021-0/+10
|
* java: Fix generated functions that return RHashtable.Richard W.M. Jones2011-03-021-15/+30
| | | | | | | | | Creating a HashMap directly from JNI is possible but very tedious (see: http://java.sun.com/docs/books/jni/html/fldmeth.html#26254) Instead we use the existing code to return hashes from JNI as plain String[], then add some code in the Java wrapper to convert these to HashMap<String,String>.
* java: Return Map<String,String> for RHashtable functions.Richard W.M. Jones2011-03-021-1/+2
| | | | | | | | There's no point returning the specific HashMap type here. Return the generic interface type instead. Note that no users are actually calling these functions yet, since at present they always fail.
* java: Fix a minor whitespace error in generated code.Richard W.M. Jones2011-03-021-2/+2
| | | | | In functions that don't have javadoc, the function prototype wasn't being indented correctly.
* java: Remove old test file if one was left around.Richard W.M. Jones2011-03-021-0/+4
| | | | | | If a test.img file was left over from a previous run, then it would cause the subsequent test to fail. Therefore remove any old test.img file.
* java: Enable assertions when doing 'make check'.Richard W.M. Jones2011-03-021-2/+2
| | | | | | | | | | | It turns out that Java assertions are disabled by default. You have to add the 'java -ea' flag to the JVM. Who knew ..? Because of this oversight, the tests weren't actually performing the assertions that we wanted (although in fact none of the assertions were failing). This change enables assertions when running the tests.
* Version 1.9.8.1.9.8Richard W.M. Jones2011-02-0617-15568/+16592
|
* daemon: Ignore return value from chdir.Richard W.M. Jones2011-02-031-1/+1
| | | | This updates commit 7eb012f3710bb554d5fc2c4229036901b0b5ad90.
* fish: Add guestfish --live, guestmount --live options.Richard W.M. Jones2011-02-0313-0/+43
| | | | | | The other programs have the variable, but the flag is not enabled either because it doesn't make sense or because the implications are not well understood.
* Add documentation for attach method.Richard W.M. Jones2011-02-033-4/+65
|
* Add guestfs_add_domain 'live' flag.Richard W.M. Jones2011-02-033-29/+183
| | | | | | | | | | This optional flag controls whether this API call will try to connect to a running virtual machine 'guestfsd' process. If the flag is given and the virtual machine is running, then the libvirt XML is parsed looking for a suitable <channel> element, and 'guestfs_set_attach_method' is called with the corresponding virtio-serial socket path.
* lib: Implement attach-method unix:<path>Richard W.M. Jones2011-02-032-9/+95
| | | | | | | | | | | | | | | | | | | | | | | | | Allow connections to a Unix domain socket which is connected (via virtio-serial) to a guestfsd running free in an existing guest. In order to use this you have to add the following element to the libvirt XML: <channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel> (or perform the equivalent on the qemu command line). Then in guestfish, you can do: guestfish \ attach-method unix:/tmp/socket : \ run : \ ll / (or any other commands as desired).
* daemon: Remove -f (don't fork) option.Richard W.M. Jones2011-02-032-31/+4
| | | | This option was not being used.
* daemon: Allow -r option to run daemon standalone.Richard W.M. Jones2011-02-033-12/+31
| | | | | | | | This changes several aspects of the daemon. Currently: * sysroot will be "" (ie. operate directly on /) * CHROOT_IN/CHROOT_OUT are disabled * autosync doesn't try to unmount everything
* daemon: change to root directoryRichard W.M. Jones2011-02-031-0/+2
| | | | Ensure the daemon always starts with current directory == root.
* New APIs: set-attach-method, get-attach-method.Richard W.M. Jones2011-02-033-0/+81
| | | | | | | | | | These allow you to get and set the attach method. The format is one of: * appliance * unix:<path> It's stored broken out into an enum and a string in the handle.
* lib: Move appliance launching to separate function.Richard W.M. Jones2011-02-031-14/+24
| | | | This is just code motion.
* php: Ignore another generated file in php/extension directory.Richard W.M. Jones2011-02-031-0/+1
|
* daemon: Parse /proc/mounts instead of /etc/mtabRichard W.M. Jones2011-02-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | Since Fedora util-linux 2.19, the %post script does: rm -f /etc/mtab ln -s /proc/mounts /etc/mtab We are no longer running %post scripts, so this means that /etc/mtab is a plain file in the appliance. Usual 'mount' still updates it, but for some reason mount.ntfs does *not* update it in Fedora 15, meaning that you couldn't mount and then operate on NTFS partitions. It seems better to always parse /proc/mounts (ie. what the kernel thinks is mounted) unconditionally, rather than relying on the capriciousness of the external mount command. Therefore, parse /proc/mounts instead of /etc/mtab, but add a note saying that in future we should really be parsing /proc/self/mountinfo, but that needs a custom parser, and the format is rather tricky: http://lxr.linux.no/#linux+v2.6.37/Documentation/filesystems/proc.txt#L1462
* regressions: Fix rhbz557655.sh so it works with tracing enabled.Richard W.M. Jones2011-02-031-0/+1
|
* guestfs-perl: Fix missing \nRichard W.M. Jones2011-01-311-1/+1
| | | | This updates commit 477eebc83dcd33d00d34398692692dae6af04f22.
* Version 1.9.7.1.9.7Richard W.M. Jones2011-01-3017-2695/+2749
|