mirror_zfs/lib/libspl
Rob Norris 967b15b888 ZIL: allow zil_commit() to fail with error
This changes zil_commit() to have an int return, and updates all callers
to check it. There are no corresponding internal changes yet; it will
always return 0.

Since zil_commit() is an indication that the caller _really_ wants the
associated data to be durability stored, I've annotated it with the
__warn_unused_result__ compiler attribute (via __must_check), to emit a
warning if it's ever ussd without doing something with the return code.
I hope this will mean we never misuse it in the future.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17398
2025-08-08 16:43:09 -07:00
..
include ZIL: allow zil_commit() to fail with error 2025-08-08 16:43:09 -07:00
os Validate mountpoint on path-based unmount using statx 2025-07-08 22:10:00 -04:00
assert.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
atomic.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
backtrace.c Support using llvm-libunwind 2025-04-24 13:58:48 -04:00
getexecname.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libspl_impl.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
list.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
Makefile.am libspl: implement ZFS_MODULE_PARAM for userspace 2025-07-15 15:46:51 -07:00
mkdirp.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
page.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
strlcat.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
strlcpy.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
timestamp.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
tunables.c libspl: add API for manipulating tunables 2025-07-15 15:46:58 -07:00