Skip to content

Commit

Permalink
Set Ffree in Statfs
Browse files Browse the repository at this point in the history
Fixes #194
  • Loading branch information
tv42 committed Apr 21, 2018
1 parent dcd52f1 commit 65cc252
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,9 @@ func TestStatfs(t *testing.T) {
if g, e := st.Files, uint64(13); g != e {
t.Errorf("got Files = %d; want %d", g, e)
}
// TODO https://github.com/bazil/fuse/issues/194
// if g, e := st.Ffree, uint64(11); g != e {
// t.Errorf("got Ffree = %d; want %d", g, e)
// }
if g, e := st.Ffree, uint64(11); g != e {
t.Errorf("got Ffree = %d; want %d", g, e)
}
if g, e := st.Bsize, int64(1000); g != e {
t.Errorf("got Bsize = %d; want %d", g, e)
}
Expand Down
1 change: 1 addition & 0 deletions fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,7 @@ func (r *StatfsRequest) Respond(resp *StatfsResponse) {
Bfree: resp.Bfree,
Bavail: resp.Bavail,
Files: resp.Files,
Ffree: resp.Ffree,
Bsize: resp.Bsize,
Namelen: resp.Namelen,
Frsize: resp.Frsize,
Expand Down

0 comments on commit 65cc252

Please sign in to comment.