diff options
author | Charles Duffy | 2021-10-08 20:54:41 +0000 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-10-15 17:35:12 +0200 |
commit | 8ec872e330985a2de87c3b15d6c49ab9e3281573 (patch) | |
tree | 2077f0b4ed275eda341d7a9d29c02ee72a6b6113 /internal/fusefrontend/node.go | |
parent | 3b881b01744992da138f7f72390776c65782bcc2 (diff) |
fusefrontend: honor ForceOwner for LOOKUP and CREATE operations
Diffstat (limited to 'internal/fusefrontend/node.go')
-rw-r--r-- | internal/fusefrontend/node.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/fusefrontend/node.go b/internal/fusefrontend/node.go index 99d337f..182cda5 100644 --- a/internal/fusefrontend/node.go +++ b/internal/fusefrontend/node.go @@ -41,6 +41,10 @@ func (n *Node) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (ch n.translateSize(dirfd, cName, &out.Attr) rn := n.rootNode() + if rn.args.ForceOwner != nil { + out.Owner = *rn.args.ForceOwner + } + if rn.args.SharedStorage { // If we already have a child node that matches what we found on disk* // (as reflected in `ch`), return it here. |