Uploaded on

Simple filesystems with Python and FUSE

Simple filesystems with Python and FUSE

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,790
On Slideshare
0
From Embeds
0
Number of Embeds
6

Actions

Shares
Downloads
4
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Simple Filesystemswith Python and FUSEJoseph Scotthttp://josephscott.org/
  • 2. Pythonhttp://www.python.org/
  • 3. FUSE - Filesystem in Userspacehttp://fuse.sourceforge.net/
  • 4. Why FUSE?- Non-privileged users- Simple installation- Multiple language bindingsC, C++, Java, C#, Python, Perl, Ruby, Lua, etc.- Easy filesystem experiments
  • 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. 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. Another FUSE Presentationhttp://www.slideshare.net/matteobertozzi/python-fuseI learned lots from this,inspired some of my examples
  • 8. My ApproachImplement the fewest methodsnecessary for getting the job done
  • 9. Live Examples
  • 10. Questions?
  • 11. Joseph Scotthttp://josephscott.org/joseph@josephscott.org@josephscott