FUSE API Functions

llfuse.init(operations_, mountpoint_, list args)

Initialize and mount FUSE file system

operations_ has to be an instance of the Operations class (or another class defining the same methods).

args has to be a list of strings. Valid options are listed under struct fuse_opt fuse_mount_opts[] (mount.c:82) and struct fuse_opt fuse_ll_opts[] (fuse_lowlevel_c:2209).

llfuse.main(single=False)

Run FUSE main loop

llfuse.close(unmount=True)

Unmount file system and clean up

If unmount is False, the mount point is not freed completely, but every attempt to access it results in ESHUTDOWN. This can be used if the file system encountered some error that makes further access impossible.

llfuse.setxattr(path, name, value)

Set extended attribute

llfuse.getxattr(path, name, size_guess=128)

Get extended attribute

If the caller knows the approximate size of the attribute value, it should be supplied in size_guess. If the guess turns out to be wrong, the system call has to be carried out three times (the first call will fail, the second determines the size and the third finally gets the value).

llfuse.listdir(path)

Like os.listdir(), but releases the GIL

llfuse.close(unmount=True)

Unmount file system and clean up

If unmount is False, the mount point is not freed completely, but every attempt to access it results in ESHUTDOWN. This can be used if the file system encountered some error that makes further access impossible.

Table Of Contents

Previous topic

Getting started

Next topic

Data Structures