Re: [PATCH v7 2/6] add fuse support for libvirt lxc

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

 



On Tue, Nov 06, 2012 at 04:54:59PM +0800, Gao feng wrote:
> Because libvirt_lxc create a thread to mount fuse filesystem.
> and then libvirt_lxc will try to access the fuse filesystem.
> 
> Without waiting,libvirt_lxc may access fuse before it is mounted.
> 
> And I can't find a better way to make accessing fuse after the fuse
> being mounted,because fuse_main will return until fuse being unmounted,so
> I don't know how to pass message to tell libvirt_lxc whether the fuse is
> mounted success.

Oh I see.  This is solvable, but I believe that you cannot use
fuse_main.  You have to look at the fuse sources (quite complex!)  and
do the individual fuse operations.

Have a look at how libguestfs does it ...

  https://github.com/libguestfs/libguestfs/blob/master/src/fuse.c#L911
  http://libguestfs.org/guestfs.3.html#mount-local

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]