diff options
author | 2024-08-24 09:27:24 +0800 | |
---|---|---|
committer | 2024-09-09 09:41:49 -0400 | |
commit | c24adfa0dfc2754f11d91576eabe188671c97209 (patch) | |
tree | 0e79eaeea0785261faa67ffced77b98c462a6008 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | bcachefs: Annotate struct bch_xattr with __counted_by() (diff) | |
download | wireguard-linux-c24adfa0dfc2754f11d91576eabe188671c97209.tar.xz wireguard-linux-c24adfa0dfc2754f11d91576eabe188671c97209.zip |
bcachefs: support idmap mounts
We enable idmapped mounts for bcachefs. Here, we just pass down
the user_namespace argument from the VFS methods to the relevant
helpers.
The idmap test in bcachefs is as following:
```
1. losetup /dev/loop1 bcachefs.img
2. ./bcachefs format /dev/loop1
3. mount -t bcachefs /dev/loop1 /mnt/bcachefs/
4. ./mount-idmapped --map-mount b:0:1000:1 /mnt/bcachefs /mnt/idmapped1/
ll /mnt/bcachefs
total 2
drwx------. 2 root root 0 Jun 14 14:10 lost+found
-rw-r--r--. 1 root root 1945 Jun 14 14:12 profile
ll /mnt/idmapped1/
total 2
drwx------. 2 1000 1000 0 Jun 14 14:10 lost+found
-rw-r--r--. 1 1000 1000 1945 Jun 14 14:12 profile
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions