Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Python & FUSE

3,503 views

Published on

Simple filesystems with Python and FUSE

Published in: Technology
  • Be the first to comment

Python & FUSE

  1. 1. Simple Filesystemswith Python and FUSEJoseph Scotthttp://josephscott.org/
  2. 2. Pythonhttp://www.python.org/
  3. 3. FUSE - Filesystem in Userspacehttp://fuse.sourceforge.net/
  4. 4. Why FUSE?- Non-privileged users- Simple installation- Multiple language bindingsC, C++, Java, C#, Python, Perl, Ruby, Lua, etc.- Easy filesystem experiments
  5. 5. FUSE based filesystems๏ redisfs - http://www.steve.org.uk/Software/redisfs/๏ Gluser - http://www.gluster.org/๏ sshfs - http://fuse.sourceforge.net/sshfs.html๏ gmailfs - http://sr71.net/projects/gmailfs/๏WikipediaFS - http://wikipediafs.sourceforge.net/๏ s3fsc - https://github.com/tongwang/s3fs-c
  6. 6. FUSE APIgetattr( path )readlink( path )mknod( path, mode, dev )mkdir( path, mode )unlink( path )symlink( target, name )rename( old, new )link( srcpath, targetpath )fsinit( self )chmod( path, mode )chown( path, uid, gid )open( path, mode )create( path, mode )read( path, length, offset )write( path, data, offset )getattr( path )truncate( path, len )flush( path )release( path )fsync( path )readdir( path )rmdir( path )http://sourceforge.net/apps/mediawiki/fuse/index.php?title=FUSE_Python_Reference
  7. 7. Another FUSE Presentationhttp://www.slideshare.net/matteobertozzi/python-fuseI learned lots from this,inspired some of my examples
  8. 8. My ApproachImplement the fewest methodsnecessary for getting the job done
  9. 9. Live Examples
  10. 10. Questions?
  11. 11. Joseph Scotthttp://josephscott.org/joseph@josephscott.org@josephscott

×