]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: implement ->tmpfile()
authorMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 05:00:00 +0000 (07:00 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 05:00:00 +0000 (07:00 +0200)
commit3e11b5e9656971cc2d31d4a5575f2399518dde36
tree9791790ddbdfd158d9139d7c85a8d44b69ebf42b
parentae02ff2cd0b7a27cfe07680376fa31189d44a71d
fuse: implement ->tmpfile()

This is basically equivalent to the FUSE_CREATE operation which creates and
opens a regular file.

Add a new FUSE_TMPFILE operation, otherwise just reuse the protocol and the
code for FUSE_CREATE.

Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c
fs/fuse/fuse_i.h
include/uapi/linux/fuse.h