Skip to content

Extend idmapped mount testsuite

Christian Brauner fstests linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 4 repliesIn review
  2. v38 patches 4 repliesSuperseded
  3. v26 patches 7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8idmapped-mounts: use die() helpersrc/idmapped-mounts/idmapped-mounts.c+2 -40 replies
2/8idmapped-mounts: switch to getopt_long_only()src/idmapped-mounts/idmapped-mounts.c+6 -31 reply
3/8idmapped-mounts: introduce an explicit command line switch for testsuitesrc/idmapped-mounts/idmapped-mounts.c tests/generic/633+10 -40 replies
4/8generic/640: add fscaps regression testsrc/idmapped-mounts/idmapped-mounts.c tests/generic/640 tests/generic/640.out+174 -150 replies
5/8idmapped-mounts: refactor helperssrc/idmapped-mounts/mount-idmapped.c src/idmapped-mounts/utils.c src/idmapped-mounts/utils.h+223 -2560 replies
6/8idmapped-mounts: add nested userns creation helperssrc/idmapped-mounts/idmapped-mounts.c src/idmapped-mounts/mount-idmapped.c src/idmapped-mounts/utils.c +1 more+185 -460 replies
7/8generic/641: add nested user namespace testssrc/idmapped-mounts/idmapped-mounts.c src/idmapped-mounts/utils.h tests/generic/641 +1 more+757 -10 replies
8/8btrfs/244: introduce btrfs specific idmapped mounts testsconfigure.ac src/idmapped-mounts/idmapped-mounts.c tests/btrfs/244 +1 more+3890 -20 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJosef Bacik
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/8] Extend idmapped mount testsuite

From: Christian Brauner <[email protected]>

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:

[email protected]:pub/scm/linux/kernel/git/brauner/xfstests-dev fs.idmapped.nested_userns [email protected]:brauner/xfstests.git fs.idmapped.nested_userns [email protected]: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

Signature · 1 line
2.30.2