summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/node_open_create.go
diff options
context:
space:
mode:
authorCharles Duffy2021-10-08 20:54:41 +0000
committerJakob Unterwurzacher2021-10-15 17:35:12 +0200
commit8ec872e330985a2de87c3b15d6c49ab9e3281573 (patch)
tree2077f0b4ed275eda341d7a9d29c02ee72a6b6113 /internal/fusefrontend/node_open_create.go
parent3b881b01744992da138f7f72390776c65782bcc2 (diff)
fusefrontend: honor ForceOwner for LOOKUP and CREATE operations
Diffstat (limited to 'internal/fusefrontend/node_open_create.go')
-rw-r--r--internal/fusefrontend/node_open_create.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/fusefrontend/node_open_create.go b/internal/fusefrontend/node_open_create.go
index eb45fb4..9598559 100644
--- a/internal/fusefrontend/node_open_create.go
+++ b/internal/fusefrontend/node_open_create.go
@@ -103,6 +103,12 @@ func (n *Node) Create(ctx context.Context, name string, flags uint32, mode uint3
if errno != 0 {
return
}
+
inode = n.newChild(ctx, st, out)
+
+ if rn.args.ForceOwner != nil {
+ out.Owner = *rn.args.ForceOwner
+ }
+
return inode, fh, fuseFlags, errno
}