aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-23 23:14:27 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-23 23:14:27 (GMT)
commit0fb35dbba9c6bec4043f033bbe46da03bdfa3af5 (patch)
tree6cc482a90504b863c9d496e37607ab74920135af
parent04a1000d48f4bceaa09e96199fb56225a5800f4f (diff)
downloadfusearchive-0fb35dbba9c6bec4043f033bbe46da03bdfa3af5.zip
fusearchive-0fb35dbba9c6bec4043f033bbe46da03bdfa3af5.tar.gz
fusearchive-0fb35dbba9c6bec4043f033bbe46da03bdfa3af5.tar.bz2
Make file ready handle cached dirty pages
-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 = ''