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

Richard W.M. Jones rjones at redhat.com
Wed Nov 7 08:58:42 UTC 2012


More specifically, this is how the libguestfs API works:

  Main thread                                Other thread
  -----------------------------              ---------------------

  guestfs_mount_local (g, "/mntpoint");

       calls: fuse_mount
              fuse_chan_fd
              fuse_new

  fork () or pthread_create () --creates-->   Start to access the
                                              /mntpoint; blocks until
					      main thread calls fuse_loop

  guestfs_mount_local_run (g);

       calls: fuse_loop
              starts to process               Unblocks and starts running
	        requests


Note that there is a problem with SELinux and extended attributes:

https://bugzilla.redhat.com/show_bug.cgi?id=691389
https://bugzilla.redhat.com/show_bug.cgi?id=811217

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the libvir-list mailing list