Python & FUSE

3,255 views
3,158 views

Published on

Simple filesystems with Python and FUSE

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,255
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

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

×