fusetoys

various hacky fuse filesystem utilities
git clone https://a3nm.net/git/fusetoys/
Log | Files | Refs | README

commit 6d5d790da10ae8407564d491633c526ca8aa9259
parent cdb6d7ccf261891ed71c3a4fd27596624cc4ebe6
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 29 Dec 2012 00:54:20 +0100

fix bug in cache location

Diffstat:
cachefs.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cachefs.py b/cachefs.py @@ -111,7 +111,7 @@ class CacheFS(MetaCacheFS): self.parser.add_option('--cache', dest='cache', metavar='CACHE', help="cache (mandatory)") self.parser.add_option('--db', dest='db', metavar='DB', default=DB, - help="db location relative to the cache") + help="db location (absolute or relative to the cache)") self.parser.add_option('--size', dest='size', metavar='SIZE', type='int', help="maximal size of cache") @@ -120,7 +120,7 @@ class CacheFS(MetaCacheFS): options = self.cmdline[0] self.cacheRoot = options.cache - self.db = options.db + self.db = os.path.join(self.cacheRoot, options.db) self.size = options.size if not self.size: vfs = os.statvfs(self.cacheRoot)