[Libguestfs] virt-sysprep future

Richard W.M. Jones rjones at redhat.com
Mon Mar 26 13:06:52 UTC 2012


On Mon, Mar 26, 2012 at 10:00:53AM +0100, Richard W.M. Jones wrote:
> (1) We add FUSE support directly to the API, linking with libfuse.
> This is essentially the same as what was outlined in link [i] back in
> December 2011.
[...]
> The problem with (1) is that we are not confident that it's a good
> idea to use libfuse as a true library.  It doesn't appear that anyone
> else is using it this way.

I'll also add that libfuse makes it tricky to use multiple handles.

Specifically, FUSE callbacks get no context at all, eg: getattr's
parameters are:

  static int getattr (const char *path, struct stat *statbuf);

If libfuse could be called from multiple threads, each with its own
handle, then how would you know which handle to use?  (The answer
possibly involves using thread-local storage, but that's hairy if
either handle is multithreaded).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the Libguestfs mailing list