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))
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to