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


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 Scott
  2. 2. Python
  3. 3. FUSE - Filesystem in Userspace
  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 -๏ Gluser -๏ sshfs -๏ gmailfs -๏WikipediaFS -๏ s3fsc -
  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 )
  7. 7. Another FUSE Presentation 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 Scott