mirror_zfs/lib/libspl/include
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
..
os Validate mountpoint on path-based unmount using statx 2025-07-08 22:10:00 -04:00
rpc SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sys ZIL: allow zil_commit() to fail with error 2025-08-08 16:43:09 -07:00
assert.h Cleanup VERIFY() macros (#17163) 2025-04-16 09:01:32 -07:00
atomic.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libgen.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libshare.h 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
statcommon.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
stdlib.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
string.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
umem.h everywhere: misc unnecessary var init/update 2025-07-22 15:23:58 -07:00
unistd.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zone.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00