From 863ef2ca62df17d196f6b9c642b607910b28864f Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 29 Sep 2016 17:48:53 +0000 Subject: [PATCH] Add #ifdef _KERNEL around send_holes_without_birth_time sysctl. Reported by: avg@ --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c index a137214ed9f6..fcd704f31774 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c @@ -42,9 +42,11 @@ int32_t zfs_pd_bytes_max = 50 * 1024 * 1024; /* 50MB */ boolean_t send_holes_without_birth_time = B_TRUE; +#ifdef _KERNEL SYSCTL_DECL(_vfs_zfs); SYSCTL_UINT(_vfs_zfs, OID_AUTO, send_holes_without_birth_time, CTLFLAG_RWTUN, &send_holes_without_birth_time, 0, "Send holes without birth time"); +#endif typedef struct prefetch_data { kmutex_t pd_mtx;