]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Parameterize ZFS_ENTER/ZFS_VERIFY_VP with an error code
authorMark Johnston <markj@FreeBSD.org>
Thu, 7 Apr 2022 21:11:00 +0000 (17:11 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Apr 2022 16:42:51 +0000 (09:42 -0700)
commite9084d071226b2b8b5c44d9bd781b9632dc68227
tree13e92d69443674633a8ffa81bc5fdde09648d591
parent35d81a75a8c13e011e19fd12cf553d9c5849386e
FreeBSD: Parameterize ZFS_ENTER/ZFS_VERIFY_VP with an error code

For legacy reasons, a couple of VOPs have to return error numbers that
don't come from the usual errno namespace.  To handle the cases where
ZFS_ENTER or ZFS_VERIFY_ZP fail, we need to be able to override the
default error return value of EIO.  Extend the macros to permit this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #13311
include/os/freebsd/zfs/sys/zfs_znode_impl.h
module/os/freebsd/zfs/zfs_vnops_os.c