Gmail file system fuse


















MIT License. Branches Tags. Could not load branches. Could not load tags. Latest commit. Git stats 4 commits. Failed to load latest commit information. View code. Submitter name: Sagalpreet Singh Roll No. A root label is created in gmail account corresponding to the mount point. Emails act as file. I think that the best way to start your own implementation is to take an example and start adding your features.

As you may know CMake is a tool used to manage project builds in a cross platform way. The scope of this file is to define what CMake is supposed to do for our project. The getattr callback is in charge of reading the metadata of a given path, this callback is always called before any operation made on the filesystem. As you can see, we are telling FUSE that the current entry is a file or a directory using the stat struct.

The open callback is called when the system requests for a file to be opened. This callback is called when FUSE is reading data from an opened file.

It should return exactly the number of bytes requested and fill the second argument buf with the content of those bytes. Reprinted with permission. What I wouldn't give for a couple spare gigs of networked filesystem on which to stash a backup of my work in progress or as an intermediary between two firewalled systems thus, they're not directly reachable from one to the other.

GmailFS puts your gigs of Gmail storage to work for just such a purpose. It provides a mountable Linux filesystem and repurposes your Gmail account as its storage medium. GmailFS is a Python application that uses the FUSE userland filesystem infrastructure to help provide a filesystem and the libgmail library to communicate with Gmail.

GmailFS supports most file operations, such as read, write, open, close, stat, symlink, link, unlink, truncate and rename.

This means you can use the lion's share of your favorite Unix command-line tools cp, ls, mv, rm, ln, grep, et al. So, what can you store on the Gmail filesystem, and what can you do with it? About anything you can with any other possibly unreliable networked filesystem built on a cool hack or three.



0コメント

  • 1000 / 1000