diff options
-rwxr-xr-x | fusearchive.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fusearchive.py b/fusearchive.py index 98e5169..f728640 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -49,12 +49,12 @@ def inflate( src, dest ): out = open( dest, "w" ) - dmsg( 2, "Unpickling: " + src ) + dmsg( 3, "Unpickling: " + src ) # TODO: return an IO error if inflating fails inp = gzip.open( src, "r" ) magic = pickle.load( inp ) inp.close() - dmsg( 2, "Got data: " + str( magic ) ) + dmsg( 3, "Got data: " + str( magic ) ) #pdb.set_trace() @@ -331,16 +331,16 @@ class FuseArchive(Fuse): deflate( "/dev/null", "./tree" + path ) dmsg( 2, "Shadow file: " + self.tmp_name + " for " + self.orig_path ) - dmsg( 2, "Going to open shadow file with flags: " + str(flags) + " mode " + str(mode) ) + dmsg( 3, "Going to open shadow file with flags: " + str(flags) + " mode " + str(mode) ) # pdb.set_trace() - dmsg( 2, "Flag2mode is: " + str( flag2mode( flags ) ) ) + dmsg( 3, "Flag2mode is: " + str( flag2mode( flags ) ) ) # Just use the fdnum they gave us instead of reopening it, # since that might fail # fdnum = os.open( self.tmp_name, flags, *mode ) #print "Got fdnum: " + str(fdnum) self.file = os.fdopen( fdnum, flag2mode( flags ) ) - dmsg( 2, "Open" ) + dmsg( 3, "Open" ) self.fd = self.file.fileno() @@ -349,7 +349,7 @@ class FuseArchive(Fuse): self.modified = False - dmsg( 2, str(self) + " init complete" ) + dmsg( 3, str(self) + " init complete" ) def read(self, length, offset): dmsg( 2, "Reading from " + self.orig_path ) |