From 52e0eb015eca1d59b683adb27f8755f0fd51344c Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Thu, 23 Jul 2009 08:45:55 -0700 Subject: Fix up block count so du is happier diff --git a/fusearchive.py b/fusearchive.py index ad7a946..6680e3f 100755 --- a/fusearchive.py +++ b/fusearchive.py @@ -177,7 +177,8 @@ class FuseArchiveStat(fuse.Stat): self.st_atime = stat.st_atime self.st_mtime = stat.st_mtime self.st_ctime = stat.st_mtime - self.st_blocks = stat.st_blocks + # Yeah we shouldn't always just add 1 + self.st_blocks = int( self.st_size / 512 ) + 1 self.st_blksize = stat.st_blksize class FuseArchive(Fuse): -- cgit v0.10.2