From 0fb35dbba9c6bec4043f033bbe46da03bdfa3af5 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Jul 2009 16:14:27 -0700 Subject: Make file ready handle cached dirty pages 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 = '' -- cgit v0.10.2