X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=e1c39372b55c7996eef6fc11d1f24556792e6192;hb=810e8f5d687514841ed0ea445764ccc05e8f5299;hp=1a7613c74a53cec15c7750395edd839220f2788c;hpb=4a91beef540bd6524d52929f9730ff659cdea8a6;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 1a7613c7..e1c39372 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -71,7 +71,7 @@ static int put_zfs_value (kstat_t *ksp, char const *k, value_t v) return 0; } -static long long get_zfs_value(kstat_t *ksp, char *key) +static long long get_zfs_value(kstat_t *ksp, const char *key) { llentry_t *e; value_t *v; @@ -286,8 +286,11 @@ 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 */ za_read_derive (ksp, "mutex_miss", "mutex_operations", "miss");