diff options
author | Chao Yu | 2022-02-04 13:24:56 +0800 |
---|---|---|
committer | Jaegeuk Kim | 2022-02-12 06:20:46 -0800 |
commit | 984fc4e76d63345499f01c0c198a4b44860cf027 (patch) | |
tree | 636e0dd2d676e883f7bc57c45e83c0422679f2de /fs/gfs2 | |
parent | 47c8ebcce85ed7113e9e3e3f1d8c6374fa87848e (diff) |
f2fs: support idmapped mounts
This patch enables idmapped mounts for f2fs, since all dedicated helpers
for this functionality existsm, so, in this patch we just pass down the
user_namespace argument from the VFS methods to the relevant helpers.
Simple idmap example on f2fs image:
1. truncate -s 128M f2fs.img
2. mkfs.f2fs f2fs.img
3. mount f2fs.img /mnt/f2fs/
4. touch /mnt/f2fs/file
5. ls -ln /mnt/f2fs/
total 0
-rw-r--r-- 1 0 0 0 2月 4 13:17 file
6. ./mount-idmapped --map-mount b:0:1001:1 /mnt/f2fs/ /mnt/scratch_f2fs/
7. ls -ln /mnt/scratch_f2fs/
total 0
-rw-r--r-- 1 1001 1001 0 2月 4 13:17 file
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions