Skip to contentSkip to conversation

Add ioctl_ficlone04 test

PATCH In review Andrea Cervesato 3 participants 3 messages Aug 1, 2024 – Aug 2, 2024

lore
Share & tools
lore
#0 lore raw

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
index 9f995b1ad..1f099ff95 100644
@@ -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