tahoe-lafs/mac
robk-tahoe d61fdafd41 fuse/impl_c: reworking of mac/tahoefuse, command line options, test integration
a handful of changes to the tahoefuse implementation used by the mac build, to 
make command line option parsing more flexible and robust, and moreover to 
facilitate integration of this implementation with the 'runtests' test harness
used to test the other two implementations.

this patch includes;
- improvements to command line option parsing [ see below ]
- support for 'aliases' akin to other tahoe tools
- tweaks to support linux (ubuntu hardy)

the linux support tweaks are, or at least seem to be, a result of the fact that
hardy ships with fuse 0.2pre3, as opposed to the fuse0.2 that macfuse is based
upon.  at least the versions I was working with have discrepencies in their
interfaces, but on reflection this is probably a 'python-fuse' version issue
rather than fuse per se.  At any rate, the fixes to handling the Stat objects
should be safe against either version, it's just that the bindings on hardy
lacked code that was in the 'fuse' python module on the mac...

command line options:

the need for more flexible invocation in support of the runtests harness led
me to rework the argument parsing from some simple positional hacks with a
pass-through of the remainder to the fuse binding's 'fuse_main' to a system
using twisted.usage to parse arguments, and having just one option '-o' being
explicitly a pass-through for -o options to fuse_main. the options are now:

--node-directory NODEDIR : this is used to look up the node-url to connect
to if that's not specified concretely on the command line, and also used to
determine the location of the cache directory used by the implementation,
specifically '_cache' within the nodedir.  default value: ~/.tahoe

--node-url NODEURL : specify a node-url taking precendence over that found
in the node.url file within the nodedir

--alias ALIAS : specifies the named alias should be mounted. a lookup is
performed in the alias table within 'nodedir' to find the root dir cap
the named alias must exist in the alias table of the specified nodedir

--root-uri ROOTURI : specifies that the given directory uri should be mounted

at least one of --alias and --root-uri must be given (which directory to mount
must be specified somehow)  if both are given --alias takes precedence.

--cache-timeout TIMEOUTSECS : specifies the number of seconds that cached
directory data should be considered valid for.  this tahoefuse implementation
implements directory caching for a limited time; largely because the mac (i.e.
the Finder in particular) tends to make a large number of requests in quick 
successsion when browsing the filesystem.  on the flip side, the 'runtests'
unit tests fail in the face of such caching because the changes made to the
underlying tahoe directories are not reflected in the fuse presentation.  by 
specifying a cache-timeout of 0 seconds, runtests can force the fuse layer
into refetching directory data upon each request.

any number of -oname=value options may be specified on the command line,
and they will all be passed into the underlying fuse_main call.

a single non-optional argument, the mountpoint, must also be given.
2008-09-24 17:15:35 -07:00
..
10.4/fuseparts mac build: tweaks to build fuse for 10.4 and 10.5 2008-02-26 18:08:44 -07:00
10.5/fuseparts mac build: tweaks to build fuse for 10.4 and 10.5 2008-02-26 18:08:44 -07:00
fuseparts mac build: tweaks to build fuse for 10.4 and 10.5 2008-02-26 18:08:44 -07:00
allmydata_tahoe.py macfuse: move macfuse files around to simplify pythonpath 2008-02-19 17:18:17 -07:00
allmydata.icns macapp: updated icon for mac build 2008-03-18 16:13:38 -07:00
depends.py mac build: make a couple of build dependency hints soft imports 2008-02-26 17:39:07 -07:00
fuse.py macfuse: move macfuse files around to simplify pythonpath 2008-02-19 17:18:17 -07:00
Makefile mac/Makefile: remove the verbose hdiutil diagnostics now that we resolved the problem 2008-09-11 17:46:22 -07:00
setup.py macapp: changed to remove 'Tahoe' from .app name 2008-06-10 17:31:45 -07:00
tahoefuse.py fuse/impl_c: reworking of mac/tahoefuse, command line options, test integration 2008-09-24 17:15:35 -07:00