Skip to content

Mschaara/allow idmap - #13

Merged
mchaarawi merged 2 commits into
masterfrom
mschaara/allow-idmap
Nov 30, 2026
Merged

mchaarawi merged 2 commits into
masterfrom
mschaara/allow-idmap

Conversation

@mchaarawi

Copy link
Copy Markdown

No description provided.

@mchaarawi
mchaarawi requested a review from a team as a code owner November 20, 2026 13:53
wangrzneu and others added 2 commits November 30, 2026 13:45
* fuse: add FUSE_CAP_ALLOW_IDMAP support

Add FUSE_CAP_ALLOW_IDMAP capability flag to indicate that creation of
idmapped mounts is allowed. This maps to the kernel's FUSE_ALLOW_IDMAP
flag.

- Define FUSE_CAP_ALLOW_IDMAP in fuse_common.h using (1ULL << 32) to
  ensure correct behavior on both 32-bit and 64-bit platforms.
- Set the capability in capable_ext when kernel reports FUSE_ALLOW_IDMAP.
- Send FUSE_ALLOW_IDMAP to kernel when userspace sets it in want_ext.
- Add the new FUSE_CAP_ALLOW_IDMAP capability to the printcap example
so it is printed when supported by the kernel.

Signed-off-by: Renzheng Wang <wangrzneu@gmail.com>
[Conflict in example/printcap.c: fused does not have the clang-format of the capability
table, so only the upstream FUSE_CAP_ALLOW_IDMAP line was added.]

(cherry picked from commit 1f4c060)
Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@hpe.com>
Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@hpe.com>
@mchaarawi
mchaarawi force-pushed the mschaara/allow-idmap branch from 9f8855f to bf715b7 Compare November 30, 2026 13:45
@mchaarawi
mchaarawi merged commit 18b7721 into master Nov 30, 2026
6 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants