From 5eb3a8bbef4ad93b94e0c3c8681be08ab3a66110 Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Mon, 3 Aug 2009 22:00:42 -0700 Subject: Use the new chunk storage 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 -- cgit v0.10.2