
On Wed, Nov 07, 2012 at 05:12:59PM +0800, Gao feng wrote:
于 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?
The system calls block until FUSE is ready to handle them, so in other words, FUSE/kernel handles it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora