Commit 3a403f14 authored by Ivan Krasin's avatar Ivan Krasin

Removed flags argument from FileSystem.GetAttr

parent 59bf8ed0
......@@ -16,7 +16,7 @@ const (
type FileSystem interface {
List(parent string) (names []string, code Status)
Lookup(parent, filename string) (out *Attr, code Status)
GetAttr(path string, id *Identity, flags uint32) (out *AttrOut, code Status)
GetAttr(path string, id *Identity) (out *AttrOut, code Status)
}
type Mounted interface {
......@@ -174,7 +174,7 @@ func getAttr(fs FileSystem, h *InHeader, r io.Reader, c *managerClient) (data []
if resp.code != OK {
return serialize(h, resp.code, nil)
}
out, res := fs.GetAttr(resp.path, &h.Identity, in.GetAttrFlags)
out, res := fs.GetAttr(resp.path, &h.Identity)
if res != OK {
return serialize(h, res, nil)
}
......
......@@ -20,7 +20,7 @@ var (
type testFuse struct{}
func (fs *testFuse) GetAttr(path string, id *Identity, flags uint32) (out *AttrOut, code Status) {
func (fs *testFuse) GetAttr(path string, id *Identity) (out *AttrOut, code Status) {
out = new(AttrOut)
out.Mode = S_IFDIR
return
......
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