Re: svn commit: r184509 - head/share/man/man9

2008-11-03 Thread Dag-Erling Smørgrav
Bruce Evans <[EMAIL PROTECTED]> writes: > Robert Watson <[EMAIL PROTECTED]> writes: > > In style(9) examples of err() and errx(), use sysexits(3) errors > > rather than returning 1. > style(9) was correct. Using sysexits(3) is a style bug in most cases > [...] I agree. If we must use symbolic na

svn commit: r184589 - in head/sys: compat/freebsd32 kern sys

2008-11-03 Thread Doug Rabson
Author: dfr Date: Mon Nov 3 10:39:35 2008 New Revision: 184589 URL: http://svn.freebsd.org/changeset/base/184589 Log: Regen. Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compa

Re: svn commit: r184588 - in head: etc/gss etc/rc.d include/rpc lib/libc/sys lib/libc/xdr lib/librpcsec_gss sbin/mount_nfs sys/compat/freebsd32 sys/conf sys/fs/unionfs sys/kern sys/kgssapi sys/kgssapi

2008-11-03 Thread Simon L. Nielsen
On 2008.11.03 10:38:00 +, Doug Rabson wrote: > Author: dfr > Date: Mon Nov 3 10:38:00 2008 > New Revision: 184588 > URL: http://svn.freebsd.org/changeset/base/184588 > > Log: > Implement support for RPCSEC_GSS authentication to both the NFS client > and server. This replaces the RPC imple

svn commit: r184590 - in stable/7/sys: . kern ufs/ffs

2008-11-03 Thread Konstantin Belousov
Author: kib Date: Mon Nov 3 14:08:08 2008 New Revision: 184590 URL: http://svn.freebsd.org/changeset/base/184590 Log: MFC r184074: Assert that v_holdcnt is non-zero before entering lockmgr in vn_lock and ffs_lock. This cannot catch situations where holdcnt is incremented not by curthread,

svn commit: r184591 - in stable/7/sys: . kern

2008-11-03 Thread Konstantin Belousov
Author: kib Date: Mon Nov 3 14:11:06 2008 New Revision: 184591 URL: http://svn.freebsd.org/changeset/base/184591 Log: In vfs_busy(), lockmgr() cannot legitimately sleep, because code checked MNTK_UNMOUNT before, and mnt_mtx is used as interlock. vfs_busy() always tries to obtain a shared lo

svn commit: r184592 - head/sys/netsmb

2008-11-03 Thread Robert Watson
Author: rwatson Date: Mon Nov 3 14:23:15 2008 New Revision: 184592 URL: http://svn.freebsd.org/changeset/base/184592 Log: Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. The smb library in userspace already knows how to deal with this type of cloning. This als

svn commit: r184593 - in stable/7/sys: . ufs/ufs

2008-11-03 Thread Konstantin Belousov
Author: kib Date: Mon Nov 3 14:35:43 2008 New Revision: 184593 URL: http://svn.freebsd.org/changeset/base/184593 Log: MFC r184408: Provide an explanation for getinoquota() call in the ufs_access vop. Approved by: re (kensmith) Modified: stable/7/sys/ (props changed) stable/7/sys/

Re: svn commit: r184588 - in head: etc/gss etc/rc.d include/rpc lib/libc/sys lib/libc/xdr lib/librpcsec_gss sbin/mount_nfs sys/compat/freebsd32 sys/conf sys/fs/unionfs sys/kern sys/kgssapi sys/kgssapi

2008-11-03 Thread Doug Rabson
On 3 Nov 2008, at 13:48, Simon L. Nielsen wrote: On 2008.11.03 10:38:00 +, Doug Rabson wrote: Author: dfr Date: Mon Nov 3 10:38:00 2008 New Revision: 184588 URL: http://svn.freebsd.org/changeset/base/184588 Log: Implement support for RPCSEC_GSS authentication to both the NFS client a

svn commit: r184588 - in head: etc/gss etc/rc.d include/rpc lib/libc/sys lib/libc/xdr lib/librpcsec_gss sbin/mount_nfs sys/compat/freebsd32 sys/conf sys/fs/unionfs sys/kern sys/kgssapi sys/kgssapi/...

2008-11-03 Thread Doug Rabson
Author: dfr Date: Mon Nov 3 10:38:00 2008 New Revision: 184588 URL: http://svn.freebsd.org/changeset/base/184588 Log: Implement support for RPCSEC_GSS authentication to both the NFS client and server. This replaces the RPC implementation of the NFS client and server with the newer RPC imple

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

2008-11-03 Thread Warner Losh
Author: imp Date: Mon Nov 3 15:38:45 2008 New Revision: 184594 URL: http://svn.freebsd.org/changeset/base/184594 Log: Nit: Add a few leading zeros to make this match other mask constants in this file. Also to make sure that I got other ASI constants right. Modified: head/sys/dev/pci/pcire

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Jung-uk Kim
On Sunday 02 November 2008 07:50 am, Alexander Motin wrote: > Author: mav > Date: Sun Nov 2 12:50:16 2008 > New Revision: 184558 > URL: http://svn.freebsd.org/changeset/base/184558 > > Log: > As soon as we have several threads per process now, it is not > correct to use process ID as ACPI thread

svn commit: r184586 - head/lib/libc/string

2008-11-03 Thread Konstantin Belousov
Author: kib Date: Mon Nov 3 10:14:47 2008 New Revision: 184586 URL: http://svn.freebsd.org/changeset/base/184586 Log: Fix style. Modified: head/lib/libc/string/ffsl.c Modified: head/lib/libc/string/ffsl.c == --- hea

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Jung-uk Kim
On Monday 03 November 2008 11:08 am, Alexander Motin wrote: > Jung-uk Kim wrote: > > On Sunday 02 November 2008 07:50 am, Alexander Motin wrote: > >> Author: mav > >> Date: Sun Nov 2 12:50:16 2008 > >> New Revision: 184558 > >> URL: http://svn.freebsd.org/changeset/base/184558 > >> > >> Log: > >>

svn commit: r184595 - head/sys/fs/coda

2008-11-03 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Nov 3 16:36:23 2008 New Revision: 184595 URL: http://svn.freebsd.org/changeset/base/184595 Log: Fix few missed accmode changes in coda. Approved by: rwatson (mentor) Modified: head/sys/fs/coda/cnode.h head/sys/fs/coda/coda_subr.c head/sys/fs/coda/coda_venus.

svn commit: r184587 - in head: include lib/libc/string

2008-11-03 Thread Konstantin Belousov
Author: kib Date: Mon Nov 3 10:22:19 2008 New Revision: 184587 URL: http://svn.freebsd.org/changeset/base/184587 Log: Add the ffsll and flsll functions. These are ffs and fls operating on long long arguments. Reviewed by: bde (previous version, that included asm implementation f

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Alexander Motin
Jung-uk Kim wrote: > On Sunday 02 November 2008 07:50 am, Alexander Motin wrote: >> Author: mav >> Date: Sun Nov 2 12:50:16 2008 >> New Revision: 184558 >> URL: http://svn.freebsd.org/changeset/base/184558 >> >> Log: >> As soon as we have several threads per process now, it is not >> correct to

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Jung-uk Kim
On Monday 03 November 2008 11:08 am, Alexander Motin wrote: > Jung-uk Kim wrote: > > On Sunday 02 November 2008 07:50 am, Alexander Motin wrote: > >> Author: mav > >> Date: Sun Nov 2 12:50:16 2008 > >> New Revision: 184558 > >> URL: http://svn.freebsd.org/changeset/base/184558 > >> > >> Log: > >>

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Jung-uk Kim
On Monday 03 November 2008 12:26 pm, Jung-uk Kim wrote: > On top of that: > > /* Returning 0 is not allowed. */ > return (curthread->td_tid + 1); > > may actually return 0 because it can be INT_MAX. :-) Sorry, it was just my stupidity. I meant td_tid itself cannot be 0, so + 1 should be

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread Alexander Motin
Jung-uk Kim wrote: I'm also sorry, but that is what I see: typedef __int32_t __lwpid_t; /* Thread ID (a.k.a. LWP) */ ... td->td_tid = alloc_unr(tid_unrhdr); ... tid_unrhdr = new_unrhdr(PID_MAX + 2, INT_MAX, &tid_lock); So what have I missed, where is the problem? Why td_tid is not uni

Re: svn commit: r184471 - in head/bin: cat cp

2008-11-03 Thread Peter Jeremy
On 2008-Nov-03 00:34:47 +0100, Ivan Voras <[EMAIL PROTECTED]> wrote: >2008/10/31 Giorgos Keramidas <[EMAIL PROTECTED]>: >The difference between the best and the worst is 247 context switches >(total, not per second). > >> It looks like it's probably worth pushing the limit up to 8 MB when we >> hav

Re: svn commit: r184471 - in head/bin: cat cp

2008-11-03 Thread Giorgos Keramidas
On Mon, 3 Nov 2008 18:58:18 +1100, Peter Jeremy <[EMAIL PROTECTED]> wrote: > On 2008-Nov-03 00:34:47 +0100, Ivan Voras <[EMAIL PROTECTED]> wrote: >>2008/10/31 Giorgos Keramidas <[EMAIL PROTECTED]>: >>The difference between the best and the worst is 247 context switches >>(total, not per second). >>

Re: svn commit: r184471 - in head/bin: cat cp

2008-11-03 Thread Joerg Sonnenberger
On Mon, Nov 03, 2008 at 12:34:47AM +0100, Ivan Voras wrote: > > It looks like it's probably worth pushing the limit up to 8 MB when we > > have lots of memory :) > > Yes, it's an improvement, but who will ever notice? :) Is even the improvement from 64KB to 1MB even measurable? I mean on anything

svn commit: r184596 - head/sys/dev/acpica/Osd

2008-11-03 Thread Alexander Motin
Author: mav Date: Mon Nov 3 18:28:12 2008 New Revision: 184596 URL: http://svn.freebsd.org/changeset/base/184596 Log: Remove " + 1". Thread ID can't be zero anyway while increment may give owerflow. Modified: head/sys/dev/acpica/Osd/OsdSchedule.c Modified: head/sys/dev/acpica/Osd/OsdSched

Re: svn commit: r184596 - head/sys/dev/acpica/Osd

2008-11-03 Thread Jung-uk Kim
On Monday 03 November 2008 01:28 pm, Alexander Motin wrote: > Author: mav > Date: Mon Nov 3 18:28:12 2008 > New Revision: 184596 > URL: http://svn.freebsd.org/changeset/base/184596 > > Log: > Remove " + 1". > Thread ID can't be zero anyway while increment may give owerflow. > > Modified: > h

Re: svn commit: r184251 - in head/sys: conf dev/cfi sys

2008-11-03 Thread John Baldwin
On Friday 31 October 2008 05:59:41 am Dag-Erling Smørgrav wrote: > Marcel Moolenaar <[EMAIL PROTECTED]> writes: > > Log: > > Add a driver for flash memory that implements to the Common Flash > > Memory Interface (CFI). The flash memory can be read and written > > to through /dev/cfi# and an i

Re: svn commit: r184509 - head/share/man/man9

2008-11-03 Thread John Baldwin
On Monday 03 November 2008 08:15:40 am Dag-Erling Smørgrav wrote: > Bruce Evans <[EMAIL PROTECTED]> writes: > > Robert Watson <[EMAIL PROTECTED]> writes: > > > In style(9) examples of err() and errx(), use sysexits(3) errors > > > rather than returning 1. > > style(9) was correct. Using sysexits(3

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread John Baldwin
On Monday 03 November 2008 11:27:13 am Jung-uk Kim wrote: > On Monday 03 November 2008 11:08 am, Alexander Motin wrote: > > Jung-uk Kim wrote: > > > On Sunday 02 November 2008 07:50 am, Alexander Motin wrote: > > >> Author: mav > > >> Date: Sun Nov 2 12:50:16 2008 > > >> New Revision: 184558 > > >

Re: svn commit: r184588 - in head: etc/gss etc/rc.d include/rpc lib/libc/sys lib/libc/xdr lib/librpcsec_gss sbin/mount_nfs sys/compat/freebsd32 sys/conf sys/fs/unionfs sys/kern sys/kgssapi sys/kgssapi

2008-11-03 Thread Wilko Bulte
Quoting Doug Rabson, who wrote on Mon, Nov 03, 2008 at 02:43:16PM + .. > > On 3 Nov 2008, at 13:48, Simon L. Nielsen wrote: > >> On 2008.11.03 10:38:00 +, Doug Rabson wrote: >>> Author: dfr >>> Date: Mon Nov 3 10:38:00 2008 >>> New Revision: 184588 >>> URL: http://svn.freebsd.org/changes

Re: svn commit: r184558 - head/sys/dev/acpica/Osd

2008-11-03 Thread John Baldwin
On Sunday 02 November 2008 07:50:16 am Alexander Motin wrote: > Author: mav > Date: Sun Nov 2 12:50:16 2008 > New Revision: 184558 > URL: http://svn.freebsd.org/changeset/base/184558 > > Log: > As soon as we have several threads per process now, it is not correct to > use process ID as ACPI t

Re: svn commit: r184568 - head/sys/netsmb

2008-11-03 Thread John Baldwin
On Sunday 02 November 2008 03:22:24 pm Robert Watson wrote: > Author: rwatson > Date: Sun Nov 2 20:22:24 2008 > New Revision: 184568 > URL: http://svn.freebsd.org/changeset/base/184568 > > Log: > smb_vc_put() requires that the passed vcp be locked, so lock it before > dropping the connection

svn commit: r184597 - head/sys/kern

2008-11-03 Thread John Baldwin
Author: jhb Date: Mon Nov 3 19:33:20 2008 New Revision: 184597 URL: http://svn.freebsd.org/changeset/base/184597 Log: A few style nits. Modified: head/sys/kern/vfs_lookup.c Modified: head/sys/kern/vfs_lookup.c == --

svn commit: r184598 - head/sys/tools

2008-11-03 Thread John Baldwin
Author: jhb Date: Mon Nov 3 19:57:40 2008 New Revision: 184598 URL: http://svn.freebsd.org/changeset/base/184598 Log: Remove some unused and broken code that attempted to not invoke locking asserts on NULL vnode pointers. All the vnode assertion routines already check for NULL vnode pointe

svn commit: r184599 - in head/sys: kern sys

2008-11-03 Thread Attilio Rao
Author: attilio Date: Mon Nov 3 20:00:35 2008 New Revision: 184599 URL: http://svn.freebsd.org/changeset/base/184599 Log: Remove the mnt_holdcnt and mnt_holdcntwaiters because they are useless. Really, the concept of holdcnt in the struct mount is rappresented by the mnt_ref (which prevents

Re: svn commit: r184251 - in head/sys: conf dev/cfi sys

2008-11-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> John Baldwin <[EMAIL PROTECTED]> writes: : On Friday 31 October 2008 05:59:41 am Dag-Erling Smørgrav wrote: : > Marcel Moolenaar <[EMAIL PROTECTED]> writes: : > > Log: : > > Add a driver for flash memory that implements to the Common Flash : > > Memor

svn commit: r184600 - head/sys/kern

2008-11-03 Thread John Baldwin
Author: jhb Date: Mon Nov 3 20:31:00 2008 New Revision: 184600 URL: http://svn.freebsd.org/changeset/base/184600 Log: Use shared vnode locks instead of exclusive vnode locks for the access(), chdir(), chroot(), eaccess(), fpathconf(), fstat(), fstatfs(), lseek() (when figuring out the curre

Re: svn commit: r184251 - in head/sys: conf dev/cfi sys

2008-11-03 Thread John Baldwin
On Monday 03 November 2008 03:25:12 pm M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > John Baldwin <[EMAIL PROTECTED]> writes: > : On Friday 31 October 2008 05:59:41 am Dag-Erling Smørgrav wrote: > : > Marcel Moolenaar <[EMAIL PROTECTED]> writes: > : > > Log: > : > > Add a

svn commit: r184601 - head/sys/kern

2008-11-03 Thread John Baldwin
Author: jhb Date: Mon Nov 3 21:17:02 2008 New Revision: 184601 URL: http://svn.freebsd.org/changeset/base/184601 Log: Adjust the license statement to more closely match a standard 3-clause BSD license. MFC after:3 days Modified: head/sys/kern/subr_smp.c Modified: head/sys/kern/su

svn commit: r184602 - head/lib/libc/stdlib

2008-11-03 Thread Jason Evans
Author: jasone Date: Mon Nov 3 21:17:18 2008 New Revision: 184602 URL: http://svn.freebsd.org/changeset/base/184602 Log: Revert to preferring mmap(2) over sbrk(2) when mapping memory, due to potential extreme contention in the kernel for multi-threaded applications on SMP systems. Repo

svn commit: r184603 - in stable/7/sys: . sparc64/sparc64 sun4v/sun4v

2008-11-03 Thread Marius Strobl
Author: marius Date: Mon Nov 3 21:41:35 2008 New Revision: 184603 URL: http://svn.freebsd.org/changeset/base/184603 Log: MFC: r184376 - In GCC 4.2 __builtin_frame_address() was fixed to include the V9 stack bias so we no longer need to add it in db_backtrace() and stack_capture() r

svn commit: r184604 - head/sys/dev/usb

2008-11-03 Thread Nick Hibma
Author: n_hibma Date: Mon Nov 3 22:05:44 2008 New Revision: 184604 URL: http://svn.freebsd.org/changeset/base/184604 Log: uaa->ifaces contains pointers so set its entry to NULL not 0. Modified: head/sys/dev/usb/usb_subr.c Modified: head/sys/dev/usb/usb_subr.c ===

svn commit: r184605 - head/sys/dev/usb

2008-11-03 Thread Nick Hibma
Author: n_hibma Date: Mon Nov 3 22:09:27 2008 New Revision: 184605 URL: http://svn.freebsd.org/changeset/base/184605 Log: Bugfix: Cut&paste error from the NetBSD code. Also: Change the initialisation of the command string to a static initialiser. Verify it against the output of umass.c w

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

2008-11-03 Thread Warner Losh
Author: imp Date: Mon Nov 3 22:43:37 2008 New Revision: 184606 URL: http://svn.freebsd.org/changeset/base/184606 Log: Use more standardized license language Approved by: Thomas Quinot Modified: head/share/man/man4/atapicam.4 Modified: head/share/man/man4/atapicam.4 ===

Re: svn commit: r184605 - head/sys/dev/usb

2008-11-03 Thread Christoph Mallon
Hi Nick. Nick Hibma wrote: Author: n_hibma Date: Mon Nov 3 22:09:27 2008 New Revision: 184605 URL: http://svn.freebsd.org/changeset/base/184605 Log: Bugfix: Cut&paste error from the NetBSD code. Also: Change the initialisation of the command string to a static initialiser. Verify it

Re: svn commit: r184605 - head/sys/dev/usb

2008-11-03 Thread Joerg Sonnenberger
On Mon, Nov 03, 2008 at 11:49:50PM +0100, Christoph Mallon wrote: > You may want to make cmd[] static and/or const, so the compiler really > just puts the bytes in the data section instead of generating code, > which pretty much is the same as the assignments you just removed. I didn't make it

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

2008-11-03 Thread Warner Losh
Author: imp Date: Tue Nov 4 00:20:43 2008 New Revision: 184607 URL: http://svn.freebsd.org/changeset/base/184607 Log: Replace the non-standard disclaimer with the standard one from /COPYRIGHT Approved by: jedgar@ Modified: head/lib/libc/posix1e/acl_add_perm.3 head/lib/libc/posix1e/ac

svn commit: r184608 - svnadmin/conf

2008-11-03 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 4 01:45:49 2008 New Revision: 184608 URL: http://svn.freebsd.org/changeset/base/184608 Log: unlimit my commit size check for usb2 import. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf ==

svn commit: r184610 - in head: lib/libusb20 share/man/man4 sys/conf sys/dev/sound/pcm sys/dev/usb2 sys/dev/usb2/bluetooth sys/dev/usb2/controller sys/dev/usb2/core sys/dev/usb2/ethernet sys/dev/usb...

2008-11-03 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 4 02:31:03 2008 New Revision: 184610 URL: http://svn.freebsd.org/changeset/base/184610 Log: Bring in USB4BSD, Hans Petter Selasky rework of the USB stack that includes significant features and SMP safety. This commit includes a more or less complete rewrite o

svn commit: r184611 - svnadmin/conf

2008-11-03 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 4 02:36:18 2008 New Revision: 184611 URL: http://svn.freebsd.org/changeset/base/184611 Log: all done with usb2 commit! Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf =

svn commit: r184612 - head/sys/conf

2008-11-03 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 4 03:42:01 2008 New Revision: 184612 URL: http://svn.freebsd.org/changeset/base/184612 Log: add usb2_if.m to mfiles to unbreak build of modules. Modified: head/sys/conf/kmod.mk Modified: head/sys/conf/kmod.mk =