opnsense-src/cddl/usr.sbin/zfsd/tests
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 89f4f91dbf)

zfsd: fix unit tests after 89f4f91dbf

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 25038e8de6)
2024-05-09 11:47:00 -06:00
..
libmocks.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libmocks.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
zfsd_unittest.cc zfsd: Use vdev prop values for fault/degrade thresholds 2024-05-09 11:47:00 -06:00
zfsd_unittest.supp Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00