Add ioctl_ficlone04 test
PATCH v5 1/1 Add ioctl_ficlone04 test
From: Andrea Cervesato <[email protected]>
This test verifies that ioctl() FICLONE/FICLONERANGE feature raises the right error according with bad file descriptors.
---
This testing suite is testing ioctl() FICLONE and FICLONERANGE functionalities. In particular, file clone and error codes.
---
Changes in v5:
- ioctl_ficlone04: TINFO on skip message, fix mail between <>
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- ioctl_ficlone04: add EPERM and EOPNOTSUP
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- ioctl_ficlone04: use a generic array for expected errors
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- add fallback definitions
- algorithm steps using '-'
- avoid assigning -1 to file descriptors after close()
- use SAFE_UNLINK() instead of remove()
- enable both xfs and btrs for all tests
- Link to v1: https://lore.kernel.org/r/[email protected]
--- testcases/kernel/syscalls/ioctl/.gitignore | 1 + testcases/kernel/syscalls/ioctl/ioctl_ficlone04.c | 52 +++++++++++++++++++++++ 2 files changed, 53 insertions(+)
testcases/kernel/syscalls/ioctl/.gitignore +1 -0
@@ -25,5 +25,6 @@ /ioctl_ficlone01 /ioctl_ficlone02 /ioctl_ficlone03 +/ioctl_ficlone04 /ioctl_ficlonerange01 /ioctl_ficlonerange02
testcases/kernel/syscalls/ioctl/ioctl_ficlone04.c new file +52 -0
52 lines not on this page · raw message
---
base-commit: 8422d4680b21e6576da63c677b5d49f46b477df0
change-id: 20240529-ioctl_ficlone-95c603f71d53
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Quoted 3 lines · Cyril Hrubis
Hi!
Reviewed-by Cyril Hrubis <[email protected]>
Pushed!
Thanks,
Andrea
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp