
于 2012年11月07日 16:58, Richard W.M. Jones 写道:
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
I don't know how the blocking thread is implemented? by fuse self or libguestfs?
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
Thanks,it's helpful for me. Gao