Commit 1febcb14 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 70cd471f
...@@ -87,7 +87,7 @@ class WCFS(_WCFS): ...@@ -87,7 +87,7 @@ class WCFS(_WCFS):
# ---- WCFS raw file access ---- # ---- WCFS raw file access ---- XXX -> wcfs_test.py ? (used only there)
# _path returns path for object on wcfs. # _path returns path for object on wcfs.
# - str: wcfs root + obj; # - str: wcfs root + obj;
...@@ -277,8 +277,6 @@ def _wcfs_exe(): ...@@ -277,8 +277,6 @@ def _wcfs_exe():
# #
# it also makes sure the mountpoint exists. # it also makes sure the mountpoint exists.
def _mntpt_4zurl(zurl): def _mntpt_4zurl(zurl):
# XXX what if zurl is zconfig://... ? -> then we have to look inside?
# -> zstor_2zurl extracts zurl in canonical form and zconfig:// is not possible there.
m = hashlib.sha1() m = hashlib.sha1()
m.update(zurl) m.update(zurl)
mntpt = "%s/wcfs/%s" % (tempfile.gettempdir(), m.hexdigest()) mntpt = "%s/wcfs/%s" % (tempfile.gettempdir(), m.hexdigest())
...@@ -302,7 +300,7 @@ def _mkdir_p(path): ...@@ -302,7 +300,7 @@ def _mkdir_p(path):
# #
# it is an error if wcfs was already started. # it is an error if wcfs was already started.
# #
# XXX optv # optv is list of options to pass to wcfs server.
# if exec_ is True, wcfs is not spawned, but executed into. # if exec_ is True, wcfs is not spawned, but executed into.
# #
# serve(zurl, exec_=False). # serve(zurl, exec_=False).
...@@ -330,7 +328,6 @@ def serve(zurl, optv, exec_=False): ...@@ -330,7 +328,6 @@ def serve(zurl, optv, exec_=False):
# if called as main just -> serve() # if called as main just -> serve()
def main(): def main():
argv = sys.argv[1:] argv = sys.argv[1:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment