diff options
author | Jakob Unterwurzacher | 2020-07-12 21:17:52 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-12 21:17:52 +0200 |
commit | 4a0966e79efb157b612e4f5867ec6f111571546c (patch) | |
tree | 02e73c36e3142938902904b0a5f190e8b17f4b8e /internal | |
parent | d7db071528cff2450fd766bb48d0303444f18bf5 (diff) |
v2api: Setattr: fill `out` structure
Diffstat (limited to 'internal')
-rw-r--r-- | internal/fusefrontend/node.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/fusefrontend/node.go b/internal/fusefrontend/node.go index 408bfea..48447bb 100644 --- a/internal/fusefrontend/node.go +++ b/internal/fusefrontend/node.go @@ -361,12 +361,15 @@ func (n *Node) Setattr(ctx context.Context, f fs.FileHandle, in *fuse.SetAttrIn, return errno } f2 := f.(*File2) + defer f2.Release(ctx) errno = syscall.Errno(f2.truncate(sz)) if errno != 0 { return errno } + return f2.Getattr(ctx, out) } - return 0 + + return n.Getattr(ctx, nil, out) } // StatFs - FUSE call. Returns information about the filesystem. |