public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/3] Fix ioctl_ficlone(range) failures on certain FS
@ 2024-10-01 13:52 Andrea Cervesato
  2024-10-01 13:52 ` [LTP] [PATCH v2 1/3] Filter mkfs version in tst_fs Andrea Cervesato
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andrea Cervesato @ 2024-10-01 13:52 UTC (permalink / raw)
  To: ltp

Filesystems implementing copy-on-write are usually supported by the kernel
from a certain version. This is the case of XFS which carried an
experimental support for CoW from 4.9 until 4.16.
At the same time, some mkfs tools might not support CoW before a certain
version. This is the case of mkfs.xfs < 1.5.0.

For these reasons, this LTP patch series is meant to cover a particular
scenario, where kernel and mkfs tools versions have to be cross-checked
in order to run ioctl_ficlone(range) tests.

Two new flags have been added to the tst_fs struct:
- mkfs_ver: test the mkfs tool version before using it and eventually
  skip test if it's not satisfied
- min_kver: test the minimum kernel version and skip the test if running
  kernel is too old

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- add mkfs_ver
- add min_kver
- fix mkfs.xfs version when using CoW
- fix bcachefs version
- Link to v1: https://lore.kernel.org/r/20240924-ioctl_ficlone01_fix-v1-1-7741e2e13cc2@suse.com

---
Andrea Cervesato (3):
      Filter mkfs version in tst_fs
      Add minimum kernel requirement for FS setup
      Setup minimal kernel for ioctl_clone(range) tests

 include/tst_private.h                              |   6 +-
 include/tst_test.h                                 |   9 ++
 lib/tst_cmd.c                                      | 130 ++++++++++++++++-----
 lib/tst_test.c                                     |  25 ++--
 testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c  |   7 +-
 testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c  |   7 +-
 .../kernel/syscalls/ioctl/ioctl_ficlonerange01.c   |   7 +-
 .../kernel/syscalls/ioctl/ioctl_ficlonerange02.c   |   7 +-
 testcases/lib/tst_run_shell.c                      |  10 ++
 9 files changed, 167 insertions(+), 41 deletions(-)
---
base-commit: 47aff4decc81ac837fd745278def6883fc2f197b
change-id: 20240924-ioctl_ficlone01_fix-88a17ef58543

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-02 11:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 13:52 [LTP] [PATCH v2 0/3] Fix ioctl_ficlone(range) failures on certain FS Andrea Cervesato
2024-10-01 13:52 ` [LTP] [PATCH v2 1/3] Filter mkfs version in tst_fs Andrea Cervesato
2024-10-01 15:12   ` Cyril Hrubis
2024-10-02 11:06     ` Andrea Cervesato via ltp
2024-10-02 11:08       ` Cyril Hrubis
2024-10-01 13:52 ` [LTP] [PATCH v2 2/3] Add minimum kernel requirement for FS setup Andrea Cervesato
2024-10-01 15:29   ` Cyril Hrubis
2024-10-01 13:52 ` [LTP] [PATCH v2 3/3] Setup minimal kernel for ioctl_clone(range) tests Andrea Cervesato
2024-10-01 15:33   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox