gridfsfusepy icon indicating copy to clipboard operation
gridfsfusepy copied to clipboard

Tutorial on how to actually use this fuse plugin

Open yeukhon opened this issue 13 years ago • 2 comments

Hi. Thanks for the hard work.

I am 12.04 user running 32-bit, with the latest MongoDB release. I am new to FUSE and not sure how to use this plugin with GridFS.

vagrant@ide-vm:~/gridfsfusepy$ sudo python gridfsfusepy.py mongodb://admin:password@localhost:27017/testdb/fs.files virtualdir

Then I upload a file into mongo.

sudo su root
cd virtualdir
ls

and I get `ls: reading directory .: Bad address`` so i feel like I don't understand how this plugin works.

Please educate me. Thanks.

yeukhon avatar Apr 07 '13 05:04 yeukhon

@yeukhon ... not to toot my own whistle here, but i couldnt find a working impl a few days ago either... so i did this:

https://github.com/xtfxme/gridfuse

...i'm wanted it to try some new uWSGI features:

http://uwsgi-docs.readthedocs.org/en/latest/GridFS.html http://lists.unbit.it/pipermail/uwsgi/2013-April/005780.html

...i wouldn't use it [yet, at least] in any serious/production environment, but i'm am prototyping some internal systems that may at some point use it rather heavily. runs in python 2/3, and supports all file operations save hardlinks and xattrs, the latter of which will be implemented for sure, soon... however, be sure to read the Caveats .

...on a side note, i think i actually started from this project's code, but it was hosted on google code, assumingly abandoned, and found to be syntactically busted on download :(

anthonyrisinger avatar Apr 13 '13 13:04 anthonyrisinger

@xtfxme Thanks for leeting me know. I gave up on this the next day. I found pyfilesystem, but I also found problem: some file system functions were not implemented. By the way my project is to bring Mercurial API to the cloud, so disk / filesystem access is not possible (or I should say, should not know any filesystem physically).

My only workaround somehow contradicts the original intend of my project. I am using tmpfs... no luck with fuse.

yeukhon avatar Apr 18 '13 08:04 yeukhon