aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend/node_dir_ops.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-07-11 19:23:04 +0200
committerJakob Unterwurzacher2020-07-11 19:23:04 +0200
commitb971c75e67c26b126a64ab8b00f416b3b573f194 (patch)
tree2413772e19270621ff31bcaf939e7d73062fb276 /internal/fusefrontend/node_dir_ops.go
parent855b4a95b794b9905c68afff2863138461a4be3a (diff)
v2api: implement Mknod
Diffstat (limited to 'internal/fusefrontend/node_dir_ops.go')
-rw-r--r--internal/fusefrontend/node_dir_ops.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/fusefrontend/node_dir_ops.go b/internal/fusefrontend/node_dir_ops.go
index 32e5e86..df8f060 100644
--- a/internal/fusefrontend/node_dir_ops.go
+++ b/internal/fusefrontend/node_dir_ops.go
@@ -115,16 +115,8 @@ func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.En
tlog.Warn.Printf("Mkdir %q: Fstat failed: %v", cName, err)
return nil, fs.ToErrno(err)
}
- rn.inoMap.TranslateStat(&st)
- out.Attr.FromStat(&st)
// Create child node
- id := fs.StableAttr{
- Mode: uint32(st.Mode),
- Gen: 1,
- Ino: st.Ino,
- }
- node := &Node{}
- ch := n.NewInode(ctx, node, id)
+ ch := n.newChild(ctx, &st, out)
// Set mode
if origMode != mode {