[PATCH 0/3 VERSION 3 FOR DISCUSSION ONLY] FUSE support for libguestfs
This is the third version of the FUSE bindings for libguestfs. Still, read and write calls don't work, but you can now navigate through the filesystem hierarchy efficiently. Rich. .gitignore | 3 + HACKING | 3 + Makefile.am | 5 + README | 2 + TODO | 37 +-- bindtests | 13 + bootstrap | 2 + configure.ac | 9 + daemon/Makefile.am | 2 + daemon/dir.c | 17 + daemon/file.c | 17 + daemon/link.c | 51 +++ daemon/stat.c | 68 ++++ daemon/truncate.c | 65 ++++ daemon/utimens.c | 81 ++++ daemon/xattr.c | 205 ++++++++++ fuse/Makefile.am | 62 +++ fuse/dircache.c | 400 +++++++++++++++++++ fuse/dircache.h | 43 ++ fuse/fusexmp.c | 385 +++++++++++++++++++ fuse/fusexmp_fh.c | 495 ++++++++++++++++++++++++ fuse/guestmount.c | 1063 +++++++++++++++++++++++++++++++++++++++++++++++++++ fuse/guestmount.pod | 146 +++++++ m4/.gitignore | 2 + perl/typemap | 1 + po/POTFILES.in | 6 + src/MAX_PROC_NR | 2 +- src/generator.ml | 246 +++++++++++-- 28 files changed, 3377 insertions(+), 54 deletions(-) -- 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://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
-- 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://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
These are in a separate patch because they are used to optimize directory reads. It's not likely the API calls would be useful to end users, but could be useful for people implementing things like file browsers, and consequently for FUSE support. 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
Note if you're trying this that the read(2) system call has been rigged to return random crap, just so we could test the behaviour of reads under FUSE. read and write of files is not implemented yet. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
I should add that these patches depend on five outstanding easy fixes which I already posted to this list but are waiting review. These are: https://www.redhat.com/archives/libguestfs/2009-October/msg00116.html "3 small code fixes" https://www.redhat.com/archives/libguestfs/2009-October/msg00112.html "appliance: Don't rebuild the appliance every time configure runs" https://www.redhat.com/archives/libguestfs/2009-November/msg00000.html "examples/to-xml.c: Don't depend on Gnulib function." 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
participants (1)
-
Richard W.M. Jones