aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:00:42 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:00:42 (GMT)
commit5eb3a8bbef4ad93b94e0c3c8681be08ab3a66110 (patch)
tree307a098dcdc1718dc3a527dd4b1cf565185b04b6
parentc99221a816afd1414338cd24d92011ebf2f38686 (diff)
downloadfusearchive-5eb3a8bbef4ad93b94e0c3c8681be08ab3a66110.zip
fusearchive-5eb3a8bbef4ad93b94e0c3c8681be08ab3a66110.tar.gz
fusearchive-5eb3a8bbef4ad93b94e0c3c8681be08ab3a66110.tar.bz2
Use the new chunk storage
-rw-r--r--FuseArchive/ChunkFile.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/FuseArchive/ChunkFile.py b/FuseArchive/ChunkFile.py
index 546e9c0..457fe37 100644
--- a/FuseArchive/ChunkFile.py
+++ b/FuseArchive/ChunkFile.py
@@ -1,4 +1,5 @@
import logging, os, errno, fcntl, fuse, FuseArchive
+import FuseArchive.Storage.ZipFile, FuseArchive.Storage.FileSystem
from binascii import hexlify
from FuseArchive.Serializer import Serializer
@@ -7,7 +8,6 @@ magic_blocksize = 1024 * 128
# Use a tiny block size to debug writes, so you can use a smaller test file
#magic_blocksize = 1024
magic_depth = 5
-gzip_compress_level = 6
chunkstyle = 'fs'
# Memory for dirty blocks, per file (1M)
@@ -32,6 +32,9 @@ def flag2mode(flags):
return m
+load_chunk = FuseArchive.Storage.FileSystem.load_chunk
+save_chunk = FuseArchive.Storage.FileSystem.save_chunk
+
class FuseArchiveStat(fuse.Stat):
def __init__(self, stat):
self.st_mode = stat.st_mode