From: Christian Brauner <christian.brauner@xxxxxxxxxx> Hey everyone, This is v4 with only a minimal change to getopt_long_only(). The rest is identical. In v3 the changes requested by Christoph and his Reviewed-bys added. I've also added Josef's Reviewed-by for the newly added btrfs specific idmapped mount testsuite. There are no major changes to v2. This time around I've put everyone in To: to make sure that they receive all patches. The list apparently still refues patches if they are fairly huge. The series can be pulled from three locations: git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/brauner/xfstests-dev fs.idmapped.nested_userns git@xxxxxxxxxx:brauner/xfstests.git fs.idmapped.nested_userns git@xxxxxxxxxx:brauner/xfstests.git fs.idmapped.nested_userns This adds three new tests: - a regression test for vfs capabilities - a new test with nested and complex idmapping layouts - a new btrfs specific idmapped mount testsuite Since v2 patches to support idmapped mounts on btrfs have been merged into btrfs' for-next tree: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git/commit/?h=for-next&id=f691ae1e0bc591df5e9897387d726adbb440fc4c and so are on track to be included for v5.15. I'd like to get the btrfs tests merged now so linux-next can be tested with the them. I hope that's ok. I ran: git rebase -i -x "make -j4 clean && make -j4 && sudo ./check -g idmapped" HEAD~8 on the whole series. Everthing passes. Thanks! Christian Christian Brauner (8): idmapped-mounts: use die() helper idmapped-mounts: switch to getopt_long_only() idmapped-mounts: introduce an explicit command line switch for testsuite generic/640: add fscaps regression test idmapped-mounts: refactor helpers idmapped-mounts: add nested userns creation helpers generic/641: add nested user namespace tests btrfs/244: introduce btrfs specific idmapped mounts tests configure.ac | 10 +- src/idmapped-mounts/idmapped-mounts.c | 4747 ++++++++++++++++++++++++- src/idmapped-mounts/mount-idmapped.c | 229 +- src/idmapped-mounts/utils.c | 359 +- src/idmapped-mounts/utils.h | 102 +- tests/btrfs/244 | 34 + tests/btrfs/244.out | 2 + tests/generic/633 | 3 +- tests/generic/640 | 28 + tests/generic/640.out | 2 + tests/generic/641 | 28 + tests/generic/641.out | 2 + 12 files changed, 5231 insertions(+), 315 deletions(-) create mode 100755 tests/btrfs/244 create mode 100644 tests/btrfs/244.out create mode 100755 tests/generic/640 create mode 100644 tests/generic/640.out create mode 100755 tests/generic/641 create mode 100644 tests/generic/641.out base-commit: dad0c0a852d1b10e7da285f29e99397dec0efec1 -- 2.30.2