aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfusearchive.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/fusearchive.py b/fusearchive.py
index d4e8ebe..a72e961 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -353,8 +353,12 @@ class FuseArchive(Fuse):
key = self.chunks[ index ]
if key:
- dmsg( 3, "Index: " + str( key ) )
- self.chunk = load_chunk( key )
+ if isinstance( key, str ):
+ dmsg( 3, "Found cached dirty page" )
+ self.chunk = key
+ else:
+ dmsg( 3, "Index: " + str( key ) )
+ self.chunk = load_chunk( key )
else:
dmsg( 3, "No chunk at this index, loading nothing" )
self.chunk = ''