[Libguestfs] modifying open_guest function (copy_over.c)
THO HUYNH
feeliwood at yahoo.com
Fri Mar 30 15:25:09 UTC 2012
I`m building again and test, I`ll give some feedback later. :)
________________________________
From: Richard W.M. Jones <rjones at redhat.com>
To: THO HUYNH <feeliwood at yahoo.com>; libguestfs at redhat.com
Sent: Friday, 30 March 2012, 22:20
Subject: Re: modifying open_guest function (copy_over.c)
[Please keep questions on the mailing list]
On Fri, Mar 30, 2012 at 07:39:41AM -0700, THO HUYNH wrote:
> This is open_guest function that I modified.
> Could you take a look to check if anything wrong :)
> I only modified this function, the rest of the copy_over.c still remain.
>
> Thanks.
>
>
> static int
>
> open_guest (guestfs_h *g, const char *dom, int readonly)
> {
> /* Use libvirt to find the guest disks and add them to the handle. */
> if (guestfs_add_domain (g, dom,
> GUESTFS_ADD_DOMAIN_LIVE, 1,
> -1) == -1)
> return -1;
>
> if (guestfs_launch (g) == -1)
> return -1;
>
> /* Everything ready, no error. */
> return 0;
> }
Seems reasonable. Does it work?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20120330/39e11fb0/attachment.htm>
More information about the Libguestfs
mailing list