search for: guestfs_add_libvirt_dom

Displaying 9 results from an estimated 9 matches for "guestfs_add_libvirt_dom".

2014 Dec 10
3
[PATCH v2 0/3] Implement guestfs_add_libvirt_dom.
This completes the implementation on the libguestfs side, allowing python-libvirt dom pointers to be passed to guestfs_add_libvirt_dom. For context see: https://bugzilla.redhat.com/show_bug.cgi?id=1138203#c40 https://bugzilla.redhat.com/show_bug.cgi?id=1075143 https://bugzilla.redhat.com/show_bug.cgi?id=1075164 Rich.
2014 Dec 10
2
[PATCH v1 0/2] Implement guestfs_add_libvirt_dom.
This is only lightly tested at the moment. For context see: https://bugzilla.redhat.com/show_bug.cgi?id=1138203#c40 https://bugzilla.redhat.com/show_bug.cgi?id=1075143 https://bugzilla.redhat.com/show_bug.cgi?id=1075164 Note this is not a complete fix. At least one more libguestfs patch is required (to implement virDomainPtr in the python bindings). Plus a virt-manager patch. Rich.
2014 Dec 11
4
[PATCH v3 0/4] Implement guestfs_add_libvirt_dom.
A hopefully cleaner implementation this time. It doesn't require any special insights into how libvirt-python is implemented. Instead, it requires a change to libvirt-python to add a .c_pointer() method: https://www.redhat.com/archives/libvir-list/2014-December/msg00615.html Rich.
2014 Dec 11
6
[PATCH v4 0/6] Implement guestfs_add_libvirt_dom.
Since v3: - Fix labelling over overlays (see 6/6) - Tested it with a test program which simulates what virt-manager will do. See the attachment here: https://bugzilla.redhat.com/show_bug.cgi?id=1075164#c7 Rich.
2010 Nov 10
7
[PATCH 0/7] Add libvirt domain to core API
...r level add-domain API takes the name of the libvirt domain as a string and connects to libvirt itself. The lower level add-libvirt-dom API relies on the program to connect to libvirt and pass the virDomainPtr into the API call. int guestfs_add_domain (guestfs_h *g, const char *dom, ...); int guestfs_add_libvirt_dom (guestfs_h *g, virDomainPtr dom, ...); In guestfish you can use the 'domain' command to access the higher level API, eg: ><fs> domain Fedora14 libvirturi:qemu:///system 1 (The returned number is the number of disks that were added.) Since it would be impossible for the...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of local disk. Rich.
2015 Jul 21
0
ANNOUNCE: libguestfs 1.30 released
...rce limits to limit the space and time used by qemu-img info, to avoid this problem. If a malicious user tries to pass one of these disk images to libguestfs, qemu-img will crash and the crash is reported back to libguestfs callers as an error message. API New APIs guestfs_add_libvirt_dom This exposes a previously private API that allows you to pass a virDomainPtr object directly from libvirt to libguestfs. guestfs_blockdev_setra Adjust readahead parameter for devices. See blockdev --setra command. guestfs_btrfs_balance guestfs_btrfs_balance_cancel...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
..."%s: no libvirt domain called '%s': %s\n", - argv[0], "guest", err->message); - exit (EXIT_FAILURE); + error (EXIT_FAILURE, 0, + "no libvirt domain called '%s': %s", "guest", err->message); } r = guestfs_add_libvirt_dom (g, dom, @@ -146,12 +139,9 @@ main (int argc, char *argv[]) if (r == -1) exit (EXIT_FAILURE); - if (r != 3) { - fprintf (stderr, - "%s: incorrect number of disks added (%d, expected 3)\n", - argv[0], r); - exit (EXIT_FAILURE); - } + if (r != 3) +...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did: if (something_bad) { perror (...); exit (EXIT_FAILURE); } replace this with use of the error(3) function: if (something_bad) error (EXIT_FAILURE, errno, ...); The error(3) function is supplied by glibc, or by gnulib on platforms which don't have it, and is much more flexible than perror(3). Since we already use error(3), there seems to be