2014-07-16 1:12 GMT+04:00 Richard W.M. Jones <rjones@redhat.com>:> I believe I investigates making a squashfs from within libguestfs, and > although it's possible, it is not possible to stream the output > (unlike, say, guestfs_tar_out or guestfs_cpio_out). This means that > the maximum size of the squashfs would be quite small. > > Nevertheless we could add an API to do it. (Even better if you can > find a way to stream mksquashfs).May be i'm wrong but does it possible to create ability to export guest file system via 9p proto? If yes - i can mount share with fuse inside go application via 9p protocol... -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru
On Wed, Jul 16, 2014 at 01:17:23AM +0400, Vasiliy Tolstov wrote:> 2014-07-16 1:12 GMT+04:00 Richard W.M. Jones <rjones@redhat.com>: > > I believe I investigates making a squashfs from within libguestfs, and > > although it's possible, it is not possible to stream the output > > (unlike, say, guestfs_tar_out or guestfs_cpio_out). This means that > > the maximum size of the squashfs would be quite small. > > > > Nevertheless we could add an API to do it. (Even better if you can > > find a way to stream mksquashfs). > > > May be i'm wrong but does it possible to create ability to export > guest file system via 9p proto? If yes - i can mount share with fuse > inside go application via 9p protocol...There is some support for 9p in the libguestfs APIs. I would be worried about 9p support upstream (in qemu) as it appears to be dead. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
2014-07-16 14:39 GMT+04:00 Richard W.M. Jones <rjones@redhat.com>:> There is some support for 9p in the libguestfs APIs. I would be > worried about 9p support upstream (in qemu) as it appears to be dead.Ok. I'm solve my problem - i'm exec guestfish where i do mount-local-run and waiting, after creating squashfs i'm simply doing fusermount -u -z /xxx -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru