36 points · by russross · 16y ago · 9 comments
http://github.com/stephenh/s3fsr
Given I used Ruby's fusefs, nothing is streamed, and its single threaded, limitations I assume this C++ implementation doesn't have to deal with.
I think a generic cache layer would be a better solution. A bit of googling turns up fuse-cache, which sounds like about the right thing (although I haven't actually examined it in detail), or fs-cache, which also sounds like a discrete cache layer to be added to any file system. Basically, you mount it, and it passes requests through to any other mount (like s3fslite) while adding an on-disk cache layer.
I haven't tested any of these, but that seems like an approach worth pursuing.
- Russ
Great job!
Using find is just a trick I used whenever I'd corrupt the cache or change the DB schema while developing it, and then wanted to go in and test it again interactively.
I should probably mention that reducing the number of requests was one of my primary goals. The first time I played with s3fs (the one I forked), my bill for the month was roughly 10% storage and bandwidth, and 90% requests (or was it 20/80?).
Anyway, thanks for the feedback; I do appreciate it!
- Russ
edit: It uses libcurl for transfers, and libcurl supports https, so getting a secure connection is as simple as adding the option:
url=https://s3.amazonaws.com
at mount time.I've added that to the README file.