svn commit: r189143 - in head: lib/libc/sys sys/sys

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 10:10:30 2009 New Revision: 189143 URL: http://svn.freebsd.org/changeset/base/189143 Log: Add missing POSIX 1003.1-2008 open(2) flag; O_TTY_INIT. On FreeBSD, this is the default behaviour. According to the spec, we may give this flag a value of zero, but I'd ra

svn commit: r189144 - in stable/7/sys: . cam contrib/pf dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:24:57 2009 New Revision: 189144 URL: http://svn.freebsd.org/changeset/base/189144 Log: MFC r186184: Get rid of dead_sim. There is no way to make it work - any attempt to actually use it would panic on mtx operation, as dead_sim doesn't have a proper mu

svn commit: r189145 - in stable/7/sys: . cam contrib/pf dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:27:46 2009 New Revision: 189145 URL: http://svn.freebsd.org/changeset/base/189145 Log: MFC r186185: Add SIM refcounting. This is slightly different from what DragonFly does - in DragonFly, it's cam_sim_release() what actually frees the SIM; cam_sim_fre

svn commit: r189146 - in stable/7/sys: . cam contrib/pf dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:29:55 2009 New Revision: 189146 URL: http://svn.freebsd.org/changeset/base/189146 Log: MFC r186318: Move mtx_assert lower, when we can be sure that the pointer to the mutex is valid. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored b

svn commit: r189147 - in stable/7/sys: . cam cam/scsi contrib/pf dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:33:00 2009 New Revision: 189147 URL: http://svn.freebsd.org/changeset/base/189147 Log: MFC r186319: Periph driver fixes, second try. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Modified: stable/7/sys/ (

svn commit: r189148 - in stable/7/sys: . cam contrib/pf dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:35:30 2009 New Revision: 189148 URL: http://svn.freebsd.org/changeset/base/189148 Log: MFC r186320: Fix cam_sim_free() wakeup condition and add mtx_asserts. Submitted by: Christoph Mallon Reviewed by: scottl Approved by: rwatson (mentor) Sponso

svn commit: r189149 - in stable/7/sys: . cam contrib/pf dev/ata dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:38:32 2009 New Revision: 189149 URL: http://svn.freebsd.org/changeset/base/189149 Log: MFC r186905: Make "kldunload atapicam" return EBUSY instead of deadlocking when a device created by atapicam is being kept opened or mounted. This is probably just a te

svn commit: r189150 - head/usr.bin/fstat

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 10:40:37 2009 New Revision: 189150 URL: http://svn.freebsd.org/changeset/base/189150 Log: Fix compilation of fstat. The udev should now be obtained from the dosmount instead of the denode. Modified: head/usr.bin/fstat/msdosfs.c Modified: head/usr.bin/fstat/ms

svn commit: r189151 - in stable/7/sys: . cam/scsi contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:40:52 2009 New Revision: 189151 URL: http://svn.freebsd.org/changeset/base/189151 Log: MFC r187028: Don't call destroy_dev(9) with a mutex held. While here, shuffle things around so the periph destructors look alike. Based on a patch by Jaakko Heinone

Re: svn commit: r189120 - head/sys/fs/msdosfs

2009-02-28 Thread Ed Schouten
* M. Warner Losh wrote: > This commit broke tinderbox. This should now be fixed. -- Ed Schouten WWW: http://80386.nl/ pgp0MTqg9Edhz.pgp Description: PGP signature

svn commit: r189152 - in stable/7/sys: . cam/scsi contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:43:10 2009 New Revision: 189152 URL: http://svn.freebsd.org/changeset/base/189152 Log: MFC r187243: Add missing 'break' statement. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent

svn commit: r189153 - head/sys/sys

2009-02-28 Thread Robert Watson
Author: rwatson Date: Sat Feb 28 10:44:39 2009 New Revision: 189153 URL: http://svn.freebsd.org/changeset/base/189153 Log: Remove PRIV_ROOT -- all system privileges must now be explicitly named in support of forthcoming work on a fine-grained privilege mechanism. Facilitated by: bz,

svn commit: r189154 - in stable/7/sys: . cam/scsi contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:45:31 2009 New Revision: 189154 URL: http://svn.freebsd.org/changeset/base/189154 Log: MFC r187244: Remove unused variable. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm)

svn commit: r189155 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:48:11 2009 New Revision: 189155 URL: http://svn.freebsd.org/changeset/base/189155 Log: MFC r187245: Fix use after free. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent(tm) CID:

svn commit: r189156 - in stable/7/sys: . cam/scsi contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:50:59 2009 New Revision: 189156 URL: http://svn.freebsd.org/changeset/base/189156 Log: MFC r187247. Add missing 'break' statement. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Prevent

svn commit: r189157 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:53:20 2009 New Revision: 189157 URL: http://svn.freebsd.org/changeset/base/189157 Log: MFC r187649: Guard against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverit

svn commit: r189158 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 10:59:48 2009 New Revision: 189158 URL: http://svn.freebsd.org/changeset/base/189158 Log: MFC r187650: Guard against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverit

svn commit: r189159 - in stable/7/sys: . cam/scsi contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:03:24 2009 New Revision: 189159 URL: http://svn.freebsd.org/changeset/base/189159 Log: MFC r187651: Don't leak memory when alloc fails. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Found with: Coverity Pr

svn commit: r189160 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:09:27 2009 New Revision: 189160 URL: http://svn.freebsd.org/changeset/base/189160 Log: MFC r187652: Protect against NULL pointer dereference. Reviewed by: scottl Approved by: rwatson (mentor) Sponsored by: FreeBSD Foundation Modified: stable/7

svn commit: r189161 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:11:38 2009 New Revision: 189161 URL: http://svn.freebsd.org/changeset/base/189161 Log: MFC r188345: Remove an overzealous check. Submitted by: das Reviewed by: scottl Approved by: rwatson (mentor, implicit) Sponsored by: FreeBSD Foundation Mod

svn commit: r189162 - in stable/7/sys: . contrib/pf dev/cxgb geom

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:16:57 2009 New Revision: 189162 URL: http://svn.freebsd.org/changeset/base/189162 Log: MFC r186188: Implement g_vfs_orphan(). Without it, the filesystem never closes the device, which means refcount on periph drivers never drops, which means cam_sim_fr

svn commit: r189163 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb geom

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:19:02 2009 New Revision: 189163 URL: http://svn.freebsd.org/changeset/base/189163 Log: MFC r187053: Prevent a panic that happens on SMP machines when removing a disk with many writes queued up. Reviewed by: phk, scottl Approved by: rwatson (mento

svn commit: r189164 - stable/7/share/man/man4

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:20:37 2009 New Revision: 189164 URL: http://svn.freebsd.org/changeset/base/189164 Log: MFC r188916: Fix a typo and add manpage links to geom(4). Approved by: rwatson (mentor) Modified: stable/7/share/man/man4/ (props changed) stable/7/share/man

svn commit: r189165 - stable/7/share/man/man9

2009-02-28 Thread Edward Tomasz Napierala
Author: trasz Date: Sat Feb 28 11:22:09 2009 New Revision: 189165 URL: http://svn.freebsd.org/changeset/base/189165 Log: MFC r188917: Mention disk_gone() in disk(9). Approved by: rwatson (mentor) Modified: stable/7/share/man/man9/ (props changed) stable/7/share/man/man9/Makefil

svn commit: r189166 - head/sys/dev/ata

2009-02-28 Thread Alexander Motin
Author: mav Date: Sat Feb 28 11:25:05 2009 New Revision: 189166 URL: http://svn.freebsd.org/changeset/base/189166 Log: Rework device probing by moving ata_getparam() call from ata_identify() to drivers' probe routines. It allows not to sleep and so not drop Giant inside ata_identify() critic

svn commit: r189167 - head/sys/kern

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 14:20:26 2009 New Revision: 189167 URL: http://svn.freebsd.org/changeset/base/189167 Log: Replace bcopy() calls inside the TTY layer with memcpy()/strlcpy(). In all these cases the buffers never overlap. Program names are also likely to be shorter, so use a reg

svn commit: r189168 - head/usr.bin/nl

2009-02-28 Thread David Schultz
Author: das Date: Sat Feb 28 15:53:36 2009 New Revision: 189168 URL: http://svn.freebsd.org/changeset/base/189168 Log: Use getline() instead of fgets(). This enables nl(1) to handle arbitrarily long lines and embedded NULs. The new functionality is nugatory, but adding it is a simple way to

svn commit: r189169 - head/usr.bin/newkey

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 16:16:37 2009 New Revision: 189169 URL: http://svn.freebsd.org/changeset/base/189169 Log: Fix compilation of newkey(8) with WITHOUT_NIS=yes. Increasing WARNS seems to have broken compilation of this utility. Instead of lowering WARNS, just fix to code to compil

svn commit: r189170 - in head/sys: cddl/compat/opensolaris/sys conf gnu/fs/xfs/FreeBSD libkern net80211 netgraph netgraph/atm/uni powerpc/booke sys xdr

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 16:21:25 2009 New Revision: 189170 URL: http://svn.freebsd.org/changeset/base/189170 Log: Add memmove() to the kernel, making the kernel compile with Clang. When copying big structures, LLVM generates calls to memmove(), because it may not be able to figure out

svn commit: r189171 - svnadmin/conf

2009-02-28 Thread Ed Schouten
Author: ed Date: Sat Feb 28 17:01:55 2009 New Revision: 189171 URL: http://svn.freebsd.org/changeset/base/189171 Log: As discussed with kib, make myself rdivacky's co-mentor. Roman is one of the LLVM guys, so I guess it would speed up the procedurs if I could just approve his work, to sav

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

2009-02-28 Thread Andrew Thompson
Author: thompsa Date: Sat Feb 28 17:14:03 2009 New Revision: 189172 URL: http://svn.freebsd.org/changeset/base/189172 Log: - Remove the usb interface number from the device nodes as it is not needed. - Do not recreate the device nodes in set_alt_interface as the endpoints do not change.

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

2009-02-28 Thread Andrew Thompson
Author: thompsa Date: Sat Feb 28 17:20:00 2009 New Revision: 189173 URL: http://svn.freebsd.org/changeset/base/189173 Log: A couple of style nits in the last commit - unwrap short lines - move variable initialisation out of the declaration. Modified: head/sys/dev/usb/usb_dev.c head/sy

svn commit: r189193 - svnadmin/conf

2009-02-28 Thread Konstantin Belousov
Author: kib Date: Sat Feb 28 19:09:36 2009 New Revision: 189193 URL: http://svn.freebsd.org/changeset/base/189193 Log: Welcome Dmitry Chagin. He plan to mostly work on linuxolator at the start. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/

svn commit: r189194 - head/sys/kern

2009-02-28 Thread Andrew Thompson
Author: thompsa Date: Sat Feb 28 19:10:43 2009 New Revision: 189194 URL: http://svn.freebsd.org/changeset/base/189194 Log: Move the NORELEASE check to after the recurse count decrement and bailout, this is not counted as actually releasing the lock. Modified: head/sys/kern/subr_witness.c

Re: svn commit: r189193 - svnadmin/conf

2009-02-28 Thread Roman Divacky
On Sat, Feb 28, 2009 at 07:09:37PM +, Konstantin Belousov wrote: > Author: kib > Date: Sat Feb 28 19:09:36 2009 > New Revision: 189193 > URL: http://svn.freebsd.org/changeset/base/189193 > > Log: > Welcome Dmitry Chagin. He plan to mostly work on linuxolator at the start. > > Approved b

svn commit: r189195 - head/sys/dev/ata

2009-02-28 Thread Alexander Motin
Author: mav Date: Sat Feb 28 22:07:15 2009 New Revision: 189195 URL: http://svn.freebsd.org/changeset/base/189195 Log: Revert my ata_identify()/ata_reinit() related changes: r189166, r189091 and partially r188903. Revert breaks new drives detection on reinit to the state as it was before me,

svn commit: r189196 - head/sys/netinet

2009-02-28 Thread Robert Watson
Author: rwatson Date: Sat Feb 28 22:58:52 2009 New Revision: 189196 URL: http://svn.freebsd.org/changeset/base/189196 Log: Remove unreachable code for generating RST segments from tcp_twcheck(); this code became stale when T/TCP support was removed. Discussed with: bz, sam MFC aft

svn commit: r189204 - head/sys/sys

2009-02-28 Thread Bruce M Simpson
Author: bms Date: Sun Mar 1 04:57:23 2009 New Revision: 189204 URL: http://svn.freebsd.org/changeset/base/189204 Log: In sys/tree.h: * Add RB_FOREACH_FROM() which continues traversal *at* the y-node provided. There is no pre-increment. * Nuke RB_FOREACH_SAFE as it was buggy; it would

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

2009-02-28 Thread Xin LI
Author: delphij Date: Sun Mar 1 05:44:28 2009 New Revision: 189207 URL: http://svn.freebsd.org/changeset/base/189207 Log: "-isoC-99" should be spelled without 'c'. Modified: head/lib/libc/stdlib/atol.3 Modified: head/lib/libc/stdlib/atol.3 ===

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

2009-02-28 Thread Xin LI
Author: delphij Date: Sun Mar 1 05:47:14 2009 New Revision: 189208 URL: http://svn.freebsd.org/changeset/base/189208 Log: Add a missing .El. Modified: head/lib/libc/net/rcmd.3 Modified: head/lib/libc/net/rcmd.3 == -

svn commit: r189209 - head/sys/sys

2009-02-28 Thread David Schultz
Author: das Date: Sun Mar 1 06:27:03 2009 New Revision: 189209 URL: http://svn.freebsd.org/changeset/base/189209 Log: Fix a typo in the previous commit. Submitted by: Mel Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r189210 - stable/7/sys/cam

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 06:46:39 2009 New Revision: 189210 URL: http://svn.freebsd.org/changeset/base/189210 Log: Merge r186891: Retry TEST UNIT READY if needed. Modified: stable/7/sys/cam/cam_xpt.c (contents, props changed) Modified: stable/7/sys/cam/cam_xpt.c

svn commit: r189211 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 06:57:25 2009 New Revision: 189211 URL: http://svn.freebsd.org/changeset/base/189211 Log: Merge 188570: Fix tag negotiation for pseudo-scsi devices and subsystems. Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_xpt.c (contents, props changed

svn commit: r189212 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:00:52 2009 New Revision: 189212 URL: http://svn.freebsd.org/changeset/base/189212 Log: Merge 188670: Instrument the probe state machine Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_xpt.c (contents, props changed) stable/7/sys/contrib/

svn commit: r189213 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:02:16 2009 New Revision: 189213 URL: http://svn.freebsd.org/changeset/base/189213 Log: Merge 188688: GCC bogon. Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_xpt.c (contents, props changed) stable/7/sys/contrib/pf/ (props changed)

svn commit: r189214 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:03:35 2009 New Revision: 189214 URL: http://svn.freebsd.org/changeset/base/189214 Log: Merge 188671: Fix negotiation for imperfect SCSI and pseudo-SCSI devices. Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_xpt.c (contents, props changed

svn commit: r189215 - in stable/7/sys: . cam contrib/pf dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:06:44 2009 New Revision: 189215 URL: http://svn.freebsd.org/changeset/base/189215 Log: Merge 186396: Fix comment Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_sim.h stable/7/sys/cam/cam_xpt.c (props changed) stable/7/sys/contrib/pf/

svn commit: r189216 - head/share/termcap

2009-02-28 Thread Rong-En Fan
Author: rafan Date: Sun Mar 1 07:08:46 2009 New Revision: 189216 URL: http://svn.freebsd.org/changeset/base/189216 Log: - Remove kH (kp_kll) from screen. It has the identical key sequence as @7 (kp_end). As ncurses has the limitation that it returns the first matched key symbol, you can

svn commit: r189217 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:16:50 2009 New Revision: 189217 URL: http://svn.freebsd.org/changeset/base/189217 Log: Fix mergeinfo for cam_xpt.c Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_xpt.c (props changed) stable/7/sys/contrib/pf/ (props changed) stable/

svn commit: r189218 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:22:46 2009 New Revision: 189218 URL: http://svn.freebsd.org/changeset/base/189218 Log: Merge 176204: Fix typo Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_periph.c stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_ha

svn commit: r189219 - in stable/7/sys: . cam contrib/pf dev/ath/ath_hal dev/cxgb

2009-02-28 Thread Scott Long
Author: scottl Date: Sun Mar 1 07:24:26 2009 New Revision: 189219 URL: http://svn.freebsd.org/changeset/base/189219 Log: Merge 188395: Fix "invalid periph name" error condition. Modified: stable/7/sys/ (props changed) stable/7/sys/cam/cam_periph.c stable/7/sys/contrib/pf/ (props chan