]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: convert to fileattr
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 8 Apr 2021 09:11:19 +0000 (11:11 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 8 Apr 2021 09:11:19 +0000 (11:11 +0200)
commit5ab1e2cac070547cdb063d501952210016132790
tree63919027a49f8230bdd9a0fb4e2e997b1fc0dbc1
parent973dee3f2847237d3b4f2119f4c8def0a831710d
fuse: convert to fileattr

Since fuse just passes ioctl args through to/from server, converting to the
fileattr API is more involved, than most other filesystems.

Both .fileattr_set() and .fileattr_get() need to obtain an open file to
operate on.  The simplest way is with the following sequence:

  FUSE_OPEN
  FUSE_IOCTL
  FUSE_RELEASE

If this turns out to be a performance problem, it could be optimized for
the case when there's already a file (any file) open for the inode.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c
fs/fuse/fuse_i.h
fs/fuse/ioctl.c