aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
Diffstat (limited to 'FuseArchive')
-rw-r--r--FuseArchive/ChunkFile.py2
-rw-r--r--FuseArchive/Storage/FileSystem.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/FuseArchive/ChunkFile.py b/FuseArchive/ChunkFile.py
index 457fe37..3b04ba8 100644
--- a/FuseArchive/ChunkFile.py
+++ b/FuseArchive/ChunkFile.py
@@ -245,7 +245,7 @@ class ChunkFile(object):
return data
def write(self, buf, offset):
- if magic_profiling:
+ if FuseArchive.magic_profiling:
return len( buf )
logging.debug( "Writing to %s offset: %d (0x%x) length: %d (0x%x)" %
diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py
index 8488964..bdb6176 100644
--- a/FuseArchive/Storage/FileSystem.py
+++ b/FuseArchive/Storage/FileSystem.py
@@ -1,7 +1,7 @@
# This will write out a data block, it will return a key that can get this
# data back later
def save_chunk( chunk ):
- if magic_profiling:
+ if FuseArchive.magic_profiling:
return( [ 0, 0 ] )
logging.debug( "Begin save_chunk, length: %d" % len( chunk ) )
@@ -66,7 +66,7 @@ def save_chunk( chunk ):
# This will return a data block by key that was saved previously
def load_chunk( key ):
- if magic_profiling:
+ if FuseArchive.magic_profiling:
return ''
( thash, seq ) = key