opnsense-src/cddl
Alan Somers 792ad4676b zfsd: Use vdev prop values for fault/degrade thresholds
ZED uses vdev props for setting disk fault/degrade thresholds, this
patch enables zfsd to use the same vdev props for these same tasks.

OpenZFS on Linux is using vdev props for ZED disk fault/degrade
thresholds. Originally the thresholds supported were for io and checksum
events and recently this was updated to process slow io events as
well, see
cbe882298e

This patch enables us to use the same vdev props in zfsd as ZED uses.
After this patch is merged both OSs will use the same vdev props to set
retirement thresholds.

It's probably important to note that the threshold defaults are
different between OS. I've kept the existing defaults inside zfsd and
DID NOT match them to what ZED does.

Differential Revision: https://reviews.freebsd.org/D44043
Relnotes:	yes
Reviewed by:	asomers, allanjude
Sponsored by:	Axcient
Submitted by:	Alek Pinchuk <apinchuk@axcient.com>

(cherry picked from commit 89f4f91dbfdcabe65bc7476bc5f13dfb837870fe)

zfsd: fix unit tests after 89f4f91dbfdcabe65bc7476bc5f13dfb837870fe

Reported by:	markj
Sponsored by:	Axcient
Reviewed by:	Alek Pinchuk <pinchuk.alek@gmail.com>
Differential Revision: https://reviews.freebsd.org/D44744

(cherry picked from commit 25038e8de6b4e5f2ffca821565b50a633eea499a)
2024-05-09 11:47:00 -06:00
..
compat/opensolaris Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
contrib/opensolaris dtrace: Add the 'oformat' libdtrace option 2024-04-15 10:05:13 -04:00
lib zfs: merge openzfs/zfs@256659204 (zfs-2.2-release) into stable/14 2024-05-03 23:52:01 +02:00
sbin Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
share zfs: update share/zfs/compatibility.d to match current ZFS code 2023-09-24 10:27:38 +02:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
usr.bin Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
usr.libexec zfs: merge openzfs/zfs@55dd24c4c (zfs-2.2-release) into stable/14 2023-11-22 12:43:59 +01:00
usr.sbin zfsd: Use vdev prop values for fault/degrade thresholds 2024-05-09 11:47:00 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00