diff options
Diffstat (limited to 'FuseArchive')
-rw-r--r-- | FuseArchive/Storage/FileSystem.py | 9 | ||||
-rw-r--r-- | FuseArchive/Storage/ZipFile.py | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py index bdb6176..4310481 100644 --- a/FuseArchive/Storage/FileSystem.py +++ b/FuseArchive/Storage/FileSystem.py @@ -1,3 +1,8 @@ +import FuseArchive, logging, os, sha +from binascii import hexlify + +magic_depth = 5 + # This will write out a data block, it will return a key that can get this # data back later def save_chunk( chunk ): @@ -5,7 +10,7 @@ def save_chunk( chunk ): return( [ 0, 0 ] ) logging.debug( "Begin save_chunk, length: %d" % len( chunk ) ) - if deep_debug: + if FuseArchive.deep_debug: logging.debug( "Chunk: %s" + hexlify( chunk ) ) # Save this hash string, similar to the backuppc algo @@ -94,7 +99,7 @@ def load_chunk( key ): else: raise IOError - if deep_debug: + if FuseArchive.deep_debug: logging.debug( "Load-Chunk: %s" + hexlify( chunk ) ) return chunk diff --git a/FuseArchive/Storage/ZipFile.py b/FuseArchive/Storage/ZipFile.py index c76b5bb..755c2a4 100644 --- a/FuseArchive/Storage/ZipFile.py +++ b/FuseArchive/Storage/ZipFile.py @@ -1,4 +1,5 @@ import os, logging +from binascii import hexlify def save_chunk( chunk ): if FuseArchive.magic_profiling: |