]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Fix the build on FreeBSD 12
authorAlan Somers <asomers@gmail.com>
Mon, 27 Nov 2023 20:58:03 +0000 (13:58 -0700)
committerTony Hutter <hutter2@llnl.gov>
Tue, 28 Nov 2023 23:19:07 +0000 (15:19 -0800)
commit349fb77f1167c287e9d2bf8bab5f1934d8b2672c
tree2e9629ee0a8e80f66e81b030354e97c25c007f6e
parent2a953e0ac928563166ad7caa89e48b8d257724d4
FreeBSD: Fix the build on FreeBSD 12

It was broken for several reasons:
* VOP_UNLOCK lost an argument in 13.0.  So OpenZFS should be using
  VOP_UNLOCK1, but a few direct calls to VOP_UNLOCK snuck in.
* The location of the zlib header moved in 13.0 and 12.1.  We can drop
  support for building on 12.0, which is EoL.
* knlist_init lost an argument in 13.0.  OpenZFS change 9d0887402ba
  assumed 13.0 or later.
* FreeBSD 13.0 added copy_file_range, and OpenZFS change 67a1b037915
  assumed 13.0 or later.

Sponsored-by: Axcient
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #15551
README.md
include/os/freebsd/spl/sys/vnode.h
module/os/freebsd/spl/spl_zlib.c
module/os/freebsd/zfs/event_os.c
module/os/freebsd/zfs/zfs_vnops_os.c