Re: svn commit: r243228 - head/etc

2012-11-19 Thread Bruce Evans
On Sun, 18 Nov 2012, Chris Rees wrote: On 18 Nov 2012 20:39, "Ed Schouten" wrote: Hi Chris, 2012/11/18 Chris Rees : Modified: head/etc/rc.initdiskless == --- head/etc/rc.initdisklessSun Nov 18 14:05:28 2012

svn commit: r243262 - head/usr.bin/top

2012-11-19 Thread Rui Paulo
Author: rpaulo Date: Mon Nov 19 08:03:40 2012 New Revision: 243262 URL: http://svnweb.freebsd.org/changeset/base/243262 Log: Use the correct size when allocating the cmdbuf string. cmdlengthdelta is the size of the header and we were using it to allocate a buffer to store the command line

Re: svn commit: r243262 - head/usr.bin/top

2012-11-19 Thread Alexey Dokuchaev
On Mon, Nov 19, 2012 at 08:03:40AM +, Rui Paulo wrote: > New Revision: 243262 > URL: http://svnweb.freebsd.org/changeset/base/243262 > > - cmdbuf = (char *)malloc(cmdlengthdelta + 1); > + cmdbuf = (char *)malloc(cmdlen + 1); Why explicitly casting malloc return() value (void *)? ./d

svn commit: r243263 - head/sys/mips/cavium/octe

2012-11-19 Thread Juli Mallett
Author: jmallett Date: Mon Nov 19 08:29:53 2012 New Revision: 243263 URL: http://svnweb.freebsd.org/changeset/base/243263 Log: Remove redundant printf of SDK version which already appears earlier in boot. Modified: head/sys/mips/cavium/octe/ethernet.c Modified: head/sys/mips/cavium/octe/ethe

svn commit: r243264 - head/sys/mips/cavium/octe

2012-11-19 Thread Juli Mallett
Author: jmallett Date: Mon Nov 19 08:30:29 2012 New Revision: 243264 URL: http://svnweb.freebsd.org/changeset/base/243264 Log: Prevent hang on ATCA-7220 when transmitting packets < 60 bytes. Modified: head/sys/mips/cavium/octe/ethernet-tx.c Modified: head/sys/mips/cavium/octe/ethernet-tx.c =

svn commit: r243265 - head/sys/contrib/octeon-sdk

2012-11-19 Thread Juli Mallett
Author: jmallett Date: Mon Nov 19 08:35:58 2012 New Revision: 243265 URL: http://svnweb.freebsd.org/changeset/base/243265 Log: Return port numbers for ATCA-7220 SPI interfaces in a different place for consistency reasons, and to ensure that CRC addition is disabled on output. With this, tran

svn commit: r243268 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-11-19 Thread Andriy Gapon
Author: avg Date: Mon Nov 19 11:25:20 2012 New Revision: 243268 URL: http://svnweb.freebsd.org/changeset/base/243268 Log: zfs_remove: set VV_NOSYNC flag if a node is unlinked Suggested by: kib MFC after:12 days Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops

svn commit: r243270 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-11-19 Thread Andriy Gapon
Author: avg Date: Mon Nov 19 11:30:08 2012 New Revision: 243270 URL: http://svnweb.freebsd.org/changeset/base/243270 Log: zfs_remove: assert that delete_now case is never true on FreeBSD That case is specific to Solaris VFS and it would violate pretty fundamental contracts of FreeBSD VFS.

svn commit: r243271 - head/sys/kern

2012-11-19 Thread Andriy Gapon
Author: avg Date: Mon Nov 19 11:32:56 2012 New Revision: 243271 URL: http://svnweb.freebsd.org/changeset/base/243271 Log: vnode_if: fix locking protocol description for lookup and cachedlookup Also remove the checks from vop_lookup_pre and vop_lookup_post, which are now completely redunda

svn commit: r243272 - head/sys/kern

2012-11-19 Thread Andriy Gapon
Author: avg Date: Mon Nov 19 11:35:56 2012 New Revision: 243272 URL: http://svnweb.freebsd.org/changeset/base/243272 Log: assert_vop_locked should treat LK_EXCLOTHER as the not locked case ... from a perspective of the current thread. Spotted by: mjg Discussed with: kib MFC

svn commit: r243280 - head/usr.bin/find

2012-11-19 Thread Eitan Adler
Author: eadler Date: Mon Nov 19 15:12:44 2012 New Revision: 243280 URL: http://svnweb.freebsd.org/changeset/base/243280 Log: Use .Nm instead of a self xref Approved by: bcr (mentor) MFC after:1 week Modified: head/usr.bin/find/find.1 Modified: head/usr.bin/find/find.1 ===

Re: svn commit: r243262 - head/usr.bin/top

2012-11-19 Thread Rui Paulo
On 19 Nov 2012, at 00:26, Alexey Dokuchaev wrote: > On Mon, Nov 19, 2012 at 08:03:40AM +, Rui Paulo wrote: >> New Revision: 243262 >> URL: http://svnweb.freebsd.org/changeset/base/243262 >> >> -cmdbuf = (char *)malloc(cmdlengthdelta + 1); >> +cmdbuf = (char *)malloc(cmdlen + 1); > >

Re: svn commit: r243228 - head/etc

2012-11-19 Thread Chris Rees
On 19 November 2012 08:03, Bruce Evans wrote: > On Sun, 18 Nov 2012, Chris Rees wrote: > >> On 18 Nov 2012 20:39, "Ed Schouten" wrote: >>> >>> >>> Hi Chris, >>> >>> 2012/11/18 Chris Rees : Modified: head/etc/rc.initdiskless >> >>

svn commit: r243300 - head/lib/libc/net

2012-11-19 Thread Michael Tuexen
Author: tuexen Date: Mon Nov 19 19:19:04 2012 New Revision: 243300 URL: http://svnweb.freebsd.org/changeset/base/243300 Log: Fix the handling of mapped IPv6 addresses in sctp_connectx(). MFC after: 3 days Modified: head/lib/libc/net/sctp_sys_calls.c Modified: head/lib/libc/net/sctp_sys_

svn commit: r243302 - head/lib/libc/net

2012-11-19 Thread Michael Tuexen
Author: tuexen Date: Mon Nov 19 19:26:19 2012 New Revision: 243302 URL: http://svnweb.freebsd.org/changeset/base/243302 Log: Cleanup the code a bit, which improves the portability. MFC after: 1 week Modified: head/lib/libc/net/sctp_sys_calls.c Modified: head/lib/libc/net/sctp_sys_calls.c =

svn commit: r243305 - head/sys/boot/sparc64/boot1

2012-11-19 Thread Marius Strobl
Author: marius Date: Mon Nov 19 19:31:54 2012 New Revision: 243305 URL: http://svnweb.freebsd.org/changeset/base/243305 Log: Fix build after r243245. Submitted by: trasz Modified: head/sys/boot/sparc64/boot1/boot1.c Modified: head/sys/boot/sparc64/boot1/boot1.c =

Re: svn commit: r243262 - head/usr.bin/top

2012-11-19 Thread Bruce Evans
On Mon, 19 Nov 2012, Rui Paulo wrote: On 19 Nov 2012, at 00:26, Alexey Dokuchaev wrote: On Mon, Nov 19, 2012 at 08:03:40AM +, Rui Paulo wrote: New Revision: 243262 URL: http://svnweb.freebsd.org/changeset/base/243262 - cmdbuf = (char *)malloc(cmdlengthdelta + 1); + cmdbuf =

Re: svn commit: r243228 - head/etc

2012-11-19 Thread Bruce Evans
On Mon, 19 Nov 2012, Chris Rees wrote: On 19 November 2012 08:03, Bruce Evans wrote: On Sun, 18 Nov 2012, Chris Rees wrote: ... As you say however, pax is technically how it should be done anyway, and has the nice effect of also preserving hard links. If no-one objects I think it should stay

svn commit: r243307 - head/sys/kern

2012-11-19 Thread Attilio Rao
Author: attilio Date: Mon Nov 19 20:43:19 2012 New Revision: 243307 URL: http://svnweb.freebsd.org/changeset/base/243307 Log: insmntque() is always called with the lock held in exclusive mode, then: - assume the lock is held in exclusive mode and remove a moot check about the lock acquis

Re: svn commit: r243307 - head/sys/kern

2012-11-19 Thread Davide Italiano
On Mon, Nov 19, 2012 at 9:43 PM, Attilio Rao wrote: > Author: attilio > Date: Mon Nov 19 20:43:19 2012 > New Revision: 243307 > URL: http://svnweb.freebsd.org/changeset/base/243307 > > Log: > insmntque() is always called with the lock held in exclusive mode, > then: > - assume the lock is he

Re: svn commit: r243307 - head/sys/kern

2012-11-19 Thread Attilio Rao
On Mon, Nov 19, 2012 at 8:53 PM, Davide Italiano wrote: > On Mon, Nov 19, 2012 at 9:43 PM, Attilio Rao wrote: >> Author: attilio >> Date: Mon Nov 19 20:43:19 2012 >> New Revision: 243307 >> URL: http://svnweb.freebsd.org/changeset/base/243307 >> >> Log: >> insmntque() is always called with the

Re: svn commit: r243307 - head/sys/kern

2012-11-19 Thread Davide Italiano
On Mon, Nov 19, 2012 at 9:55 PM, Attilio Rao wrote: > On Mon, Nov 19, 2012 at 8:53 PM, Davide Italiano wrote: >> On Mon, Nov 19, 2012 at 9:43 PM, Attilio Rao wrote: >>> Author: attilio >>> Date: Mon Nov 19 20:43:19 2012 >>> New Revision: 243307 >>> URL: http://svnweb.freebsd.org/changeset/base/2

Re: svn commit: r243307 - head/sys/kern

2012-11-19 Thread Attilio Rao
On Mon, Nov 19, 2012 at 9:08 PM, Davide Italiano wrote: > On Mon, Nov 19, 2012 at 9:55 PM, Attilio Rao wrote: >> On Mon, Nov 19, 2012 at 8:53 PM, Davide Italiano wrote: >>> On Mon, Nov 19, 2012 at 9:43 PM, Attilio Rao wrote: Author: attilio Date: Mon Nov 19 20:43:19 2012 New Revi

svn commit: r243310 - head/share/mk

2012-11-19 Thread Jung-uk Kim
Author: jkim Date: Mon Nov 19 21:58:14 2012 New Revision: 243310 URL: http://svnweb.freebsd.org/changeset/base/243310 Log: Add x86 CPUs supported by clang on head. Reviewed by: arch (silence) X-MFC:r242624 Modified: head/share/mk/bsd.cpu.mk Modified: head/share/mk/bsd

Re: svn commit: r243310 - head/share/mk

2012-11-19 Thread Roman Divacky
Maybe update share/examples/etc/make.conf too? On Mon, Nov 19, 2012 at 09:58:14PM +, Jung-uk Kim wrote: > Author: jkim > Date: Mon Nov 19 21:58:14 2012 > New Revision: 243310 > URL: http://svnweb.freebsd.org/changeset/base/243310 > > Log: > Add x86 CPUs supported by clang on head. > >

svn commit: r243311 - in head/sys: fs/ext2fs fs/msdosfs fs/nfsclient fs/nullfs fs/unionfs gnu/fs/reiserfs nfsclient ufs/ffs

2012-11-19 Thread Attilio Rao
Author: attilio Date: Mon Nov 19 22:43:45 2012 New Revision: 243311 URL: http://svnweb.freebsd.org/changeset/base/243311 Log: r16312 is not any longer real since many years (likely since when VFS received granular locking) but the comment present in UFS has been copied all over other filesys

svn commit: r243312 - head/tools/regression/sockets/sigpipe

2012-11-19 Thread Ed Maste
Author: emaste Date: Mon Nov 19 22:46:17 2012 New Revision: 243312 URL: http://svnweb.freebsd.org/changeset/base/243312 Log: Use '%zd' printf format for ssize_t. Modified: head/tools/regression/sockets/sigpipe/sigpipe.c Modified: head/tools/regression/sockets/sigpipe/sigpipe.c ==

svn commit: r243313 - in head/tools/regression/sockets: sblock unix_seqpacket_exercise zerosend

2012-11-19 Thread Ed Maste
Author: emaste Date: Mon Nov 19 22:53:57 2012 New Revision: 243313 URL: http://svnweb.freebsd.org/changeset/base/243313 Log: Use '%zd' format specifier for ssize_t Found by: clang Modified: head/tools/regression/sockets/sblock/sblock.c head/tools/regression/sockets/unix_seqpacket_exer

svn commit: r243314 - head/tools/regression/sockets/unix_cmsg

2012-11-19 Thread Ed Maste
Author: emaste Date: Mon Nov 19 22:56:51 2012 New Revision: 243314 URL: http://svnweb.freebsd.org/changeset/base/243314 Log: Zero the whole struct not just the size of a pointer. Found by: clang Modified: head/tools/regression/sockets/unix_cmsg/unix_cmsg.c Modified: head/tools/regressio

svn commit: r243315 - head/share/examples/etc

2012-11-19 Thread Jung-uk Kim
Author: jkim Date: Mon Nov 19 23:04:22 2012 New Revision: 243315 URL: http://svnweb.freebsd.org/changeset/base/243315 Log: Clean up and update comments for CPUTYPE. Requested by: rdivacky Modified: head/share/examples/etc/make.conf Modified: head/share/examples/etc/make.conf ===

svn commit: r243316 - in head/tools/regression: netinet/udpzerobyte netipx/ipxdgramloopback ufs/uprintf

2012-11-19 Thread Ed Maste
Author: emaste Date: Mon Nov 19 23:07:38 2012 New Revision: 243316 URL: http://svnweb.freebsd.org/changeset/base/243316 Log: Use '%zu' and '%zd' as appropriate for size_t / ssize_t. Modified: head/tools/regression/netinet/udpzerobyte/udpzerobyte.c head/tools/regression/netipx/ipxdgramloopba

svn commit: r243317 - head/sys/dev/ath/ath_hal/ar5210

2012-11-19 Thread Adrian Chadd
Author: adrian Date: Mon Nov 19 23:42:46 2012 New Revision: 243317 URL: http://svnweb.freebsd.org/changeset/base/243317 Log: Disable WEP hardware encryption on the AR5210, in order to allow other encryption types. The AR5210 only has four WEP key slots, in contrast to what the later MAC

svn commit: r243318 - head/sys/dev/ath

2012-11-19 Thread Adrian Chadd
Author: adrian Date: Mon Nov 19 23:54:05 2012 New Revision: 243318 URL: http://svnweb.freebsd.org/changeset/base/243318 Log: Don't allocate or program a key for the AR5210. The AR5210 doesn't support HAL_CIPHER_CLR ('clear encryption' keycache slots), so don't bother - just map them to sl

svn commit: r243319 - head/tools/regression/netinet/arphold

2012-11-19 Thread Ed Maste
Author: emaste Date: Tue Nov 20 01:42:18 2012 New Revision: 243319 URL: http://svnweb.freebsd.org/changeset/base/243319 Log: Remove unused variable. Modified: head/tools/regression/netinet/arphold/arphold.c Modified: head/tools/regression/netinet/arphold/arphold.c ===

svn commit: r243320 - head/usr.bin/cut

2012-11-19 Thread Eitan Adler
Author: eadler Date: Tue Nov 20 01:57:21 2012 New Revision: 243320 URL: http://svnweb.freebsd.org/changeset/base/243320 Log: Add 'w' flag to: Use whitespace (spaces and tabs) as the delimiter. Consecutive spaces and tabs count as one single field separator. Reviewed by: swild...@d

svn commit: r243321 - head/usr.sbin/edquota

2012-11-19 Thread Eitan Adler
Author: eadler Date: Tue Nov 20 02:12:01 2012 New Revision: 243321 URL: http://svnweb.freebsd.org/changeset/base/243321 Log: Remove unneeded includes. Tested with "make universe"; there are no conditional features. Approved by: cperciva MFC after:3 daus Modified: head/usr.sbi

svn commit: r243322 - head

2012-11-19 Thread Marcel Moolenaar
Author: marcel Date: Tue Nov 20 03:21:26 2012 New Revision: 243322 URL: http://svnweb.freebsd.org/changeset/base/243322 Log: Unbreak amd64 cross-build where amd64 is the target. While clang may be installed as cc and we don't need to build gcc as a cross-tools, we still build gcc and thus ne

svn commit: r243324 - head/etc

2012-11-19 Thread Hiroki Sato
Author: hrs Date: Tue Nov 20 04:45:04 2012 New Revision: 243324 URL: http://svnweb.freebsd.org/changeset/base/243324 Log: Do not put "already running" message when rc_quiet=yes. PR: bin/165477 Modified: head/etc/rc.subr Modified: head/etc/rc.subr ==

Re: svn commit: r243324 - head/etc

2012-11-19 Thread Mike Telahun
> @@ -704,7 +704,10 @@ run_rc_command() > > start) > if [ -z "$rc_fast" -a -n "$rc_pid" ]; then > - echo 1>&2 "${name} already running? > (pid=$rc_pid)." > + if [ -z "$rc_quiet" ]; then Shouldn't this be

Re: svn commit: r243311 - in head/sys: fs/ext2fs fs/msdosfs fs/nfsclient fs/nullfs fs/unionfs gnu/fs/reiserfs nfsclient ufs/ffs

2012-11-19 Thread Bruce Evans
On Mon, 19 Nov 2012, Attilio Rao wrote: Log: r16312 is not any longer real since many years (likely since when VFS received granular locking) but the comment present in UFS has been copied all over other filesystems code incorrectly for several times. Removes comments that makes no sense no

Re: svn commit: r243321 - head/usr.sbin/edquota

2012-11-19 Thread Bruce Evans
On Tue, 20 Nov 2012, Eitan Adler wrote: Log: Remove unneeded includes. Tested with "make universe"; there are no conditional features. "make universe" can't find such features. Except inversely -- when it doesn't find them, it usually means that there is a bug in the headers. Modified: h

Re: svn commit: r243324 - head/etc

2012-11-19 Thread Hiroki Sato
Mike Telahun wrote in <50ab19d3.9080...@gmail.com>: mi> > @@ -704,7 +704,10 @@ run_rc_command() mi> > mi> > start) mi> > if [ -z "$rc_fast" -a -n "$rc_pid" ]; then mi> > - echo 1>&2 "${name} already running? (pid=$rc_pid)." mi> > +

svn commit: r243328 - head/lib/libutil

2012-11-19 Thread Baptiste Daroussin
Author: bapt Date: Tue Nov 20 07:22:07 2012 New Revision: 243328 URL: http://svnweb.freebsd.org/changeset/base/243328 Log: change mode the group file to 0644 after a successfull rename(2) Modified: head/lib/libutil/gr_util.c Modified: head/lib/libutil/gr_util.c ==

Re: svn commit: r243321 - head/usr.sbin/edquota

2012-11-19 Thread Bruce Evans
On Tue, 20 Nov 2012, Bruce Evans wrote: On Tue, 20 Nov 2012, Eitan Adler wrote: Log: Remove unneeded includes. Tested with "make universe"; there are no conditional features. "make universe" can't find such features. Except inversely -- when it doesn't find them, it usually means that th