diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-08-06 23:45:45 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-08-06 23:45:45 (GMT) |
commit | 44db0f423142b3757cd08f77562ee29c6575aa2a (patch) | |
tree | abbb09c732acecc2d6a68d0fe7a8c94915df1177 /FuseArchive/FileSystem.py | |
parent | 7f8c15ebab3a2ebe8d2929f1b3e5abb160866b57 (diff) | |
download | fusearchive-44db0f423142b3757cd08f77562ee29c6575aa2a.zip fusearchive-44db0f423142b3757cd08f77562ee29c6575aa2a.tar.gz fusearchive-44db0f423142b3757cd08f77562ee29c6575aa2a.tar.bz2 |
Pre-init original_chunks because we might need to fflush early in the
constructor, use ftruncate since truncate doesn't exist, and handle
unlocking unused chunks due to ftruncate
Diffstat (limited to 'FuseArchive/FileSystem.py')
-rw-r--r-- | FuseArchive/FileSystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FuseArchive/FileSystem.py b/FuseArchive/FileSystem.py index e70bba6..16e5b2c 100644 --- a/FuseArchive/FileSystem.py +++ b/FuseArchive/FileSystem.py @@ -49,7 +49,7 @@ class FileSystem(fuse.Fuse): def unlink(self, path): # Do a truncate to free our chunks f = ChunkFile( path, os.O_RDWR, 0 ) - f.truncate( 0 ) + f.ftruncate( 0 ) f.release( 0 ) os.unlink("./tree" + path) |