[LTP] [PATCH v18 0/3] fsconfig04: Check FSCONFIG_SET_PATH
Wei Gao
wegao@suse.com
Mon Nov 2 03:22:38 CET 2026
v17->v18:
- lib: Add tst_attach_loopdev() to find an unused loop device and attach a
backing file with exponential backoff retry on EBUSY, preventing race
conditions between lookup and attachment.
- newlib_tests: Add unit test verifying tst_attach_loopdev().
- fsconfig04: Update create_and_attach_loopdev() to use tst_attach_loopdev().
Wei Gao (3):
lib: Add tst_attach_loopdev()
newlib_tests: Add tst_attach_loopdev test
fsconfig04: Check FSCONFIG_SET_PATH
include/tst_device.h | 13 ++
lib/newlib_tests/.gitignore | 1 +
lib/newlib_tests/runtest.sh | 1 +
lib/newlib_tests/tst_attach_loopdev.c | 133 ++++++++++++++
lib/tst_device.c | 87 ++++++++-
runtest/syscalls | 1 +
testcases/kernel/syscalls/fsconfig/.gitignore | 1 +
.../kernel/syscalls/fsconfig/fsconfig04.c | 166 ++++++++++++++++++
8 files changed, 395 insertions(+), 8 deletions(-)
create mode 100644 lib/newlib_tests/tst_attach_loopdev.c
create mode 100644 testcases/kernel/syscalls/fsconfig/fsconfig04.c
--
2.55.0
More information about the ltp
mailing list