Commit d227afe7 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

nodefs: add Fsync

parent 42b9d807
...@@ -168,6 +168,8 @@ func (n *DefaultOperations) Create(ctx context.Context, name string, flags uint3 ...@@ -168,6 +168,8 @@ func (n *DefaultOperations) Create(ctx context.Context, name string, flags uint3
type DefaultFile struct { type DefaultFile struct {
} }
var _ = File((*DefaultFile)(nil))
func (f *DefaultFile) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, fuse.Status) { func (f *DefaultFile) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, fuse.Status) {
return nil, fuse.ENOSYS return nil, fuse.ENOSYS
} }
...@@ -196,7 +198,7 @@ func (f *DefaultFile) Release(ctx context.Context) { ...@@ -196,7 +198,7 @@ func (f *DefaultFile) Release(ctx context.Context) {
} }
func (f *DefaultFile) GetAttr(ctx context.Context, out *fuse.Attr) fuse.Status { func (f *DefaultFile) GetAttr(ctx context.Context, out *fuse.AttrOut) fuse.Status {
return fuse.ENOSYS return fuse.ENOSYS
} }
...@@ -220,3 +222,7 @@ func (f *DefaultFile) Utimens(ctx context.Context, atime *time.Time, mtime *time ...@@ -220,3 +222,7 @@ func (f *DefaultFile) Utimens(ctx context.Context, atime *time.Time, mtime *time
func (f *DefaultFile) Allocate(ctx context.Context, off uint64, size uint64, mode uint32) (code fuse.Status) { func (f *DefaultFile) Allocate(ctx context.Context, off uint64, size uint64, mode uint32) (code fuse.Status) {
return fuse.ENOSYS return fuse.ENOSYS
} }
func (f *DefaultFile) Fsync(ctx context.Context, flags uint32) (code fuse.Status) {
return fuse.ENOSYS
}
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