diff --git a/vendor/github.com/jacobsa/fuse/conversions.go b/vendor/github.com/jacobsa/fuse/conversions.go index 7db7bf1fb..1c363c77d 100644 --- a/vendor/github.com/jacobsa/fuse/conversions.go +++ b/vendor/github.com/jacobsa/fuse/conversions.go @@ -140,6 +140,9 @@ func convertInMessage( // opcode is mkdir. But we want the correct mode to go through, so ensure // that os.ModeDir is set. Mode: convertFileMode(in.Mode) | os.ModeDir, + + Uid: inMsg.Header().Uid, + Gid: inMsg.Header().Gid, } case fusekernel.OpMknod: @@ -161,6 +164,8 @@ func convertInMessage( Parent: fuseops.InodeID(inMsg.Header().Nodeid), Name: string(name), Mode: convertFileMode(in.Mode), + Uid: inMsg.Header().Uid, + Gid: inMsg.Header().Gid, } case fusekernel.OpCreate: @@ -182,6 +187,8 @@ func convertInMessage( Parent: fuseops.InodeID(inMsg.Header().Nodeid), Name: string(name), Mode: convertFileMode(in.Mode), + Uid: inMsg.Header().Uid, + Gid: inMsg.Header().Gid, } case fusekernel.OpSymlink: diff --git a/vendor/github.com/jacobsa/fuse/fuseops/ops.go b/vendor/github.com/jacobsa/fuse/fuseops/ops.go index 0196aee75..98d4461e6 100644 --- a/vendor/github.com/jacobsa/fuse/fuseops/ops.go +++ b/vendor/github.com/jacobsa/fuse/fuseops/ops.go @@ -229,6 +229,8 @@ type MkDirOp struct { // The name of the child to create, and the mode with which to create it. Name string Mode os.FileMode + Uid uint32 + Gid uint32 // Set by the file system: information about the inode that was created. // @@ -256,6 +258,8 @@ type MkNodeOp struct { // The name of the child to create, and the mode with which to create it. Name string Mode os.FileMode + Uid uint32 + Gid uint32 // Set by the file system: information about the inode that was created. // @@ -281,6 +285,8 @@ type CreateFileOp struct { // The name of the child to create, and the mode with which to create it. Name string Mode os.FileMode + Uid uint32 + Gid uint32 // Set by the file system: information about the inode that was created. // @@ -308,6 +314,9 @@ type CreateSymlinkOp struct { // The name of the symlink to create. Name string + Uid uint32 + Gid uint32 + // The target of the symlink. Target string