aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-23 23:17:32 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-23 23:17:32 (GMT)
commit053804b9b1118555f36ac62a6477d20e06029307 (patch)
tree709e93bd643c94abc04d8823c765b78baea72f95
parent0fb35dbba9c6bec4043f033bbe46da03bdfa3af5 (diff)
downloadfusearchive-053804b9b1118555f36ac62a6477d20e06029307.zip
fusearchive-053804b9b1118555f36ac62a6477d20e06029307.tar.gz
fusearchive-053804b9b1118555f36ac62a6477d20e06029307.tar.bz2
Bumped block size a bit, initialize current block to -1 so that we don't
think block zero is already loaded
-rwxr-xr-xfusearchive.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fusearchive.py b/fusearchive.py
index a72e961..c4e3811 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -24,9 +24,9 @@ fuse.fuse_python_api = (0, 2)
fuse.feature_assert('stateful_files', 'has_init')
-magic_blocksize = 1024 * 32
+magic_blocksize = 1024 * 128
magic_depth = 5
-debug_level = 0
+debug_level = 3
# Memory for dirty blocks, per file (1M)
dirty_size = 1024 * 1024 * 1;
@@ -285,7 +285,7 @@ class FuseArchive(Fuse):
# This is the current in-memory chunk and offset in to data[]
self.chunk_cache = {};
self.chunk = ''
- self.chunk_index = 0
+ self.chunk_index = -1
self.chunk_modified = False
self.chunk_size = magic_blocksize
self.dirty_chunks = 0