Commit 0d6f57fc authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: fix bug in wrappingFS, and add test coverage.

parent 073e2885
......@@ -78,7 +78,7 @@ func NewTestCase(t *testing.T) *testCase {
})
me.connector.SetDebug(VerboseTest())
me.state, err = fuse.NewServer(
me.connector.RawFS(), me.mnt, &fuse.MountOptions{SingleThreaded: true})
fuse.NewRawFileSystem(me.connector.RawFS()), me.mnt, &fuse.MountOptions{SingleThreaded: true})
if err != nil {
t.Fatal("NewServer:", err)
}
......
......@@ -58,7 +58,6 @@ func (fs *wrappingFS) Forget(nodeID, nlookup uint64) {
}); ok {
s.Forget(nodeID, nlookup)
}
return
}
func (fs *wrappingFS) GetAttr(input *GetAttrIn, out *AttrOut) (code Status) {
......@@ -76,7 +75,7 @@ func (fs *wrappingFS) Open(input *OpenIn, out *OpenOut) (status Status) {
}); ok {
return s.Open(input, out)
}
return OK
return ENOSYS
}
func (fs *wrappingFS) SetAttr(input *SetAttrIn, out *AttrOut) (code Status) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment