From 838c14f9d46cb613fba86d12210221f93b1acf0c Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 14 Nov 2001 08:16:20 +0000 Subject: added python bindings --- AUTHORS | 9 ++ ChangeLog | 12 +++ README.python | 60 ++++++++++++ python/_fusemodule.c | 266 +++++++++++++++++++++++++++++++++++++++++++++++++++ python/fuse.py | 101 +++++++++++++++++++ 5 files changed, 448 insertions(+) create mode 100644 README.python create mode 100644 python/_fusemodule.c create mode 100644 python/fuse.py diff --git a/AUTHORS b/AUTHORS index f74e6de..5d0a86a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1,10 @@ +FUSE core +--------- + Miklos Szeredi + + +Python bindings +--------------- + +Jeff Epler diff --git a/ChangeLog b/ChangeLog index 48cc699..cfa7aef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ 2001-11-09 Miklos Szeredi * Started ChangeLog + +2001-11-13 Miklos Szeredi + + * Fixed vfsmount reference leak in fuse_follow_link + + * FS blocksize is set to PAGE_CACHE_SIZE, blksize attribute from + userspace is ignored + +2001-11-14 Miklos Szeredi + + * Python bindings by Jeff Epler added + diff --git a/README.python b/README.python new file mode 100644 index 0000000..451c56c --- /dev/null +++ b/README.python @@ -0,0 +1,60 @@ +General Information +=================== + +This is a Python[1] interface to FUSE[2]. + +FUSE (Filesystem in USErspace) is a simple interface for userspace +programs to export a virtual filesystem to the linux kernel. FUSE +also aims to provide a secure method for non privileged users to +create and mount their own filesystem implementations. + +When run from the commandline, "fuse.py" simply reexports the root +filesystem within the mount point as example/fusexmp does in the main +FUSE distribution. It also offers a class, fuse.Fuse, which can be +subclassed to create a filesystem. fuse.Xmp is the example filesystem +implementation. + +In your subclass of fuse, add attributes with the expected names +("getattr", "readlink", etc) and call signatures (refer to fuse.Xmp) +then call main(). Make it runnable as a #! script, and mount with + fusermount