]> git.proxmox.com Git - mirror_zfs.git/commit
Adding ZTS test for O_APPEND
authorBrian Atkinson <batkinson@lanl.gov>
Wed, 11 May 2022 15:38:16 +0000 (11:38 -0400)
committerGitHub <noreply@github.com>
Wed, 11 May 2022 15:38:16 +0000 (08:38 -0700)
commitf567d67fdae5819ec25048a8b5d648fc14e6defe
treeba363c6553002896fa361f5383406042c435fce6
parent3ed04d66aa440ee3e2c38d639a26f11d568e387d
Adding ZTS test for O_APPEND

Commit 63b18e4 fixed an issue in zpl_aio_write() to make sure that
kiocb->ki_pos was updated correctly when opening a file with O_APPEND.
Adding a test to verify O_APPEND functionality with lseek can make
sure that all other distros/kernel versions also have the correct
behavior.

Also moved the threadappends_001_pos test into this append test
directory in functional ZTS directory. This way the two append tests
are together for organization purposes.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #13424
16 files changed:
tests/runfiles/common.run
tests/runfiles/sanity.run
tests/test-runner/bin/zts-report.py.in
tests/zfs-tests/cmd/.gitignore
tests/zfs-tests/cmd/Makefile.am
tests/zfs-tests/cmd/file/file_append.c [new file with mode: 0644]
tests/zfs-tests/include/commands.cfg
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/append/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/append/file_append.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/append/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/append/threadsappend_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/threadsappend/.gitignore [deleted file]
tests/zfs-tests/tests/functional/threadsappend/cleanup.ksh [deleted file]
tests/zfs-tests/tests/functional/threadsappend/setup.ksh [deleted file]
tests/zfs-tests/tests/functional/threadsappend/threadsappend_001_pos.ksh [deleted file]