Fixed a bug.
parent
df671c90c2
commit
8771155822
|
@ -204,6 +204,10 @@ func (fs *memFS) StatFS(
|
||||||
op.InodesFree = Capacity_Files
|
op.InodesFree = Capacity_Files
|
||||||
|
|
||||||
for _, in := range fs.inodes {
|
for _, in := range fs.inodes {
|
||||||
|
if in == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
op.InodesFree--
|
op.InodesFree--
|
||||||
op.BlocksFree -= in.attrs.Size
|
op.BlocksFree -= in.attrs.Size
|
||||||
op.BlocksAvailable -= in.attrs.Size
|
op.BlocksAvailable -= in.attrs.Size
|
||||||
|
|
Loading…
Reference in New Issue