svn commit: r212355 - head/sys/dev/atkbdc

2010-09-09 Thread Ed Schouten
Author: ed Date: Thu Sep 9 07:52:15 2010 New Revision: 212355 URL: http://svn.freebsd.org/changeset/base/212355 Log: Let psm(4) use si_drv1 to refer to its softc. Modified: head/sys/dev/atkbdc/psm.c Modified: head/sys/dev/atkbdc/psm.c

svn commit: r212356 - head/sys/kern

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 07:55:13 2010 New Revision: 212356 URL: http://svn.freebsd.org/changeset/base/212356 Log: Remove VI_MOUNT flag from vnode on VFS_MOUNT() failure. Modified: head/sys/kern/vfs_mount.c Modified: head/sys/kern/vfs_mount.c =

svn commit: r212357 - in head/sys: cddl/contrib/opensolaris/uts/common/dtrace cddl/contrib/opensolaris/uts/common/sys kern

2010-09-09 Thread Rui Paulo
Author: rpaulo Date: Thu Sep 9 09:58:05 2010 New Revision: 212357 URL: http://svn.freebsd.org/changeset/base/212357 Log: Fix two bugs in DTrace: * when the process exits, remove the associated USDT probes * when the process forks, duplicate the USDT probes. Sponsored by: The FreeBSD Fo

svn commit: r212358 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2010-09-09 Thread Rui Paulo
Author: rpaulo Date: Thu Sep 9 11:10:15 2010 New Revision: 212358 URL: http://svn.freebsd.org/changeset/base/212358 Log: Don't clobber an existing target object file when doing the DTrace linking process. This is needed because we change the source object files and the second this dtrace -G

svn commit: r212359 - in head/sys/dev/ata: . chipsets

2010-09-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Sep 9 13:17:30 2010 New Revision: 212359 URL: http://svn.freebsd.org/changeset/base/212359 Log: Fix a problem where device detection would work unreliably on Serverworks K2 SATA controllers. The chip's status register must be read first, and as a long, for other

svn commit: r212360 - head/sys/vm

2010-09-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Sep 9 13:32:58 2010 New Revision: 212360 URL: http://svn.freebsd.org/changeset/base/212360 Log: On architectures with non-tree-based page tables like PowerPC, every page in a range must be checked when calling pmap_remove(). Calling pmap_remove() from vm_pageout

svn commit: r212362 - head/sys/fs/nfsclient

2010-09-09 Thread Rick Macklem
Author: rmacklem Date: Thu Sep 9 15:45:11 2010 New Revision: 212362 URL: http://svn.freebsd.org/changeset/base/212362 Log: Fix the experimental NFS client so that it doesn't panic when NFSv2,3 byte range locking is attempted. A fix that allows the nlm_advlock() to work with both clients is

svn commit: r212363 - head/sys/powerpc/aim

2010-09-09 Thread Nathan Whitehorn
Author: nwhitehorn Date: Thu Sep 9 16:06:55 2010 New Revision: 212363 URL: http://svn.freebsd.org/changeset/base/212363 Log: Reorder statistics tracking and table lock acquisitions already in place to avoid race conditions updating the PVO statistics. Modified: head/sys/powerpc/aim/mmu_oea

Re: svn commit: r212360 - head/sys/vm

2010-09-09 Thread Alan Cox
Nathan Whitehorn wrote: Author: nwhitehorn Date: Thu Sep 9 13:32:58 2010 New Revision: 212360 URL: http://svn.freebsd.org/changeset/base/212360 Log: On architectures with non-tree-based page tables like PowerPC, every page in a range must be checked when calling pmap_remove(). Calling pma

svn commit: r212364 - head/share/man/man9

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 16:27:02 2010 New Revision: 212364 URL: http://svn.freebsd.org/changeset/base/212364 Log: Fix small errors in the sbuf(9) man page. Modified: head/share/man/man9/sbuf.9 Modified: head/share/man/man9/sbuf.9 =

svn commit: r212365 - head/sys/kern

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 16:51:52 2010 New Revision: 212365 URL: http://svn.freebsd.org/changeset/base/212365 Log: Refactor sbuf code so that most uses of sbuf_extend() are in a new sbuf_put_byte(). This makes it easier to add drain functionality when a buffer would overflow as there ar

Re: svn commit: r212360 - head/sys/vm

2010-09-09 Thread Nathan Whitehorn
On 09/09/10 11:01, Alan Cox wrote: > Nathan Whitehorn wrote: >> Author: nwhitehorn >> Date: Thu Sep 9 13:32:58 2010 >> New Revision: 212360 >> URL: http://svn.freebsd.org/changeset/base/212360 >> >> Log: >> On architectures with non-tree-based page tables like PowerPC, >> every page >> in a ra

svn commit: r212366 - head/sys/mips/rmi

2010-09-09 Thread Jayachandran C.
Author: jchandra Date: Thu Sep 9 17:45:48 2010 New Revision: 212366 URL: http://svn.freebsd.org/changeset/base/212366 Log: Clean up and update sys/mips/rmi/rmi_mips_exts.h - Provide 64 bit implementations for some macros. On n64 and n32, don't split 64 bit values. - No need for 32 bi

svn commit: r212367 - in head: share/man/man9 sys/kern sys/sys

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 17:49:18 2010 New Revision: 212367 URL: http://svn.freebsd.org/changeset/base/212367 Log: Add drain functionality to sbufs. The drain is a function that is called when the sbuf internal buffer is filled. For kernel sbufs with a drain, the internal buffer will n

svn commit: r212368 - head/sys/dev/pci

2010-09-09 Thread John Baldwin
Author: jhb Date: Thu Sep 9 18:19:15 2010 New Revision: 212368 URL: http://svn.freebsd.org/changeset/base/212368 Log: - Rename the constant for the Master Data Parity Error flag in the PCI status register to map its current name. - Use PCIM_* rather than PCIR_* for constants for fields in

svn commit: r212369 - head/usr.sbin/pciconf

2010-09-09 Thread John Baldwin
Author: jhb Date: Thu Sep 9 18:29:48 2010 New Revision: 212369 URL: http://svn.freebsd.org/changeset/base/212369 Log: - Use 'sta' to hold the PCIR_STATUS register value instead of 'cmd' when walking the capability list. - Use constants for PCI header types instead of magic numbers. M

svn commit: r212370 - in head/sys: dev/cxgb kern sys vm

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 18:33:46 2010 New Revision: 212370 URL: http://svn.freebsd.org/changeset/base/212370 Log: Add a drain function for struct sysctl_req, and use it for a variety of handlers, some of which had to do awkward things to get a large enough FIXEDLEN buffer. Note tha

svn commit: r212371 - head/sys/dev/led

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 18:35:08 2010 New Revision: 212371 URL: http://svn.freebsd.org/changeset/base/212371 Log: Fix an incorrect use of sbuf_overflowed() after a call to sbuf_finish(). Modified: head/sys/dev/led/led.c Modified: head/sys/dev/led/led.c ==

svn commit: r212372 - head/usr.sbin/pciconf

2010-09-09 Thread John Baldwin
Author: jhb Date: Thu Sep 9 18:51:20 2010 New Revision: 212372 URL: http://svn.freebsd.org/changeset/base/212372 Log: Document the format of extended capabilities in the '-c' output. Modified: head/usr.sbin/pciconf/pciconf.8 Modified: head/usr.sbin/pciconf/pciconf.8

svn commit: r212373 - head/lib/libelf

2010-09-09 Thread Kai Wang
Author: kaiw Date: Thu Sep 9 18:51:50 2010 New Revision: 212373 URL: http://svn.freebsd.org/changeset/base/212373 Log: libelf is overly strict about the type and alignment of Elf_Data objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For exa

Re: svn commit: r212373 - head/lib/libelf

2010-09-09 Thread Steve Kargl
On Thu, Sep 09, 2010 at 06:51:50PM +, Kai Wang wrote: > Author: kaiw > Date: Thu Sep 9 18:51:50 2010 > New Revision: 212373 > URL: http://svn.freebsd.org/changeset/base/212373 > > Log: > libelf is overly strict about the type and alignment of Elf_Data > objects inside one ELF section, whi

svn commit: r212374 - head/usr.bin/printf

2010-09-09 Thread David E. O'Brien
Author: obrien Date: Thu Sep 9 19:27:40 2010 New Revision: 212374 URL: http://svn.freebsd.org/changeset/base/212374 Log: Note bug in trying to printf(1) things like: '-%s\n' "foo" Modified: head/usr.bin/printf/printf.1 Modified: head/usr.bin/printf/printf.1 =

Re: svn commit: r212374 - head/usr.bin/printf

2010-09-09 Thread Juli Mallett
On Thu, Sep 9, 2010 at 12:27, David E. O'Brien wrote: > Author: obrien > Date: Thu Sep  9 19:27:40 2010 > New Revision: 212374 > URL: http://svn.freebsd.org/changeset/base/212374 > > Log: >  Note bug in trying to printf(1) things like: '-%s\n' "foo" Should we also add something like this note to

Re: svn commit: r212374 - head/usr.bin/printf

2010-09-09 Thread Jilles Tjoelker
On Thu, Sep 09, 2010 at 07:27:40PM +, David E. O'Brien wrote: > Author: obrien > Date: Thu Sep 9 19:27:40 2010 > New Revision: 212374 > URL: http://svn.freebsd.org/changeset/base/212374 > Log: > Note bug in trying to printf(1) things like: '-%s\n' "foo" > Modified: > head/usr.bin/printf/

svn commit: r212376 - head/lib/libc/posix1e

2010-09-09 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Sep 9 20:07:40 2010 New Revision: 212376 URL: http://svn.freebsd.org/changeset/base/212376 Log: Add minor optimization. It's less strict than its kernel counterpart due to upcoming ACL changes required by the new ZFS. Modified: head/lib/libc/posix1e/acl_strip.c Mo

Re: svn commit: r212368 - head/sys/dev/pci

2010-09-09 Thread mdf
On Thu, Sep 9, 2010 at 11:19 AM, John Baldwin wrote: > Author: jhb > Date: Thu Sep  9 18:19:15 2010 > New Revision: 212368 > URL: http://svn.freebsd.org/changeset/base/212368 > > Log: >  - Rename the constant for the Master Data Parity Error flag in the >    PCI status register to map its current

svn commit: r212378 - in head/sys: dev/msk sparc64/pci

2010-09-09 Thread John Baldwin
Author: jhb Date: Thu Sep 9 20:26:30 2010 New Revision: 212378 URL: http://svn.freebsd.org/changeset/base/212378 Log: Catch up to rename of the constant for the Master Data Parity Error bit in the PCI status register. Pointed out by: mdf Pointy hat to:jhb Modified: hea

svn commit: r212379 - head/lib/libc/posix1e

2010-09-09 Thread Edward Tomasz Napierala
Author: trasz Date: Thu Sep 9 20:37:19 2010 New Revision: 212379 URL: http://svn.freebsd.org/changeset/base/212379 Log: Arrgh, tested wrong source tree _again_. Fix previous commit. Also, this and previous one are MFC candidate. MFC after:1 month Modified: head/lib/libc/posix1e/

svn commit: r212380 - head/sys/netinet

2010-09-09 Thread Michael Tuexen
Author: tuexen Date: Thu Sep 9 20:51:23 2010 New Revision: 212380 URL: http://svn.freebsd.org/changeset/base/212380 Log: * Remove code which has no effect. * Clean up the handling in sctp_lower_sosend(). MFC after: 3 weeks. Modified: head/sys/netinet/sctp_output.c Modified: head/sys/

svn commit: r212381 - head/sys/sys

2010-09-09 Thread Matthew D Fleming
Author: mdf Date: Thu Sep 9 21:01:41 2010 New Revision: 212381 URL: http://svn.freebsd.org/changeset/base/212381 Log: Bump __FreeBSD_version for sbuf ABI change. Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h ===

svn commit: r212382 - head/sys/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 21:15:16 2010 New Revision: 212382 URL: http://svn.freebsd.org/changeset/base/212382 Log: Remove duplicated code. MFC after:2 weeks Modified: head/sys/boot/zfs/zfsimpl.c Modified: head/sys/boot/zfs/zfsimpl.c ==

svn commit: r212383 - head/sys/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 21:18:00 2010 New Revision: 212383 URL: http://svn.freebsd.org/changeset/base/212383 Log: Allow to boot from a pool within which replacing is in progress. Before the change it wasn't possible and the following error was printed: ZFS: can only boot from d

svn commit: r212384 - head/sys/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 21:19:09 2010 New Revision: 212384 URL: http://svn.freebsd.org/changeset/base/212384 Log: Ignore log vdevs. MFC after:2 weeks Modified: head/sys/boot/zfs/zfsimpl.c Modified: head/sys/boot/zfs/zfsimpl.c

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

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 21:20:18 2010 New Revision: 212385 URL: http://svn.freebsd.org/changeset/base/212385 Log: On FreeBSD we can log from pool that have multiple top-level vdevs or log vdevs, so don't deny adding new vdevs if bootfs property is set. MFC after:2 weeks Modified

svn commit: r212387 - head/sys/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 9 21:32:09 2010 New Revision: 212387 URL: http://svn.freebsd.org/changeset/base/212387 Log: Remove empty lines committed by accident. MFC after:2 weeks Modified: head/sys/boot/zfs/zfsimpl.c Modified: head/sys/boot/zfs/zfsimpl.c

svn commit: r212388 - head/share/man/man4

2010-09-09 Thread Christian Brueffer
Author: brueffer Date: Thu Sep 9 21:37:05 2010 New Revision: 212388 URL: http://svn.freebsd.org/changeset/base/212388 Log: Some more grammar, wording and mdoc fixes. Modified: head/share/man/man4/aesni.4 Modified: head/share/man/man4/aesni.4 =

svn commit: r212389 - head/share/man/man4

2010-09-09 Thread Christian Brueffer
Author: brueffer Date: Thu Sep 9 21:39:06 2010 New Revision: 212389 URL: http://svn.freebsd.org/changeset/base/212389 Log: Xref aesni(4). Modified: head/share/man/man4/crypto.4 Modified: head/share/man/man4/crypto.4 ===

svn commit: r212390 - head/bin/expr

2010-09-09 Thread Jilles Tjoelker
Author: jilles Date: Thu Sep 9 21:59:53 2010 New Revision: 212390 URL: http://svn.freebsd.org/changeset/base/212390 Log: expr(1): Add sh(1) versions of examples, remove an incorrect example. The three examples are better done using sh(1) itself these days. The example expr -- "$a"

svn commit: r212403 - head/sys/contrib/pf/net

2010-09-09 Thread Bjoern A. Zeeb
Author: bz Date: Fri Sep 10 00:00:06 2010 New Revision: 212403 URL: http://svn.freebsd.org/changeset/base/212403 Log: When using pf routing options, properly handle IP fragmentation for interfaces with TSO enabled, otherwise one would see an extra ICMP unreach, frag needed pre matching packe

svn commit: r212405 - in head/lib: libc/stdlib libc/sys libthr/thread

2010-09-09 Thread David Xu
Author: davidxu Date: Fri Sep 10 01:47:37 2010 New Revision: 212405 URL: http://svn.freebsd.org/changeset/base/212405 Log: Because POSIX does not allow EINTR to be returned from sigwait(), add a wrapper for it in libc and rework the code in libthr, the system call still can return EINTR, we

Re: svn commit: r212373 - head/lib/libelf

2010-09-09 Thread Steve Kargl
On Thu, Sep 09, 2010 at 06:51:50PM +, Kai Wang wrote: > Author: kaiw > Date: Thu Sep 9 18:51:50 2010 > New Revision: 212373 > URL: http://svn.freebsd.org/changeset/base/212373 > > Log: > libelf is overly strict about the type and alignment of Elf_Data > objects inside one ELF section, whi

Re: svn commit: r212368 - head/sys/dev/pci

2010-09-09 Thread John Baldwin
On Thursday, September 09, 2010 4:10:55 pm m...@freebsd.org wrote: > On Thu, Sep 9, 2010 at 11:19 AM, John Baldwin wrote: > > Author: jhb > > Date: Thu Sep 9 18:19:15 2010 > > New Revision: 212368 > > URL: http://svn.freebsd.org/changeset/base/212368 > > > > Log: > > - Rename the constant for th

Re: svn commit: r212384 - head/sys/boot/zfs

2010-09-09 Thread Giorgos Keramidas
On Thu, 9 Sep 2010 21:19:10 + (UTC), Pawel Jakub Dawidek wrote: > Author: pjd > Date: Thu Sep 9 21:19:09 2010 > New Revision: 212384 > URL: http://svn.freebsd.org/changeset/base/212384 > > Log: > Ignore log vdevs. > > MFC after: 2 weeks > --- head/sys/boot/zfs/zfsimpl.c Thu Sep

svn commit: r212407 - head/sys/cddl/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Sep 10 04:44:13 2010 New Revision: 212407 URL: http://svn.freebsd.org/changeset/base/212407 Log: Forgot to commit this file. Add ZPOOL_CONFIG_IS_LOG. Reported by: keramida MFC after:2 weeks Modified: head/sys/cddl/boot/zfs/zfsimpl.h Modified: head/sys/cddl/b

Re: svn commit: r212384 - head/sys/boot/zfs

2010-09-09 Thread Pawel Jakub Dawidek
On Fri, Sep 10, 2010 at 06:13:21AM +0300, Giorgos Keramidas wrote: > ZPOOL_CONFIG_IS_LOG is not visible in zfsimpl.c and it breaks the build > here with: > > /usr/src/sys/boot/zfs/zfsimpl.c: In function 'vdev_probe': > /usr/src/sys/boot/zfs/zfsimpl.c:853: error: 'ZPOOL_CONFIG_IS_LOG' > undecl

Re: svn commit: r212384 - head/sys/boot/zfs

2010-09-09 Thread Giorgos Keramidas
On Fri, 10 Sep 2010 06:44:52 +0200, Pawel Jakub Dawidek wrote: > On Fri, Sep 10, 2010 at 06:13:21AM +0300, Giorgos Keramidas wrote: >> ZPOOL_CONFIG_IS_LOG is not visible in zfsimpl.c and it breaks the build >> here with: >> >> /usr/src/sys/boot/zfs/zfsimpl.c: In function 'vdev_probe': >> /usr

svn commit: r212408 - head/sys/sys

2010-09-09 Thread David E. O'Brien
Author: obrien Date: Fri Sep 10 06:26:28 2010 New Revision: 212408 URL: http://svn.freebsd.org/changeset/base/212408 Log: Protect BSDI $Id from accidental manipulation. Modified: head/sys/sys/lock.h Modified: head/sys/sys/lock.h ===