diff options
| author | Alexander Mikhalitsyn <[email protected]> | 2024-09-03 15:16:17 +0000 |
|---|---|---|
| committer | Miklos Szeredi <[email protected]> | 2024-09-04 14:49:28 +0000 |
| commit | 2a8c810d5e492906fe0af94a6e8b2398714e80e0 (patch) | |
| tree | 8d0178d35497a72635d8d60ca450137d35c0e628 /rust/helpers/mutex.c | |
| parent | fuse: support idmap for mkdir/mknod/symlink/create/tmpfile (diff) | |
| download | kernel-2a8c810d5e492906fe0af94a6e8b2398714e80e0.tar.gz kernel-2a8c810d5e492906fe0af94a6e8b2398714e80e0.zip | |
fuse: support idmapped getattr inode op
We have to:
- pass an idmapping to the generic_fillattr()
to properly handle UIG/GID mapping for the userspace.
- pass -/- to fuse_fillattr() (analog of generic_fillattr() in fuse).
Difference between these two is that generic_fillattr() takes all the
stat() data from the inode directly, while fuse_fillattr() codepath takes a
fresh data just from the userspace reply on the FUSE_GETATTR request.
In some cases we can just pass &nop_mnt_idmap, because idmapping won't be
used in these codepaths. For example, when 3rd argument of
fuse_do_getattr() is NULL then idmap argument is not used.
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
