|
Revision 992, 1.0 kB
(checked in by bradfitz, 3 years ago)
|
|
checking in Leon Brocard's fuse mounter for MogileFS.
|
| Line | |
|---|
| 1 | From acme@astray.com Mon May 14 17:29:14 2007 |
|---|
| 2 | Date: Mon, 14 May 2007 14:06:51 +0100 |
|---|
| 3 | From: Leon Brocard <acme@astray.com> |
|---|
| 4 | To: mogilefs@lists.danga.com |
|---|
| 5 | Subject: mogilefs & fuse |
|---|
| 6 | |
|---|
| 7 | There's been some talk of MogileFS and FUSE recently, which allows you |
|---|
| 8 | to mount MogileFS under Linux (and other OSes) as a network share. |
|---|
| 9 | |
|---|
| 10 | I've attached a Perl script which makes this work. If someone wants to |
|---|
| 11 | take this and run with it and add it to svn it'd be peachy. |
|---|
| 12 | |
|---|
| 13 | Your MogileFS filenames should be of the format "/foo/bar/quux.gif" |
|---|
| 14 | for this to work sensibly. |
|---|
| 15 | |
|---|
| 16 | I particularly proud of doing the range requests. |
|---|
| 17 | |
|---|
| 18 | It's annoying that the tracker can't give you file sizes though. |
|---|
| 19 | |
|---|
| 20 | The one big hack is to figure out directory paths - somewhat |
|---|
| 21 | inefficiently it needs to go through every path to see what |
|---|
| 22 | directories to show at the root mount point. It gets more efficient |
|---|
| 23 | lower down though. |
|---|
| 24 | |
|---|
| 25 | Performance wise: it's not too bad, it's not too good. Don't throw |
|---|
| 26 | away Samba yet. |
|---|
| 27 | |
|---|
| 28 | Many thanks to Foxtons Ltd. for letting me hack on this at work. |
|---|
| 29 | |
|---|
| 30 | Leon |
|---|