diff options
author | Jakob Unterwurzacher | 2020-07-11 19:23:04 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-11 19:23:04 +0200 |
commit | b971c75e67c26b126a64ab8b00f416b3b573f194 (patch) | |
tree | 2413772e19270621ff31bcaf939e7d73062fb276 /internal/fusefrontend/node_dir_ops.go | |
parent | 855b4a95b794b9905c68afff2863138461a4be3a (diff) |
v2api: implement Mknod
Diffstat (limited to 'internal/fusefrontend/node_dir_ops.go')
-rw-r--r-- | internal/fusefrontend/node_dir_ops.go | 10 |
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 { |