Commit 60558b93 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/nodefs: reorganize read/write in interface ordering.

parent ec7ef175
...@@ -83,6 +83,8 @@ type Node interface { ...@@ -83,6 +83,8 @@ type Node interface {
// directly. // directly.
Open(flags uint32, context *fuse.Context) (file File, code fuse.Status) Open(flags uint32, context *fuse.Context) (file File, code fuse.Status)
OpenDir(context *fuse.Context) ([]fuse.DirEntry, fuse.Status) OpenDir(context *fuse.Context) ([]fuse.DirEntry, fuse.Status)
Read(file File, dest []byte, off int64, context *fuse.Context) (fuse.ReadResult, fuse.Status)
Write(file File, data []byte, off int64, context *fuse.Context) (written uint32, code fuse.Status)
// XAttrs // XAttrs
GetXAttr(attribute string, context *fuse.Context) (data []byte, code fuse.Status) GetXAttr(attribute string, context *fuse.Context) (data []byte, code fuse.Status)
...@@ -91,8 +93,6 @@ type Node interface { ...@@ -91,8 +93,6 @@ type Node interface {
ListXAttr(context *fuse.Context) (attrs []string, code fuse.Status) ListXAttr(context *fuse.Context) (attrs []string, code fuse.Status)
// Attributes // Attributes
Read(file File, dest []byte, off int64, context *fuse.Context) (fuse.ReadResult, fuse.Status)
Write(file File, data []byte, off int64, context *fuse.Context) (written uint32, code fuse.Status)
GetAttr(out *fuse.Attr, file File, context *fuse.Context) (code fuse.Status) GetAttr(out *fuse.Attr, file File, context *fuse.Context) (code fuse.Status)
Chmod(file File, perms uint32, context *fuse.Context) (code fuse.Status) Chmod(file File, perms uint32, context *fuse.Context) (code fuse.Status)
Chown(file File, uid uint32, gid uint32, context *fuse.Context) (code fuse.Status) Chown(file File, uid uint32, gid uint32, context *fuse.Context) (code fuse.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