aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:03:06 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:03:06 (GMT)
commitb2e8b961325b9813656aef54880f09f3bce9becf (patch)
treec24b7cd4e8fc94d6771ee2592966a1a604c70dc2
parentd0ac09242f5c4ffbd8638c413fd2d84c66d056ac (diff)
downloadfusearchive-b2e8b961325b9813656aef54880f09f3bce9becf.zip
fusearchive-b2e8b961325b9813656aef54880f09f3bce9becf.tar.gz
fusearchive-b2e8b961325b9813656aef54880f09f3bce9becf.tar.bz2
Fix namespace problem
-rw-r--r--FuseArchive/ChunkFile.py2
-rw-r--r--FuseArchive/Storage/FileSystem.py4
-rwxr-xr-xfusearchive.py4
3 files changed, 5 insertions, 5 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
diff --git a/fusearchive.py b/fusearchive.py
index 1d5281b..f18c7c7 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -11,8 +11,8 @@
import logging, sys, os, fuse
import FuseArchive
-#log_level = logging.DEBUG
-log_level = logging.WARNING
+log_level = logging.DEBUG
+#log_level = logging.WARNING
logging.basicConfig( level = log_level,
format = '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(module)s:%(funcName)s() %(message)s',