]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
vfs: Add tmpfs tests for idmap mounts
authorRodrigo Campos <rodrigo@sdfg.com.ar>
Tue, 14 Mar 2023 11:45:11 +0000 (12:45 +0100)
committerZorro Lang <zlang@kernel.org>
Tue, 14 Mar 2023 14:52:48 +0000 (22:52 +0800)
commit3f96d37e394228e30a112500f9c660c11922ac9f
treecd56631b29069174ff8f636076335b93211334b8
parent4dd193b59b25b41a6b09641632e13a72e9d636c0
vfs: Add tmpfs tests for idmap mounts

This patch calls all tests in the suite s_idmapped_mounts, but with a
tmpfs directory mounted inside a userns. This directory is setup as the
mount point for the test that runs nested.

This excercises that tmpfs mounted inside a userns works as expected
regarding idmap mounts.

Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/vfs/Makefile
src/vfs/tmpfs-idmapped-mounts.c [new file with mode: 0644]
src/vfs/tmpfs-idmapped-mounts.h [new file with mode: 0644]
src/vfs/utils.h
src/vfs/vfstest.c
tests/tmpfs/001 [new file with mode: 0755]
tests/tmpfs/001.out [new file with mode: 0644]
tests/tmpfs/Makefile [new file with mode: 0644]