diff options
author | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 15:45:55 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2009-07-23 15:45:55 (GMT) |
commit | 52e0eb015eca1d59b683adb27f8755f0fd51344c (patch) | |
tree | 1a058167f96f59e655ae21db13e5845fac69faf3 | |
parent | 3cf47419c9a6a548710f30a01e458ebdd64fc2e2 (diff) | |
download | fusearchive-52e0eb015eca1d59b683adb27f8755f0fd51344c.zip fusearchive-52e0eb015eca1d59b683adb27f8755f0fd51344c.tar.gz fusearchive-52e0eb015eca1d59b683adb27f8755f0fd51344c.tar.bz2 |
Fix up block count so du is happier
-rwxr-xr-x | fusearchive.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |