The virtualfile Module

Created on 24.08.2011

class cloudfusion.pyfusebox.virtualfile.VirtualFile(path)

Bases: object

INITIAL_TEXT = '\nSome virtual Text.\n'
get_dir()
Returns:the pyth of the directory of this virtual file
get_name()
get_path()
get_subdir(real_directory)
Returns:the parent directory of this virtualfile’s path which is a subdirectory of real_directory
get_text()
getattr()
read(size, offset)
truncate()
write(buf, offset)

The flushing_pyfusebox Module

The pyfusebox Module

class cloudfusion.pyfusebox.pyfusebox.PyFuseBox(path, store)

Bases: cloudfusion.fuse.Operations

This is the application entry point for file system requests, for instance to handle read and write requests to files within the mount directory. PyFuseBox delegates these requests to an implementation of the interface cloudfusion.store.Store. For instance to cloudfusion.store.dropbox.dropbox_store.DropboxStore, which would then retrieve the accessed file from Dropbox, or store the modified file to Dropbox.

Create an instance of cloudfusion.pyfusebox.PyFuseBox. :param path: the path to the mount point :param store: an instance of the implementation of the interface cloudfusion.store.Store or None for later configuration

_release(path, fh)
create(path, mode)
flush(path, fh)
getattr(path, fh=None)
mkdir(path, mode)
open(path, flags)
read(path, size, offset, fh)
readdir(path, fh)
release(path, fh)
rename(old, new)
rmdir(path)
slow_down_if_cache_full(filesize)

Reduce write speed to 10kB/s if cache has reached its hard limit

statfs(path)

This implementation should be looked at by a linux guru, since I have little experience concerning filesystems.

truncate(path, length, fh=None)
write(path, buf, offset, fh)
cloudfusion.pyfusebox.pyfusebox.zstat()

The configurable_pyfusebox Module

The virtualconfigfile Module