From 053804b9b1118555f36ac62a6477d20e06029307 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Jul 2009 16:17:32 -0700 Subject: Bumped block size a bit, initialize current block to -1 so that we don't think block zero is already loaded 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 -- cgit v0.10.2