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
This commit is contained in:
Brian Atkinson
2022-05-11 11:38:16 -04:00
committed by GitHub
parent 3ed04d66aa
commit f567d67fda
13 changed files with 296 additions and 25 deletions
+1
View File
@@ -179,6 +179,7 @@ export ZFSTEST_FILES='badsend
devname2devid
dir_rd_update
draid
file_append
file_check
file_trunc
file_write