Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2016 17:48:53 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306456 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201609291748.u8THmrLq009684@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Sep 29 17:48:53 2016
New Revision: 306456
URL: https://svnweb.freebsd.org/changeset/base/306456

Log:
  Add #ifdef _KERNEL around send_holes_without_birth_time sysctl.
  
  Reported by:	avg@

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c	Thu Sep 29 17:13:17 2016	(r306455)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c	Thu Sep 29 17:48:53 2016	(r306456)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609291748.u8THmrLq009684>