From: Ruben Kerkhof Date: Mon, 29 Feb 2016 21:16:49 +0000 (+0100) Subject: zfs_arc: 'stolen' was removed after FreeBSD 10.2 X-Git-Tag: collectd-5.5.2~6^2~27^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec371b03a3efaa3dfe57f552fd523b8bc1d52a22;p=collectd.git zfs_arc: 'stolen' was removed after FreeBSD 10.2 Patch taken from FreeBSD port --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 3a54ad8d..65a50b4e 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -171,7 +171,10 @@ static int za_read (void) za_read_derive (ksp, "deleted", "cache_operation", "deleted"); #if __FreeBSD__ za_read_derive (ksp, "allocated","cache_operation", "allocated"); +#if defined(__FreeBSD_version) && (__FreeBSD_version < 1002501) + /* stolen removed from sysctl kstat.zfs.misc.arcstats on FreeBSD 10.2+ */ za_read_derive (ksp, "stolen", "cache_operation", "stolen"); +#endif #endif /* Issue indicators */