]> 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)
commit03136bc8586fc132a900a17493dba7706e9c4d51
tree9791790ddbdfd158d9139d7c85a8d44b69ebf42b
parent7af8bce1c0b8eab7ce4e61cb6358280aa42d68d5
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