>>> IIRC the one which currently works the best is impl_c.
>>
>> That is the only one I got up and running with a few modifications ... ;-)
>
> Yay! That's good news! Would you please give us the patch of your
> modifications?
In attach.
> I'm leery of adding caching to Tahoe-LAFS proper because caching is usually
> a tradeoff of gaining performance at a cost of correctness, and the apps
> layered atop Tahoe-LAFS can know better than Tahoe-LAFS can which of those
> tradeoffs are wins for them.
I agree. If you add a cache, I would add it to your FUSE implementation.
> Aren't you going to tell us what you learned?
I was planning too, but I didn't learned anything up till now. I'm
still busy with test preparations ...
Kind Regards
Thomas
--- /home/thomas/Download/allmydata-tahoe-1.5.0/contrib/fuse/impl_c/blackmatch.py 2009-02-23 19:31:00.000000000 +0100
+++ tahoe.py 2009-09-22 23:47:56.000000000 +0200
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#-----------------------------------------------------------------------------------------------
-from allmydata.uri import CHKFileURI, NewDirectoryURI, LiteralFileURI
+from allmydata.uri import CHKFileURI, DirectoryURI, LiteralFileURI
from allmydata.scripts.common_http import do_http as do_http_req
from allmydata.util.hashutil import tagged_hash
from allmydata.util.assertutil import precondition
@@ -1093,7 +1093,7 @@
cachedir = os.path.expanduser(os.path.join(nodedir, '_cache'))
self.cache = FileCache(nodeurl, cachedir)
- ro_uri = NewDirectoryURI.init_from_string(self.root_uri).get_readonly()
+ ro_uri = DirectoryURI.init_from_string(self.root_uri).get_readonly()
self.root = Directory(self, ro_uri, self.root_uri)
self.root.maybe_refresh('<root>')
@@ -1183,7 +1183,7 @@
url = self.compose_url("uri?t=mkdir")
new_dir_cap = do_http('PUT', url)
- ro_uri = NewDirectoryURI.init_from_string(new_dir_cap).get_readonly()
+ ro_uri = DirectoryURI.init_from_string(new_dir_cap).get_readonly()
child = Directory(self, ro_uri, new_dir_cap)
parent.add_child(name, child, {})
@@ -1598,10 +1598,10 @@
root_uri = config['root-uri']
root_name = 'uri_' + base32.b2a(tagged_hash('root_name', root_uri))[:12]
# test the uri for structural validity:
- try:
- NewDirectoryURI.init_from_string(root_uri)
- except:
- raise usage.error('root-uri must be a valid directory uri (not %r)' % (root_uri,))
+ #try:
+ # DirectoryURI.init_from_string(root_uri)
+ #except:
+ # raise usage.error('root-uri must be a valid directory uri (not %r)' % (root_uri,))
else:
raise usage.error('At least one of --alias or --root-uri must be specified')
_______________________________________________
tahoe-dev mailing list
[email protected]
http://allmydata.org/cgi-bin/mailman/listinfo/tahoe-dev