Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2016 16:27:34 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306030 - head/contrib/netbsd-tests/fs/tmpfs
Message-ID:  <201609201627.u8KGRYZY086591@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Sep 20 16:27:34 2016
New Revision: 306030
URL: https://svnweb.freebsd.org/changeset/base/306030

Log:
  Port vnode_leak_test:main to FreeBSD
  
  Use a simpler way of dumping kern.maxvnodes, i.e. `sysctl -n kern.maxvnodes`
  
  The awk filtering method employed in NetBSD doesn't work on FreeBSD
  
  MFC after:	1 month
  Sponsored by:	Dell EMC Isilon

Modified:
  head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh

Modified: head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh
==============================================================================
--- head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh	Tue Sep 20 16:24:22 2016	(r306029)
+++ head/contrib/netbsd-tests/fs/tmpfs/t_vnode_leak.sh	Tue Sep 20 16:27:34 2016	(r306030)
@@ -36,7 +36,15 @@ main_head() {
 }
 main_body() {
 	echo "Lowering kern.maxvnodes to 2000"
+	# Begin FreeBSD
+	if true; then
+		sysctl -n kern.maxvnodes > oldvnodes
+	else
+	# End FreeBSD
 	sysctl kern.maxvnodes | awk '{ print $3; }' >oldvnodes
+	# Begin FreeBSD
+	fi
+	# End FreeBSD
 	atf_check -s eq:0 -o ignore -e empty sysctl -w kern.maxvnodes=2000
 
 	test_mount -o -s$(((4000 + 2) * 4096))



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