Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Apr 2010 02:28:24 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r206719 - in user/jmallett/octeon: . contrib/netcat etc etc/mtree etc/rc.d lib/libc/gen lib/libc/sys lib/libz sbin/geom/misc sbin/hastd sbin/ifconfig share/man/man4 sys/cam/scsi sys/cdd...
Message-ID:  <201004170228.o3H2SPVL019617@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Sat Apr 17 02:28:24 2010
New Revision: 206719
URL: http://svn.freebsd.org/changeset/base/206719

Log:
  Merge from head.

Modified:
  user/jmallett/octeon/ObsoleteFiles.inc
  user/jmallett/octeon/contrib/netcat/nc.1
  user/jmallett/octeon/contrib/netcat/netcat.c
  user/jmallett/octeon/etc/mtree/BSD.include.dist
  user/jmallett/octeon/etc/rc.d/Makefile
  user/jmallett/octeon/etc/rc.subr
  user/jmallett/octeon/lib/libc/gen/fnmatch.c
  user/jmallett/octeon/lib/libc/sys/sigaction.2
  user/jmallett/octeon/lib/libz/ChangeLog
  user/jmallett/octeon/lib/libz/README
  user/jmallett/octeon/lib/libz/Symbol.map
  user/jmallett/octeon/lib/libz/deflate.c
  user/jmallett/octeon/lib/libz/gzguts.h
  user/jmallett/octeon/lib/libz/gzlib.c
  user/jmallett/octeon/lib/libz/inftrees.c
  user/jmallett/octeon/lib/libz/minigzip.c
  user/jmallett/octeon/lib/libz/zconf.h
  user/jmallett/octeon/lib/libz/zlib.3
  user/jmallett/octeon/lib/libz/zlib.h
  user/jmallett/octeon/lib/libz/zutil.h
  user/jmallett/octeon/sbin/geom/misc/subr.c
  user/jmallett/octeon/sbin/hastd/hastd.c
  user/jmallett/octeon/sbin/hastd/pjdlog.c
  user/jmallett/octeon/sbin/hastd/primary.c
  user/jmallett/octeon/sbin/ifconfig/ifconfig.c
  user/jmallett/octeon/share/man/man4/ktr.4
  user/jmallett/octeon/share/man/man4/netintro.4
  user/jmallett/octeon/sys/cam/scsi/scsi_cd.c
  user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
  user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
  user/jmallett/octeon/sys/ddb/db_sym.c
  user/jmallett/octeon/sys/dev/hwpmc/hwpmc_core.c
  user/jmallett/octeon/sys/dev/hwpmc/pmc_events.h
  user/jmallett/octeon/sys/dev/ixgbe/ixgbe.c
  user/jmallett/octeon/sys/dev/mxge/if_mxge.c
  user/jmallett/octeon/sys/dev/mxge/if_mxge_var.h
  user/jmallett/octeon/sys/dev/sge/if_sge.c
  user/jmallett/octeon/sys/dev/siis/siis.c
  user/jmallett/octeon/sys/dev/usb/input/ukbd.c
  user/jmallett/octeon/sys/fs/devfs/devfs_devs.c
  user/jmallett/octeon/sys/fs/devfs/devfs_int.h
  user/jmallett/octeon/sys/fs/nfs/nfs_commonport.c
  user/jmallett/octeon/sys/fs/nfs/nfsclstate.h
  user/jmallett/octeon/sys/fs/nfsclient/nfs_clport.c
  user/jmallett/octeon/sys/fs/nfsclient/nfs_clrpcops.c
  user/jmallett/octeon/sys/fs/nfsclient/nfs_clstate.c
  user/jmallett/octeon/sys/geom/eli/g_eli.c
  user/jmallett/octeon/sys/geom/geom_io.c
  user/jmallett/octeon/sys/kern/kern_ktr.c
  user/jmallett/octeon/sys/kern/vfs_cache.c
  user/jmallett/octeon/sys/mips/include/profile.h
  user/jmallett/octeon/sys/mips/mips/mem.c
  user/jmallett/octeon/sys/mips/mips/trap.c
  user/jmallett/octeon/sys/net/if.c
  user/jmallett/octeon/sys/net/vnet.c
  user/jmallett/octeon/sys/net/vnet.h
  user/jmallett/octeon/sys/netipsec/key.c
  user/jmallett/octeon/tools/regression/lib/libc/gen/Makefile
  user/jmallett/octeon/usr.bin/indent/lexi.c
  user/jmallett/octeon/usr.sbin/config/config.h
  user/jmallett/octeon/usr.sbin/config/mkoptions.c
  user/jmallett/octeon/usr.sbin/pmcstat/pmcpl_callgraph.c
  user/jmallett/octeon/usr.sbin/pmcstat/pmcpl_gprof.c
  user/jmallett/octeon/usr.sbin/pmcstat/pmcstat_log.c
Directory Properties:
  user/jmallett/octeon/   (props changed)
  user/jmallett/octeon/lib/libz/   (props changed)
  user/jmallett/octeon/sys/contrib/x86emu/   (props changed)

Modified: user/jmallett/octeon/ObsoleteFiles.inc
==============================================================================
--- user/jmallett/octeon/ObsoleteFiles.inc	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/ObsoleteFiles.inc	Sat Apr 17 02:28:24 2010	(r206719)
@@ -14,6 +14,18 @@
 # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last.
 #
 
+# 20100416: [mips] removed <machine/psl.h>
+.if ${TARGET_ARCH} == "mips"
+OLD_FILES+=usr/include/machine/psl.h
+.endif
+# 20100415: [mips] removed unused headers
+.if ${TARGET_ARCH} == "mips"
+OLD_FILES+=usr/include/machine/archtype.h
+OLD_FILES+=usr/include/machine/segments.h
+OLD_FILES+=usr/include/machine/rm7000.h
+OLD_FILES+=usr/include/machine/defs.h
+OLD_FILES+=usr/include/machine/queue.h
+.endif
 # 20100326: [ia64] removed <machine/nexusvar.h>
 .if ${TARGET_ARCH} == "ia64"
 OLD_FILES+=usr/include/machine/nexusvar.h

Modified: user/jmallett/octeon/contrib/netcat/nc.1
==============================================================================
--- user/jmallett/octeon/contrib/netcat/nc.1	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/contrib/netcat/nc.1	Sat Apr 17 02:28:24 2010	(r206719)
@@ -27,7 +27,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd February 23, 2010
+.Dd April 15, 2010
 .Dt NC 1
 .Os
 .Sh NAME
@@ -36,7 +36,7 @@
 .Sh SYNOPSIS
 .Nm nc
 .Bk -words
-.Op Fl 46DdEhklnorStUuvz
+.Op Fl 46DdEhklnrStUuvz
 .Op Fl e Ar IPsec_policy
 .Op Fl I Ar length
 .Op Fl i Ar interval
@@ -159,15 +159,6 @@ socket option.
 .It Fl O Ar length
 Specifies the size of the TCP send buffer.
 When
-.It Fl o
-.Dq Once-only mode .
-By default,
-.Nm
-does not terminate on EOF condition on input,
-but continues until the network side has been closed down.
-Specifying
-.Fl o
-will make it terminate on EOF as well.
 .It Fl P Ar proxy_username
 Specifies a username to present to a proxy server that requires authentication.
 If no username is specified then authentication will not be attempted.

Modified: user/jmallett/octeon/contrib/netcat/netcat.c
==============================================================================
--- user/jmallett/octeon/contrib/netcat/netcat.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/contrib/netcat/netcat.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -72,14 +72,12 @@
 #define PORT_MAX_LEN	6
 
 /* Command Line Options */
-int	Eflag;					/* Use IPsec ESP */
 int	dflag;					/* detached, no stdin */
 unsigned int iflag;				/* Interval Flag */
 int	jflag;					/* use jumbo frames if we can */
 int	kflag;					/* More than one connect */
 int	lflag;					/* Bind to local port */
 int	nflag;					/* Don't do name look up */
-int	oflag;					/* Once only: stop on EOF */
 int	FreeBSD_Oflag;				/* Do not use TCP options */
 char   *Pflag;					/* Proxy username */
 char   *pflag;					/* Localport flag */
@@ -151,7 +149,7 @@ main(int argc, char *argv[])
 	sv = NULL;
 
 	while ((ch = getopt_long(argc, argv,
-	    "46DdEe:hI:i:jklnO:oP:p:rSs:tT:UuV:vw:X:x:z",
+	    "46DdEe:hI:i:jklnoO:P:p:rSs:tT:UuV:vw:X:x:z",
 	    longopts, NULL)) != -1) {
 		switch (ch) {
 		case '4':
@@ -214,7 +212,7 @@ main(int argc, char *argv[])
 			nflag = 1;
 			break;
 		case 'o':
-			oflag = 1;
+			fprintf(stderr, "option -o is deprecated.\n");
 			break;
 		case 'P':
 			Pflag = optarg;
@@ -282,8 +280,6 @@ main(int argc, char *argv[])
 		case 'T':
 			Tflag = parse_iptos(optarg);
 			break;
-		case 0:
-			break;
 		default:
 			usage(1);
 		}
@@ -574,10 +570,8 @@ remote_connect(const char *host, const c
 		if (sflag || pflag) {
 			struct addrinfo ahints, *ares;
 
-#ifdef SO_BINDANY
-			/* try SO_BINDANY, but don't insist */
-			setsockopt(s, SOL_SOCKET, SO_BINDANY, &on, sizeof(on));
-#endif
+			/* try IP_BINDANY, but don't insist */
+			setsockopt(s, IPPROTO_IP, IP_BINDANY, &on, sizeof(on));
 			memset(&ahints, 0, sizeof(struct addrinfo));
 			ahints.ai_family = res0->ai_family;
 			ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;
@@ -729,10 +723,9 @@ readwrite(int nfd)
 		}
 
 		if (!dflag && pfd[1].revents & POLLIN) {
-			if ((n = read(wfd, buf, plen)) < 0 ||
-			    (oflag && n == 0)) {
+			if ((n = read(wfd, buf, plen)) < 0)
 				return;
-			} else if (n == 0) {
+			else if (n == 0) {
 				shutdown(nfd, SHUT_WR);
 				pfd[1].fd = -1;
 				pfd[1].events = 0;
@@ -945,7 +938,6 @@ help(void)
 	\t-n		Suppress name/port resolutions\n\
 	\t--no-tcpopt	Disable TCP options\n\
 	\t-O length	TCP send buffer length\n\
-	\t-o		Terminate on EOF on input\n\
 	\t-P proxyuser\tUsername for proxy authentication\n\
 	\t-p port\t	Specify local port for remote connects\n\
 	\t-r		Randomize remote ports\n\
@@ -995,9 +987,9 @@ usage(int ret)
 {
 	fprintf(stderr,
 #ifdef IPSEC
-	    "usage: nc [-46DdEhklnorStUuvz] [-e policy] [-I length] [-i interval] [-O length]\n"
+	    "usage: nc [-46DdEhklnrStUuvz] [-e policy] [-I length] [-i interval] [-O length]\n"
 #else
-	    "usage: nc [-46DdhklnorStUuvz] [-I length] [-i interval] [-O length]\n"
+	    "usage: nc [-46DdhklnrStUuvz] [-I length] [-i interval] [-O length]\n"
 #endif
 	    "\t  [-P proxy_username] [-p source_port] [-s source_ip_address] [-T ToS]\n"
 	    "\t  [-V fib] [-w timeout] [-X proxy_protocol]\n"

Modified: user/jmallett/octeon/etc/mtree/BSD.include.dist
==============================================================================
--- user/jmallett/octeon/etc/mtree/BSD.include.dist	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/etc/mtree/BSD.include.dist	Sat Apr 17 02:28:24 2010	(r206719)
@@ -104,8 +104,8 @@
         ..
         lmc
         ..
-	mfi
-	..
+        mfi
+        ..
         mpt
             mpilib
             ..

Modified: user/jmallett/octeon/etc/rc.d/Makefile
==============================================================================
--- user/jmallett/octeon/etc/rc.d/Makefile	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/etc/rc.d/Makefile	Sat Apr 17 02:28:24 2010	(r206719)
@@ -50,6 +50,10 @@ FILES+=	sshd
 FILES+= nscd
 .endif
 
+.if ${MK_BLUETOOTH} != "no"
+FILES+=	ubthidhci
+.endif
+
 FILESDIR=	/etc/rc.d
 FILESMODE=	${BINMODE}
 

Modified: user/jmallett/octeon/etc/rc.subr
==============================================================================
--- user/jmallett/octeon/etc/rc.subr	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/etc/rc.subr	Sat Apr 17 02:28:24 2010	(r206719)
@@ -646,12 +646,12 @@ run_rc_command()
 		if [ "$_elem" != "$rc_arg" ]; then
 			continue
 		fi
-					# if ${rcvar} is set, and $1 is not
-					# "rcvar", then run
+					# if ${rcvar} is set, $1 is not "rcvar"
+					# and ${rc_pid} is not set, then run
 					#	checkyesno ${rcvar}
 					# and return if that failed
 					#
-		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" ]; then
+		if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a -z "${rc_pid}" ]; then
 			if ! checkyesno ${rcvar}; then
 				if [ -n "${rc_quiet}" ]; then
 					return 0

Modified: user/jmallett/octeon/lib/libc/gen/fnmatch.c
==============================================================================
--- user/jmallett/octeon/lib/libc/gen/fnmatch.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libc/gen/fnmatch.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -67,7 +67,8 @@ __FBSDID("$FreeBSD$");
 #define RANGE_ERROR     (-1)
 
 static int rangematch(const char *, wchar_t, int, char **, mbstate_t *);
-static int fnmatch1(const char *, const char *, int, mbstate_t, mbstate_t);
+static int fnmatch1(const char *, const char *, const char *, int, mbstate_t,
+		mbstate_t);
 
 int
 fnmatch(pattern, string, flags)
@@ -76,22 +77,21 @@ fnmatch(pattern, string, flags)
 {
 	static const mbstate_t initial;
 
-	return (fnmatch1(pattern, string, flags, initial, initial));
+	return (fnmatch1(pattern, string, string, flags, initial, initial));
 }
 
 static int
-fnmatch1(pattern, string, flags, patmbs, strmbs)
-	const char *pattern, *string;
+fnmatch1(pattern, string, stringstart, flags, patmbs, strmbs)
+	const char *pattern, *string, *stringstart;
 	int flags;
 	mbstate_t patmbs, strmbs;
 {
-	const char *stringstart;
 	char *newp;
 	char c;
 	wchar_t pc, sc;
 	size_t pclen, sclen;
 
-	for (stringstart = string;;) {
+	for (;;) {
 		pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs);
 		if (pclen == (size_t)-1 || pclen == (size_t)-2)
 			return (FNM_NOMATCH);
@@ -145,8 +145,8 @@ fnmatch1(pattern, string, flags, patmbs,
 
 			/* General case, use recursion. */
 			while (sc != EOS) {
-				if (!fnmatch1(pattern, string,
-				    flags & ~FNM_PERIOD, patmbs, strmbs))
+				if (!fnmatch1(pattern, string, stringstart,
+				    flags, patmbs, strmbs))
 					return (0);
 				sclen = mbrtowc(&sc, string, MB_LEN_MAX,
 				    &strmbs);

Modified: user/jmallett/octeon/lib/libc/sys/sigaction.2
==============================================================================
--- user/jmallett/octeon/lib/libc/sys/sigaction.2	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libc/sys/sigaction.2	Sat Apr 17 02:28:24 2010	(r206719)
@@ -496,6 +496,16 @@ or
 .Dv SIG_IGN
 this way.
 .Pp
+If preprocessing symbol
+.Va _POSIX_C_SOURCE
+with the value >= 199309 is not defined, the following declaration for
+the handler shall be used:
+.Bl -tag -offset indent -width short
+.It Tn POSIX Dv SA_SIGINFO :
+.Ft void
+.Fn handler int "struct __sigaction *" "void *" ;
+.El
+.Pp
 If the
 .Dv SA_SIGINFO
 flag is not set, the handler function should match

Modified: user/jmallett/octeon/lib/libz/ChangeLog
==============================================================================
--- user/jmallett/octeon/lib/libz/ChangeLog	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/ChangeLog	Sat Apr 17 02:28:24 2010	(r206719)
@@ -1,6 +1,34 @@
 
                 ChangeLog file for zlib
 
+Changes in 1.2.4.3 (10 Apr 2010)
+- Only use CROSS_PREFIX in configure for ar and ranlib if they exist
+- Use CROSS_PREFIX for nm [Bar-Lev]
+- Assume _LARGEFILE64_SOURCE defined is equivalent to true
+- Avoid use of undefined symbols in #if with && and ||
+- Make *64 prototypes in gzguts.h consistent with functions
+- Add -shared load option for MinGW in configure [Bowler]
+- Move z_off64_t to public interface, use instead of off64_t
+- Remove ! from shell test in configure (not portable to Solaris)
+- Change +0 macro tests to -0 for possibly increased portability
+
+Changes in 1.2.4.2 (9 Apr 2010)
+- Add consistent carriage returns to readme.txt's in masmx86 and masmx64
+- Really provide prototypes for *64 functions when building without LFS
+- Only define unlink() in minigzip.c if unistd.h not included
+- Update README to point to contrib/vstudio project files
+- Move projects/vc6 to old/ and remove projects/
+- Include stdlib.h in minigzip.c for setmode() definition under WinCE
+- Clean up assembler builds in win32/Makefile.msc [Rowe]
+- Include sys/types.h for Microsoft for off_t definition
+- Fix memory leak on error in gz_open()
+- Symbolize nm as $NM in configure [Weigelt]
+- Use TEST_LDSHARED instead of LDSHARED to link test programs [Weigelt]
+- Add +0 to _FILE_OFFSET_BITS and _LFS64_LARGEFILE in case not defined
+- Fix bug in gzeof() to take into account unused input data
+- Avoid initialization of structures with variables in puff.c
+- Updated win32/README-WIN32.txt [Rowe]
+
 Changes in 1.2.4.1 (28 Mar 2010)
 - Remove the use of [a-z] constructs for sed in configure [gentoo 310225]
 - Remove $(SHAREDLIB) from LIBS in Makefile.in [Creech]

Modified: user/jmallett/octeon/lib/libz/README
==============================================================================
--- user/jmallett/octeon/lib/libz/README	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/README	Sat Apr 17 02:28:24 2010	(r206719)
@@ -1,6 +1,6 @@
 ZLIB DATA COMPRESSION LIBRARY
 
-zlib 1.2.4.1 is a general purpose data compression library.  All the code is
+zlib 1.2.4.3 is a general purpose data compression library.  All the code is
 thread safe.  The data format used by the zlib library is described by RFCs
 (Request for Comments) 1950 to 1952 in the files
 http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
@@ -16,7 +16,8 @@ minigzip.c.
 To compile all files and run the test program, follow the instructions given at
 the top of Makefile.in.  In short "./configure; make test", and if that goes
 well, "make install" should work for most flavors of Unix.  For Windows, use one
-of the special makefiles in win32/ or projects/ .  For VMS, use make_vms.com.
+of the special makefiles in win32/ or contrib/vstudio/ .  For VMS, use
+make_vms.com.
 
 Questions about zlib should be sent to <zlib@gzip.org>, or to Gilles Vollant
 <info@winimage.com> for the Windows DLL version.  The zlib home page is
@@ -30,7 +31,7 @@ Mark Nelson <markn@ieee.org> wrote an ar
 issue of Dr.  Dobb's Journal; a copy of the article is available at
 http://marknelson.us/1997/01/01/zlib-engine/ .
 
-The changes made in version 1.2.4.1 are documented in the file ChangeLog.
+The changes made in version 1.2.4.3 are documented in the file ChangeLog.
 
 Unsupported third party contributions are provided in directory contrib/ .
 

Modified: user/jmallett/octeon/lib/libz/Symbol.map
==============================================================================
--- user/jmallett/octeon/lib/libz/Symbol.map	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/Symbol.map	Sat Apr 17 02:28:24 2010	(r206719)
@@ -4,11 +4,13 @@
 
 ZLIB_1.2.4.0 {
 	adler32;
+	adler32_combine;
 	adler32_combine64;
 	compress;
 	compress2;
 	compressBound;
 	crc32;
+	crc32_combine;
 	crc32_combine64;
 	deflate;
 	deflateBound;
@@ -35,15 +37,19 @@ ZLIB_1.2.4.0 {
 	gzflush;
 	gzgetc;
 	gzgets;
+	gzoffset;
 	gzoffset64;
+	gzopen;
 	gzopen64;
 	gzprintf;
 	gzputc;
 	gzputs;
 	gzread;
 	gzrewind;
+	gzseek;
 	gzseek64;
 	gzsetparams;
+	gztell;
 	gztell64;
 	gzungetc;
 	gzwrite;
@@ -80,13 +86,7 @@ ZLIBprivate_1.0 {
 	_tr_init;
 	_tr_stored_block;
 	_tr_tally;
-	adler32_combine;
-	crc32_combine;
 	gz_error;
-	gzoffset;
-	gzopen;
-	gzseek;
-	gztell;
 	inflate_fast;
 	inflate_table;
 	longest_match;

Modified: user/jmallett/octeon/lib/libz/deflate.c
==============================================================================
--- user/jmallett/octeon/lib/libz/deflate.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/deflate.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -52,7 +52,7 @@
 #include "deflate.h"
 
 const char deflate_copyright[] =
-   " deflate 1.2.4.1 Copyright 1995-2010 Jean-loup Gailly and Mark Adler ";
+   " deflate 1.2.4.3 Copyright 1995-2010 Jean-loup Gailly and Mark Adler ";
 /*
   If you use the zlib library in a product, an acknowledgment is welcome
   in the documentation of your product. If for some reason you cannot

Modified: user/jmallett/octeon/lib/libz/gzguts.h
==============================================================================
--- user/jmallett/octeon/lib/libz/gzguts.h	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/gzguts.h	Sat Apr 17 02:28:24 2010	(r206719)
@@ -3,7 +3,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-#if _LARGEFILE64_SOURCE == 1
+#ifdef _LARGEFILE64_SOURCE
 #  ifndef _LARGEFILE_SOURCE
 #    define _LARGEFILE_SOURCE 1
 #  endif
@@ -56,10 +56,12 @@
 #  endif
 #endif
 
-#if _LARGEFILE64_SOURCE == 1
-#  define z_off64_t off64_t
-#else
-#  define z_off64_t z_off_t
+/* provide prototypes for these when building zlib without LFS */
+#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
+    ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+    ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
+    ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
+    ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
 #endif
 
 /* default i/o buffer size -- double this for output when reading */

Modified: user/jmallett/octeon/lib/libz/gzlib.c
==============================================================================
--- user/jmallett/octeon/lib/libz/gzlib.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/gzlib.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -8,7 +8,7 @@
 #include "gzguts.h"
 #include "zutil.h"
 
-#if _LARGEFILE64_SOURCE == 1 && _LFS64_LARGEFILE == 1
+#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
 #  define LSEEK lseek64
 #else
 #  define LSEEK lseek
@@ -175,6 +175,7 @@ local gzFile gz_open(path, fd, mode)
                         O_APPEND))),
             0666);
     if (state->fd == -1) {
+        free(state->path);
         free(state);
         return NULL;
     }
@@ -435,7 +436,8 @@ int ZEXPORT gzeof(file)
         return 0;
 
     /* return end-of-file state */
-    return state->mode == GZ_READ ? (state->eof && state->have == 0) : 0;
+    return state->mode == GZ_READ ?
+        (state->eof && state->strm.avail_in == 0 && state->have == 0) : 0;
 }
 
 /* -- see zlib.h -- */

Modified: user/jmallett/octeon/lib/libz/inftrees.c
==============================================================================
--- user/jmallett/octeon/lib/libz/inftrees.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/inftrees.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -9,7 +9,7 @@
 #define MAXBITS 15
 
 const char inflate_copyright[] =
-   " inflate 1.2.4.1 Copyright 1995-2010 Mark Adler ";
+   " inflate 1.2.4.3 Copyright 1995-2010 Mark Adler ";
 /*
   If you use the zlib library in a product, an acknowledgment is welcome
   in the documentation of your product. If for some reason you cannot
@@ -62,7 +62,7 @@ unsigned short FAR *work;
         35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0};
     static const unsigned short lext[31] = { /* Length codes 257..285 extra */
         16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,
-        19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 67, 206};
+        19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 195, 66};
     static const unsigned short dbase[32] = { /* Distance codes 0..29 base */
         1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,
         257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,

Modified: user/jmallett/octeon/lib/libz/minigzip.c
==============================================================================
--- user/jmallett/octeon/lib/libz/minigzip.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/minigzip.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -32,6 +32,9 @@
 #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
 #  include <fcntl.h>
 #  include <io.h>
+#  ifdef UNDER_CE
+#    include <stdlib.h>
+#  endif
 #  define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
 #else
 #  define SET_BINARY_MODE(file)
@@ -50,9 +53,11 @@
 #  include <unix.h> /* for fileno */
 #endif
 
+#if !defined(Z_HAVE_UNISTD_H) && !defined(_LARGEFILE64_SOURCE)
 #ifndef WIN32 /* unlink already in stdio.h for WIN32 */
   extern int unlink OF((const char *));
 #endif
+#endif
 
 #if defined(UNDER_CE)
 #  include <windows.h>

Modified: user/jmallett/octeon/lib/libz/zconf.h
==============================================================================
--- user/jmallett/octeon/lib/libz/zconf.h	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/zconf.h	Sat Apr 17 02:28:24 2010	(r206719)
@@ -364,8 +364,11 @@ typedef uLong FAR uLongf;
 #  define Z_HAVE_UNISTD_H
 #endif
 
-#if defined(Z_HAVE_UNISTD_H)
+#ifdef STDC
 #  include <sys/types.h>    /* for off_t */
+#endif
+
+#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
 #  include <unistd.h>       /* for SEEK_* and off_t */
 #  ifdef VMS
 #    include <unixio.h>     /* for off_t */
@@ -384,7 +387,6 @@ typedef uLong FAR uLongf;
 /*
  * This is hard-configured for FreeBSD.
  */
-#include <sys/types.h>
 #define	z_off_t	off_t
 #ifndef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS 64
@@ -394,6 +396,12 @@ typedef uLong FAR uLongf;
 #  define z_off_t long
 #endif
 
+#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
+#  define z_off64_t off64_t
+#else
+#  define z_off64_t z_off_t
+#endif
+
 #if defined(__OS400__)
 #  define NO_vsnprintf
 #endif

Modified: user/jmallett/octeon/lib/libz/zlib.3
==============================================================================
--- user/jmallett/octeon/lib/libz/zlib.3	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/zlib.3	Sat Apr 17 02:28:24 2010	(r206719)
@@ -1,4 +1,4 @@
-.TH ZLIB 3 "28 Mar 2010"
+.TH ZLIB 3 "10 Apr 2010"
 .SH NAME
 zlib \- compression/decompression library
 .SH SYNOPSIS
@@ -125,7 +125,7 @@ before asking for help.
 Send questions and/or comments to zlib@gzip.org,
 or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
 .SH AUTHORS
-Version 1.2.4.1
+Version 1.2.4.3
 Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org)
 and Mark Adler (madler@alumni.caltech.edu).
 .LP

Modified: user/jmallett/octeon/lib/libz/zlib.h
==============================================================================
--- user/jmallett/octeon/lib/libz/zlib.h	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/zlib.h	Sat Apr 17 02:28:24 2010	(r206719)
@@ -1,5 +1,5 @@
 /* zlib.h -- interface of the 'zlib' general purpose compression library
-  version 1.2.4.1, March 28th, 2010
+  version 1.2.4.3, April 10th, 2010
 
   Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
 
@@ -37,12 +37,12 @@
 extern "C" {
 #endif
 
-#define ZLIB_VERSION "1.2.4.1"
-#define ZLIB_VERNUM 0x1241
+#define ZLIB_VERSION "1.2.4.3"
+#define ZLIB_VERNUM 0x1243
 #define ZLIB_VER_MAJOR 1
 #define ZLIB_VER_MINOR 2
 #define ZLIB_VER_REVISION 4
-#define ZLIB_VER_SUBREVISION 1
+#define ZLIB_VER_SUBREVISION 3
 
 /*
     The 'zlib' compression library provides in-memory compression and
@@ -1556,18 +1556,51 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF(
         inflateBackInit_((strm), (windowBits), (window), \
                                             ZLIB_VERSION, sizeof(z_stream))
 
+/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
+ * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if
+ * both are true, the application gets the *64 functions, and the regular
+ * functions are changed to 64 bits) -- in case these are set on systems
+ * without large file support, _LFS64_LARGEFILE must also be true
+ */
+#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
+   ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+   ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
+   ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
+   ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
+   ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
+   ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
+#endif
 
+#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
+#  define gzopen gzopen64
+#  define gzseek gzseek64
+#  define gztell gztell64
+#  define gzoffset gzoffset64
+#  define adler32_combine adler32_combine64
+#  define crc32_combine crc32_combine64
+#  ifdef _LARGEFILE64_SOURCE
+     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
+     ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
+     ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
+     ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
+     ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
+     ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
+#  endif
+#else
    ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
    ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
    ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
    ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
    ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
    ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
+#endif
 
+/* hack for buggy compilers */
 #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
-    struct internal_state {int dummy;}; /* hack for buggy compilers */
+    struct internal_state {int dummy;};
 #endif
 
+/* undocumented functions */
 ZEXTERN const char   * ZEXPORT zError           OF((int));
 ZEXTERN int            ZEXPORT inflateSyncPoint OF((z_streamp));
 ZEXTERN const uLongf * ZEXPORT get_crc_table    OF((void));

Modified: user/jmallett/octeon/lib/libz/zutil.h
==============================================================================
--- user/jmallett/octeon/lib/libz/zutil.h	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/lib/libz/zutil.h	Sat Apr 17 02:28:24 2010	(r206719)
@@ -154,20 +154,10 @@ extern const char * const z_errmsg[10]; 
   #pragma warn -8066
 #endif
 
-#if _LARGEFILE64_SOURCE == 1 && _LFS64_LARGEFILE == 1
-#  define z_off64_t off64_t
-#else
-#  define z_off64_t z_off_t
-#endif
-
 /* provide prototypes for these when building zlib without LFS */
-#if _LARGEFILE64_SOURCE != 1 || _LFS64_LARGEFILE != 1
-    ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
-    ZEXTERN off_t ZEXPORT gzseek64 OF((gzFile, off_t, int));
-    ZEXTERN off_t ZEXPORT gztell64 OF((gzFile));
-    ZEXTERN off_t ZEXPORT gzoffset64 OF((gzFile));
-    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, off_t));
-    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, off_t));
+#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
+    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
+    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
 #endif
 
         /* common defaults */

Modified: user/jmallett/octeon/sbin/geom/misc/subr.c
==============================================================================
--- user/jmallett/octeon/sbin/geom/misc/subr.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sbin/geom/misc/subr.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -236,6 +236,7 @@ g_metadata_store(const char *name, u_cha
 		error = errno;
 		goto out;
 	}
+	(void)ioctl(fd, DIOCGFLUSH, NULL);
 out:
 	if (sector != NULL)
 		free(sector);
@@ -293,6 +294,7 @@ g_metadata_clear(const char *name, const
 		error = errno;
 		goto out;
 	}
+	(void)ioctl(fd, DIOCGFLUSH, NULL);
 out:
 	if (sector != NULL)
 		free(sector);

Modified: user/jmallett/octeon/sbin/hastd/hastd.c
==============================================================================
--- user/jmallett/octeon/sbin/hastd/hastd.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sbin/hastd/hastd.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -137,6 +137,7 @@ child_exit(void)
 			pjdlog_error("Worker process failed (pid=%u, status=%d).",
 			    (unsigned int)pid, WEXITSTATUS(status));
 		}
+		proto_close(res->hr_ctrl);
 		res->hr_workerpid = 0;
 		if (res->hr_role == HAST_ROLE_PRIMARY) {
 			sleep(1);

Modified: user/jmallett/octeon/sbin/hastd/pjdlog.c
==============================================================================
--- user/jmallett/octeon/sbin/hastd/pjdlog.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sbin/hastd/pjdlog.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -228,7 +228,7 @@ pjdlogv_common(int loglevel, int debugle
 
 		len = snprintf(log, sizeof(log), "%s", pjdlog_prefix);
 		if ((size_t)len < sizeof(log))
-			len = vsnprintf(log + len, sizeof(log) - len, fmt, ap);
+			len += vsnprintf(log + len, sizeof(log) - len, fmt, ap);
 		if (error != -1 && (size_t)len < sizeof(log)) {
 			(void)snprintf(log + len, sizeof(log) - len, ": %s.",
 			    strerror(error));

Modified: user/jmallett/octeon/sbin/hastd/primary.c
==============================================================================
--- user/jmallett/octeon/sbin/hastd/primary.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sbin/hastd/primary.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -682,7 +682,7 @@ init_ggate(struct hast_resource *res)
 	ggiocreate.gctl_mediasize = res->hr_datasize;
 	ggiocreate.gctl_sectorsize = res->hr_local_sectorsize;
 	ggiocreate.gctl_flags = 0;
-	ggiocreate.gctl_maxcount = 128;
+	ggiocreate.gctl_maxcount = G_GATE_MAX_QUEUE_SIZE;
 	ggiocreate.gctl_timeout = 0;
 	ggiocreate.gctl_unit = G_GATE_NAME_GIVEN;
 	snprintf(ggiocreate.gctl_name, sizeof(ggiocreate.gctl_name), "hast/%s",

Modified: user/jmallett/octeon/sbin/ifconfig/ifconfig.c
==============================================================================
--- user/jmallett/octeon/sbin/ifconfig/ifconfig.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sbin/ifconfig/ifconfig.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -922,19 +922,20 @@ status(const struct afswtch *afp, const 
 			ifr.ifr_buffer.buffer = descr;
 			ifr.ifr_buffer.length = descrlen;
 			if (ioctl(s, SIOCGIFDESCR, &ifr) == 0) {
-				if (strlen(descr) > 0)
-					printf("\tdescription: %s\n", descr);
-				break;
-			} else if (errno == ENAMETOOLONG)
-				descrlen = ifr.ifr_buffer.length;
-			else
-				break;
-		} else {
+				if (ifr.ifr_buffer.buffer == descr) {
+					if (strlen(descr) > 0)
+						printf("\tdescription: %s\n",
+						    descr);
+				} else if (ifr.ifr_buffer.length > descrlen) {
+					descrlen = ifr.ifr_buffer.length;
+					continue;
+				}
+			}
+		} else
 			warn("unable to allocate memory for interface"
 			    "description");
-			break;
-		}
-	};
+		break;
+	}
 
 	if (ioctl(s, SIOCGIFCAP, (caddr_t)&ifr) == 0) {
 		if (ifr.ifr_curcap != 0) {

Modified: user/jmallett/octeon/share/man/man4/ktr.4
==============================================================================
--- user/jmallett/octeon/share/man/man4/ktr.4	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/share/man/man4/ktr.4	Sat Apr 17 02:28:24 2010	(r206719)
@@ -122,7 +122,7 @@ option sets the flag to one.
 The KTR buffer can be examined from within
 .Xr ddb 4
 via the
-.Ic show ktr Op Cm /v
+.Ic show ktr Op Cm /vV
 command.
 This command displays the contents of the trace buffer one page at a time.
 At the
@@ -136,6 +136,10 @@ If the
 .Cm /v
 modifier is specified, then they are displayed in addition to the normal
 output.
+If the
+.Cm /V
+modifier is specified, then just the timestamp is displayed in
+addition to the normal output.
 Note that the events are displayed in reverse chronological order.
 That is, the most recent events are displayed first.
 .Ss Logging ktr to Disk
@@ -167,7 +171,9 @@ the next invocation.
 enables logging of
 .Nm
 entries to disk if it is set to one.
-Setting this to 0 will terminate logging.
+Setting this to 0 will terminate logging to disk and revert to 
+logging to the normal ktr ring buffer.
+Data is not sent to the ring buffer while logging to disk.
 .It Va debug.ktr.alq_max
 is the maximum number of entries that will be recorded to disk, or 0 for
 infinite.

Modified: user/jmallett/octeon/share/man/man4/netintro.4
==============================================================================
--- user/jmallett/octeon/share/man/man4/netintro.4	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/share/man/man4/netintro.4	Sat Apr 17 02:28:24 2010	(r206719)
@@ -32,7 +32,7 @@
 .\"     @(#)netintro.4	8.2 (Berkeley) 11/30/93
 .\" $FreeBSD$
 .\"
-.Dd January 26, 2010
+.Dd April 14, 2010
 .Dt NETINTRO 4
 .Os
 .Sh NAME
@@ -292,8 +292,11 @@ field of
 struct passed in as parameter, and the length would include
 the terminating nul character.
 If there is not enough space to hold the interface length,
-no copy would be done and an
-error would be returned.
+no copy would be done and the
+.Va buffer
+field of
+.Va ifru_buffer
+would be set to NULL.
 The kernel will store the buffer length in the
 .Va length
 field upon return, regardless whether the buffer itself is

Modified: user/jmallett/octeon/sys/cam/scsi/scsi_cd.c
==============================================================================
--- user/jmallett/octeon/sys/cam/scsi/scsi_cd.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/cam/scsi/scsi_cd.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -2773,8 +2773,12 @@ cdcheckmedia(struct cam_periph *periph)
 		softc->flags &= ~(CD_FLAG_VALID_MEDIA|CD_FLAG_VALID_TOC);
 		cdprevent(periph, PR_ALLOW);
 		return (error);
-	} else
+	} else {
 		softc->flags |= CD_FLAG_VALID_MEDIA;
+		softc->disk->d_sectorsize = softc->params.blksize;
+		softc->disk->d_mediasize =
+		    (off_t)softc->params.blksize * softc->params.disksize;
+	}
 
 	/*
 	 * Now we check the table of contents.  This (currently) is only
@@ -2863,9 +2867,6 @@ cdcheckmedia(struct cam_periph *periph)
 	}
 
 	softc->flags |= CD_FLAG_VALID_TOC;
-	softc->disk->d_sectorsize = softc->params.blksize;
-	softc->disk->d_mediasize =
-	    (off_t)softc->params.blksize * softc->params.disksize;
 
 bailout:
 

Modified: user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -868,13 +868,15 @@ zfs_root(vfs_t *vfsp, int flags, vnode_t
 	ZFS_ENTER_NOERROR(zfsvfs);
 
 	error = zfs_zget(zfsvfs, zfsvfs->z_root, &rootzp);
+
+	ZFS_EXIT(zfsvfs);
+
 	if (error == 0) {
 		*vpp = ZTOV(rootzp);
 		error = vn_lock(*vpp, flags);
 		(*vpp)->v_vflag |= VV_ROOT;
 	}
 
-	ZFS_EXIT(zfsvfs);
 	return (error);
 }
 
@@ -1143,13 +1145,13 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int fla
 		VN_RELE(ZTOV(zp));
 		err = EINVAL;
 	}
+	ZFS_EXIT(zfsvfs);
 	if (err != 0)
 		*vpp = NULL;
 	else {
 		*vpp = ZTOV(zp);
 		vn_lock(*vpp, flags);
 	}
-	ZFS_EXIT(zfsvfs);
 	return (err);
 }
 
@@ -1237,8 +1239,8 @@ zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vno
 		} else {
 			VN_HOLD(*vpp);
 		}
-		vn_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
 		ZFS_EXIT(zfsvfs);
+		vn_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
 		return (0);
 	}
 
@@ -1259,10 +1261,11 @@ zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vno
 		return (EINVAL);
 	}
 
+	ZFS_EXIT(zfsvfs);
+
 	*vpp = ZTOV(zp);
 	vn_lock(*vpp, LK_EXCLUSIVE | LK_RETRY);
 	vnode_create_vobject(*vpp, zp->z_phys->zp_size, curthread);
-	ZFS_EXIT(zfsvfs);
 	return (0);
 }
 

Modified: user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -1209,15 +1209,17 @@ zfs_lookup(vnode_t *dvp, char *nm, vnode
 			ltype = VOP_ISLOCKED(dvp);
 			VOP_UNLOCK(dvp, 0);
 		}
+		ZFS_EXIT(zfsvfs);
 		error = vn_lock(*vpp, cnp->cn_lkflags);
 		if (cnp->cn_flags & ISDOTDOT)
 			vn_lock(dvp, ltype | LK_RETRY);
 		if (error != 0) {
 			VN_RELE(*vpp);
 			*vpp = NULL;
-			ZFS_EXIT(zfsvfs);
 			return (error);
 		}
+	} else {
+		ZFS_EXIT(zfsvfs);
 	}
 
 #ifdef FREEBSD_NAMECACHE
@@ -1237,8 +1239,6 @@ zfs_lookup(vnode_t *dvp, char *nm, vnode
 	}
 #endif
 
-	ZFS_EXIT(zfsvfs);
-
 	return (error);
 }
 

Modified: user/jmallett/octeon/sys/ddb/db_sym.c
==============================================================================
--- user/jmallett/octeon/sys/ddb/db_sym.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/ddb/db_sym.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -64,12 +64,6 @@ static boolean_t	db_line_at_pc(c_db_sym_
 static int db_cpu = -1;
 
 #ifdef VIMAGE
-extern uintptr_t	*__start_set_vnet;
-extern uintptr_t	*__stop_set_vnet;
-
-#define	VNET_START	(uintptr_t)&__start_set_vnet
-#define	VNET_STOP	(uintptr_t)&__stop_set_vnet
-
 static void *db_vnet = NULL;
 #endif
 

Modified: user/jmallett/octeon/sys/dev/hwpmc/hwpmc_core.c
==============================================================================
--- user/jmallett/octeon/sys/dev/hwpmc/hwpmc_core.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/dev/hwpmc/hwpmc_core.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -603,7 +603,7 @@ static struct iap_event_descr iap_events
     IAPDESCR(06H_0FH, 0x06, 0x0F, IAP_F_FM | IAP_F_I7O),
 
     IAPDESCR(07H_00H, 0x07, 0x00, IAP_F_FM | IAP_F_CC | IAP_F_CC2),
-    IAPDESCR(07H_01H, 0x07, 0x01, IAP_F_FM | IAP_F_ALLCPUSCORE2 | IAP_F_WM),
+    IAPDESCR(07H_01H, 0x07, 0x01, IAP_F_FM | IAP_F_ALLCPUSCORE2 | IAP_F_I7 | IAP_F_WM),
     IAPDESCR(07H_02H, 0x07, 0x02, IAP_F_FM | IAP_F_ALLCPUSCORE2),
     IAPDESCR(07H_03H, 0x07, 0x03, IAP_F_FM | IAP_F_ALLCPUSCORE2),
     IAPDESCR(07H_06H, 0x07, 0x06, IAP_F_FM | IAP_F_CA),
@@ -1053,6 +1053,7 @@ static struct iap_event_descr iap_events
     IAPDESCR(B0H_02H, 0xB0, 0x02, IAP_F_FM | IAP_F_WM | IAP_F_I7O),
     IAPDESCR(B0H_04H, 0xB0, 0x04, IAP_F_FM | IAP_F_WM | IAP_F_I7O),
     IAPDESCR(B0H_08H, 0xB0, 0x08, IAP_F_FM | IAP_F_WM | IAP_F_I7O),
+    IAPDESCR(B0H_10H, 0xB0, 0x10, IAP_F_FM | IAP_F_WM | IAP_F_I7O),
     IAPDESCR(B0H_20H, 0xB0, 0x20, IAP_F_FM | IAP_F_I7O),
     IAPDESCR(B0H_40H, 0xB0, 0x40, IAP_F_FM | IAP_F_I7 | IAP_F_WM),
     IAPDESCR(B0H_80H, 0xB0, 0x80, IAP_F_FM | IAP_F_CA | IAP_F_WM | IAP_F_I7O),

Modified: user/jmallett/octeon/sys/dev/hwpmc/pmc_events.h
==============================================================================
--- user/jmallett/octeon/sys/dev/hwpmc/pmc_events.h	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/dev/hwpmc/pmc_events.h	Sat Apr 17 02:28:24 2010	(r206719)
@@ -2207,7 +2207,7 @@ __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.
 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.READ_CODE", IAP_EVENT_B0H_02H)	\
 __PMC_EV_ALIAS("OFFCORE_REQUESTS.DEMAND.RFO", IAP_EVENT_B0H_04H)	\
 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.READ", IAP_EVENT_B0H_08H)		\
-__PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.RFO", IAP_EVENT_80H_10H)		\
+__PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY.RFO", IAP_EVENT_B0H_10H)		\
 __PMC_EV_ALIAS("OFFCORE_REQUESTS.L1D_WRITEBACK", IAP_EVENT_B0H_40H)	\
 __PMC_EV_ALIAS("OFFCORE_REQUESTS.ANY", IAP_EVENT_B0H_80H)		\
 __PMC_EV_ALIAS("UOPS_EXECUTED.PORT0", IAP_EVENT_B1H_01H)		\

Modified: user/jmallett/octeon/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- user/jmallett/octeon/sys/dev/ixgbe/ixgbe.c	Sat Apr 17 01:49:50 2010	(r206718)
+++ user/jmallett/octeon/sys/dev/ixgbe/ixgbe.c	Sat Apr 17 02:28:24 2010	(r206719)
@@ -759,6 +759,7 @@ ixgbe_start_locked(struct tx_ring *txr, 
 
 		/* Set watchdog on */
 		txr->watchdog_check = TRUE;
+		txr->watchdog_time = ticks;
 
 	}
 	return;
@@ -798,8 +799,6 @@ ixgbe_mq_start(struct ifnet *ifp, struct
 	/* Which queue to use */
 	if ((m->m_flags & M_FLOWID) != 0)
 		i = m->m_pkthdr.flowid % adapter->num_queues;
-	else	/* use the cpu we're on */
-		i = curcpu % adapter->num_queues;
 
 	txr = &adapter->tx_rings[i];
 
@@ -856,8 +855,11 @@ ixgbe_mq_start_locked(struct ifnet *ifp,
 		next = drbr_dequeue(ifp, txr->br);
 	}
 
-	if (enqueued > 0) 
+	if (enqueued > 0) {
+		/* Set watchdog on */
 		txr->watchdog_check = TRUE;
+		txr->watchdog_time = ticks;
+	}
 
 	return (err);
 }
@@ -1251,16 +1253,12 @@ ixgbe_handle_que(void *context, int pend
 	struct adapter  *adapter = que->adapter;
 	struct tx_ring  *txr = que->txr;
 	struct ifnet    *ifp = adapter->ifp;
-	u32		loop = MAX_LOOP;
-	bool		more_rx, more_tx;
-
-	IXGBE_TX_LOCK(txr);
-	do {
-		more_rx = ixgbe_rxeof(que, adapter->rx_process_limit);
-		more_tx = ixgbe_txeof(txr);
-	} while (loop-- && (more_rx || more_tx));
+	bool		more;
 
 	if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
+		more = ixgbe_rxeof(que, adapter->rx_process_limit);
+		IXGBE_TX_LOCK(txr);
+		ixgbe_txeof(txr);
 #if __FreeBSD_version >= 800000
 		if (!drbr_empty(ifp, txr->br))
 			ixgbe_mq_start_locked(ifp, txr, NULL);
@@ -1268,11 +1266,16 @@ ixgbe_handle_que(void *context, int pend
 		if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))

*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***



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