Fixed a bug.

geesefs-0-30-9
Aaron Jacobs 2015-09-09 09:53:43 +10:00
parent df671c90c2
commit 8771155822
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ func (fs *memFS) StatFS(
op.InodesFree = Capacity_Files
for _, in := range fs.inodes {
if in == nil {
continue
}
op.InodesFree--
op.BlocksFree -= in.attrs.Size
op.BlocksAvailable -= in.attrs.Size