]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/ublk: add filesystem fio verify test for shmem_zc
authorMing Lei <ming.lei@redhat.com>
Tue, 31 Mar 2026 15:32:00 +0000 (23:32 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Apr 2026 13:42:23 +0000 (07:42 -0600)
commit12075992c62ee330b2c531fa066b19be21698115
tree2581bbc2c340fb61d833f2c760b9cd8a4796abcc
parentd4866503324c062f70dddfdd2e59957d335fc230
selftests/ublk: add filesystem fio verify test for shmem_zc

Add test_shmemzc_03.sh which exercises shmem_zc through the full
filesystem stack: mkfs ext4 on the ublk device, mount it, then run
fio verify on a file inside the filesystem with --mem=mmaphuge.

Extend _mkfs_mount_test() to accept an optional command that runs
between mount and umount. The function cd's into the mount directory
so the command can use relative file paths. Existing callers that
pass only the device are unaffected.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://patch.msgid.link/20260331153207.3635125-10-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_common.sh
tools/testing/selftests/ublk/test_shmemzc_03.sh [new file with mode: 0755]