[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Extract VHD using guestfs



On Mon, Feb 13, 2017 at 12:33:11PM +0500, MUHAMMAD MOHSIN wrote:
> Thanks a lot. I was trying to copy on local disk and  guestfs_download ()
> solved my problem.
> Now I am trying to modify source code of  guestfs_download () to extract
> file in memory. Can you guide me what should i do to achieve that.

Use guestfs_pread maybe?

Or guestfs_download with a target of /dev/mapper?  It really depends
what exactly you mean by "file in memory", however libguestfs (by
design) cannot memory-map a file.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]