mirror_zfs/tests/zfs-tests/cmd
Rob Norris 1956417b54 mmap_seek: print error code and text on failure
If lseek() returns an unexpected error, it's useful to know the error
code to help connect it to the trouble spot inside the module.

Since the two seek functions should be basically identical, lift them
into a single generic function.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Robert Evans <evansr@google.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17843
2025-10-21 09:50:43 -07:00
..
checksum SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
file FreeBSD: Add posix_fadvise(POSIX_FADV_WILLNEED) support 2025-05-29 09:34:07 -04:00
linux_dos_attributes SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
.gitignore ZTS: test response of various sync methods under different failmodes 2025-08-08 16:42:35 -07:00
badsend.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
btree_test.c Prefer VERIFY0(n) over VERIFY3S(n, ==, 0) 2025-08-07 11:41:32 -07:00
chg_usr_exec.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
clone_mmap_cached.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
clone_mmap_write.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
clonefile.c Multiple printf() size fixes (#17199) 2025-04-01 15:27:03 -07:00
cp_files.c tests: move C test helpers into test cmd 2022-04-01 18:01:39 -07:00
crypto_test.c Fix the build of crypto_test on LP32 architectures 2025-09-10 15:01:37 -07:00
ctime.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
devname2devid.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
dir_rd_update.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
dosmode_readonly_write.c FreeBSD: Reduce divergence from in-tree sources 2023-10-09 13:27:18 -07:00
draid.c test/draid: fix error return 2025-07-22 15:23:47 -07:00
ereports.c events: include zio type in IO error reports 2025-05-30 10:29:29 -04:00
get_diff.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
getversion.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
idmap_util.c everywhere: misc unnecessary var init/update 2025-07-22 15:23:58 -07:00
libzfs_input_check.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
Makefile.am ZTS: test response of various sync methods under different failmodes 2025-08-08 16:42:35 -07:00
manipulate_user_buffer.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mkbusy.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mkfile.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mkfiles.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mktree.c everywhere: misc unnecessary var init/update 2025-07-22 15:23:58 -07:00
mmap_exec.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mmap_ftruncate.c ZTS: mmap_ftruncate test to confirm async writeback behaviour 2025-08-06 09:54:05 -07:00
mmap_libaio.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mmap_seek.c mmap_seek: print error code and text on failure 2025-10-21 09:50:43 -07:00
mmap_sync.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
mmap_write_sync.c ZTS: test response of various sync methods under different failmodes 2025-08-08 16:42:35 -07:00
mmapwrite.c everywhere: misc unnecessary var init/update 2025-07-22 15:23:58 -07:00
nvlist_to_lua.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
readmmap.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
rename_dir.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
renameat2.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
rm_lnkcnt_zero_file.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
send_doall.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
statx.c tests: fix S_IFMT undeclared at statx.c 2025-05-02 17:49:25 -04:00
stride_dd.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
suid_write_to_file.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
threadsappend.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
truncate_test.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
user_ns_exec.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
xattrtest.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zed_fd_spill-zedlet.c Miscellaneous ZTS fixes 2022-09-29 08:56:42 -07:00
zfs_diff-socket.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00