public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/5] Add LVM and NFS tests for file data integrity
@ 2024-11-01 14:11 Martin Doucha
  2024-11-01 14:11 ` [LTP] [PATCH 1/5] Move preadv()/pwritev() backup definitions to LAPI Martin Doucha
                   ` (4 more replies)
  0 siblings, 5 replies; 25+ messages in thread
From: Martin Doucha @ 2024-11-01 14:11 UTC (permalink / raw)
  To: ltp

Most of the existing read/write tests don't verify whether the data written
to the filesystem can also be correctly read back. Add a new reusable test
program that will check file data integrity. The test randomly switches
between multiple read/write syscalls and allows setting direct (unbuffered)
I/O mode independently for read or write operations.

Also enable the new test in LVM and NFS runfiles with all combinations
of direct and buffered I/O operations.

Martin Doucha (5):
  Move preadv()/pwritev() backup definitions to LAPI
  Add safe readv()/writev() functions
  Add test for file data integrity
  Add support for setting loop device size in shell tests
  Add test for data integrity over NFS

 doc/developers/writing_tests.rst              |   2 +-
 include/lapi/pwritev2.h                       |  26 --
 include/lapi/{preadv2.h => uio.h}             |  30 +-
 include/tst_safe_macros.h                     |  13 +
 include/tst_safe_prw.h                        |  58 ++++
 lib/tst_safe_macros.c                         |  45 +++
 runtest/net.nfs                               |  11 +
 testcases/kernel/fs/fsplough/.gitignore       |   1 +
 testcases/kernel/fs/fsplough/Makefile         |   8 +
 testcases/kernel/fs/fsplough/fsplough.c       | 279 ++++++++++++++++++
 testcases/kernel/syscalls/preadv/preadv.h     |  22 --
 testcases/kernel/syscalls/preadv/preadv01.c   |   2 +-
 testcases/kernel/syscalls/preadv/preadv02.c   |   2 +-
 testcases/kernel/syscalls/preadv/preadv03.c   |   2 +-
 testcases/kernel/syscalls/preadv2/preadv201.c |   2 +-
 testcases/kernel/syscalls/preadv2/preadv202.c |   2 +-
 testcases/kernel/syscalls/preadv2/preadv203.c |   2 +-
 testcases/kernel/syscalls/pwritev/pwritev.h   |  22 --
 testcases/kernel/syscalls/pwritev/pwritev01.c |   2 +-
 testcases/kernel/syscalls/pwritev/pwritev02.c |   2 +-
 testcases/kernel/syscalls/pwritev/pwritev03.c |   2 +-
 .../kernel/syscalls/pwritev2/pwritev201.c     |   2 +-
 .../kernel/syscalls/pwritev2/pwritev202.c     |   2 +-
 testcases/lib/tst_test.sh                     |   3 +-
 testcases/misc/lvm/datafiles/runfile.tpl      |   4 +
 testcases/network/nfs/nfs_stress/nfs10.sh     |  36 +++
 26 files changed, 498 insertions(+), 84 deletions(-)
 delete mode 100644 include/lapi/pwritev2.h
 rename include/lapi/{preadv2.h => uio.h} (50%)
 create mode 100644 testcases/kernel/fs/fsplough/.gitignore
 create mode 100644 testcases/kernel/fs/fsplough/Makefile
 create mode 100644 testcases/kernel/fs/fsplough/fsplough.c
 delete mode 100644 testcases/kernel/syscalls/preadv/preadv.h
 delete mode 100644 testcases/kernel/syscalls/pwritev/pwritev.h
 create mode 100755 testcases/network/nfs/nfs_stress/nfs10.sh

-- 
2.46.0


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

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

end of thread, other threads:[~2024-12-04 14:40 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 14:11 [LTP] [PATCH 0/5] Add LVM and NFS tests for file data integrity Martin Doucha
2024-11-01 14:11 ` [LTP] [PATCH 1/5] Move preadv()/pwritev() backup definitions to LAPI Martin Doucha
2024-11-01 22:40   ` Petr Vorel
2024-11-01 14:11 ` [LTP] [PATCH 2/5] Add safe readv()/writev() functions Martin Doucha
2024-11-01 14:11 ` [LTP] [PATCH 3/5] Add test for file data integrity Martin Doucha
2024-12-04 13:45   ` Cyril Hrubis
2024-12-04 14:39     ` Martin Doucha
2024-11-01 14:11 ` [LTP] [PATCH 4/5] Add support for setting loop device size in shell tests Martin Doucha
2024-11-01 22:45   ` Petr Vorel
2024-11-28  8:19     ` Petr Vorel
2024-11-01 14:11 ` [LTP] [PATCH 5/5] Add test for data integrity over NFS Martin Doucha
2024-11-01 23:32   ` Petr Vorel
2024-11-04 13:05     ` Cyril Hrubis
2024-11-04 13:19       ` Cyril Hrubis
2024-11-04 13:32         ` Cyril Hrubis
2024-11-04 15:59           ` Petr Vorel
2024-11-12 21:23             ` Petr Vorel
2024-11-13 13:44               ` Cyril Hrubis
2024-11-04 14:16       ` Petr Vorel
2024-11-12 12:50     ` Martin Doucha
2024-11-12 21:40       ` Petr Vorel
2024-11-13 14:02         ` Martin Doucha
2024-11-13 14:50           ` Petr Vorel
2024-11-13 13:48       ` Cyril Hrubis
2024-11-28  8:27     ` Petr Vorel

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