svn commit: r190494 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:47:05 2009 New Revision: 190494 URL: http://svn.freebsd.org/changeset/base/190494 Log: - If (keysize+datasize)%(bsize=14)==0, insertion of a `big key' would cause an invariant (actually, an ugly hack) to fail, and all Hell would break loose.

svn commit: r190493 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:40:48 2009 New Revision: 190493 URL: http://svn.freebsd.org/changeset/base/190493 Log: Avoid NULL deference which causes DEBUG1 to crash, not to print useful information. Obtained from:OpenBSD Modified: head/lib/libc/db/hash/hash_buf.c Modif

svn commit: r190492 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:38:31 2009 New Revision: 190492 URL: http://svn.freebsd.org/changeset/base/190492 Log: - Avoid overwriting the cursor page when the cursor page becomes the LRU page. - Fix for sequential retrieval failure when using large key/data pairs. Obtained fr

svn commit: r190491 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:30:43 2009 New Revision: 190491 URL: http://svn.freebsd.org/changeset/base/190491 Log: Fix a crash when iterating over a hash and removing its elements. Obtained from:OpenBSD Modified: head/lib/libc/db/hash/hash.c head/lib/libc/db/hash/hash_p

svn commit: r190490 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:25:33 2009 New Revision: 190490 URL: http://svn.freebsd.org/changeset/base/190490 Log: Only squeeze a short key/value pair onto a page with other complete key/value pairs, not onto a page containing the end of a big pair. Obtained from:NetBSD vi

svn commit: r190489 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:23:10 2009 New Revision: 190489 URL: http://svn.freebsd.org/changeset/base/190489 Log: Diff reduce against OpenBSD, no functional change. Modified: head/lib/libc/db/hash/hash.c head/lib/libc/db/hash/hash_page.c Modified: head/lib/libc/db/hash/hash.c

svn commit: r190488 - head/sys/dev/ed

2009-03-27 Thread Warner Losh
Author: imp Date: Sat Mar 28 06:22:11 2009 New Revision: 190488 URL: http://svn.freebsd.org/changeset/base/190488 Log: When reading via memory, read in (amount + 1) / 2 (to properly round up) rather than amount + 1 / 2, which is the same as amount, or 2x too many words which leads to data co

svn commit: r190487 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:12:39 2009 New Revision: 190487 URL: http://svn.freebsd.org/changeset/base/190487 Log: Return meaningful errno in overflow case; print error message to stderr in one more case. Obtained from:NetBSD via OpenBSD Modified: head/lib/libc/db/hash/

svn commit: r190486 - head/lib/libc/db/hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 06:05:53 2009 New Revision: 190486 URL: http://svn.freebsd.org/changeset/base/190486 Log: Use pread(2) and pwrite(2) instead of lseek(2) + read(2) / write(2). Obtained from:NetBSD via OpenBSD Modified: head/lib/libc/db/hash/hash.c head/lib/libc/

svn commit: r190485 - in head/lib/libc/db: btree hash

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 05:57:27 2009 New Revision: 190485 URL: http://svn.freebsd.org/changeset/base/190485 Log: db/btree/bt_open.c: check return value of snprintf() and return value if the result is truncated. db/hash/hash_page.c: use the same way to create temporary file as

svn commit: r190484 - in head/lib/libc/db: btree hash recno

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 05:45:29 2009 New Revision: 190484 URL: http://svn.freebsd.org/changeset/base/190484 Log: Several signed/unsigned warning fixes. Modified: head/lib/libc/db/btree/bt_put.c head/lib/libc/db/btree/bt_split.c head/lib/libc/db/hash/hash.c head/lib/libc/db/has

svn commit: r190483 - head/sys/dev/ed

2009-03-27 Thread Warner Losh
Author: imp Date: Sat Mar 28 04:56:56 2009 New Revision: 190483 URL: http://svn.freebsd.org/changeset/base/190483 Log: It turns out that the Toshiba LANCT00A PC Card is really like the Toshiba PCETC ISA card, and even has the same board type code in the card ID (0x14). So, for this card, ca

svn commit: r190482 - in head/lib/libc/db: . btree hash mpool

2009-03-27 Thread Xin LI
Author: delphij Date: Sat Mar 28 04:00:46 2009 New Revision: 190482 URL: http://svn.freebsd.org/changeset/base/190482 Log: When allocating memory, zero out them if we don't intend to overwrite them all; before freeing memory, zero out them before we release it as free heap. This will elimin

svn commit: r190481 - head/sys/sys

2009-03-27 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Mar 27 21:47:56 2009 New Revision: 190481 URL: http://svn.freebsd.org/changeset/base/190481 Log: Add new V* constants, neccessary for granular permission checks in NFSv4 ACLs. While here, get rid of VALLPERM; it wasn't used anyway. Approved by: rwatson (mentor)

svn commit: r190480 - svnadmin/conf

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 21:41:07 2009 New Revision: 190480 URL: http://svn.freebsd.org/changeset/base/190480 Log: Add Rick Macklem. Approved by: core Modified: svnadmin/conf/access svnadmin/conf/mentors Modified: svnadmin/conf/access =

svn commit: r190479 - in stable/6/sys: . contrib/pf dev/bge dev/cxgb

2009-03-27 Thread Marius Strobl
Author: marius Date: Fri Mar 27 21:21:35 2009 New Revision: 190479 URL: http://svn.freebsd.org/changeset/base/190479 Log: MFC: r190319 - Ensure that INTx isn't disabled, as these chips apparently have a quirk requiring it to be enabled even when using MSI. - Remove a comment which no

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

2009-03-27 Thread Marius Strobl
Author: marius Date: Fri Mar 27 21:21:22 2009 New Revision: 190478 URL: http://svn.freebsd.org/changeset/base/190478 Log: MFC: r190319 - Ensure that INTx isn't disabled, as these chips apparently have a quirk requiring it to be enabled even when using MSI. This makes the latter work

svn commit: r190477 - head/share/skel

2009-03-27 Thread Ruslan Ermilov
Author: ru Date: Fri Mar 27 21:13:14 2009 New Revision: 190477 URL: http://svn.freebsd.org/changeset/base/190477 Log: Add explicit test so that non-existence of /usr/games/fortune doesn't affect command exit status. Modified: head/share/skel/dot.login head/share/skel/dot.profile Modified

svn commit: r190476 - head/sys/dev/pccard

2009-03-27 Thread Warner Losh
Author: imp Date: Fri Mar 27 20:40:17 2009 New Revision: 190476 URL: http://svn.freebsd.org/changeset/base/190476 Log: Sort NECINFORTIA correctly. Modified: head/sys/dev/pccard/pccarddevs Modified: head/sys/dev/pccard/pccarddevs ===

svn commit: r190475 - head/sys/dev/ed

2009-03-27 Thread Warner Losh
Author: imp Date: Fri Mar 27 19:15:28 2009 New Revision: 190475 URL: http://svn.freebsd.org/changeset/base/190475 Log: Add bromax axnet based cards to the mix. This was harvested from the linux driver. Not sure who sold it/rebadged it. Add stub entries for Mitsubishi B8895 and Toshiba L

svn commit: r190474 - head/usr.bin/login

2009-03-27 Thread Ed Schouten
Author: ed Date: Fri Mar 27 19:13:36 2009 New Revision: 190474 URL: http://svn.freebsd.org/changeset/base/190474 Log: Don't strip TTY device name to the last '/'. We've seen this bug in other applications before: we have some applications that use strrchr(tty, '/') on the TTY device name.

svn commit: r190473 - head/sys/dev/pccard

2009-03-27 Thread Warner Losh
Author: imp Date: Fri Mar 27 19:08:15 2009 New Revision: 190473 URL: http://svn.freebsd.org/changeset/base/190473 Log: Harvest a previously unknown Bromax design based on the AX88x90 from the Linux axnet driver. Modified: head/sys/dev/pccard/pccarddevs Modified: head/sys/dev/pccard/pccardd

svn commit: r190472 - head/sys/amd64/linux32

2009-03-27 Thread Doug Ambrisko
Author: ambrisko Date: Fri Mar 27 17:00:49 2009 New Revision: 190472 URL: http://svn.freebsd.org/changeset/base/190472 Log: Revert 190445 change to this file restoring: typedef l_long l_off_t; Change l_mmap_argv's to l_ulong for pgoff. This restores prior behaviour to consu

svn commit: r190471 - head/sys/dev/usb/controller

2009-03-27 Thread Andrew Thompson
Author: thompsa Date: Fri Mar 27 16:56:01 2009 New Revision: 190471 URL: http://svn.freebsd.org/changeset/base/190471 Log: The buffer start and end phys addresses should be 0x0 for an OHCI zero length packet, this fixes LS/FS devices on the Gateworks 2348 XScale board. Reviewed by: HPS

Re: svn commit: r190445 - in head/sys: amd64/linux32 compat/linprocfs compat/linux conf dev/ipmi modules/ipmi modules/linprocfs

2009-03-27 Thread Doug Ambrisko
Chagin Dmitry writes: | On Fri, Mar 27, 2009 at 08:47:01AM -0700, Doug Ambrisko wrote: | > Chagin Dmitry writes: | > | On Thu, Mar 26, 2009 at 05:08:59PM -0700, Doug Ambrisko wrote: | > [snip] | > | > Okay, I did some more instrumenting again and found that I was | > | > slightly wrong. The m

Re: svn commit: r190445 - in head/sys: amd64/linux32 compat/linprocfs compat/linux conf dev/ipmi modules/ipmi modules/linprocfs

2009-03-27 Thread Chagin Dmitry
On Fri, Mar 27, 2009 at 08:47:01AM -0700, Doug Ambrisko wrote: > Chagin Dmitry writes: > | On Thu, Mar 26, 2009 at 05:08:59PM -0700, Doug Ambrisko wrote: > [snip] > | > Okay, I did some more instrumenting again and found that I was > | > slightly wrong. The mmap that was failing was 0xcf79c

Re: svn commit: r190462 - head/sys/dev/wpi

2009-03-27 Thread Sam Leffler
Juli Mallett wrote: Author: jmallett Date: Fri Mar 27 05:44:53 2009 New Revision: 190462 URL: http://svn.freebsd.org/changeset/base/190462 Log: Put the "%d retries" debug message in the transmit path behind WPI_DEBUG_TX rather than behind a seemingly accidental constant likely left over from

svn commit: r190470 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb ufs/ffs ufs/ufs

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 15:57:52 2009 New Revision: 190470 URL: http://svn.freebsd.org/changeset/base/190470 Log: MFC r189737: The non-modifying EA VOPs are executed with only shared vnode lock taken. Provide a custom lock around initializing and tearing down EA area, to prevent both

Re: svn commit: r190445 - in head/sys: amd64/linux32 compat/linprocfs compat/linux conf dev/ipmi modules/ipmi modules/linprocfs

2009-03-27 Thread Doug Ambrisko
Chagin Dmitry writes: | On Thu, Mar 26, 2009 at 05:08:59PM -0700, Doug Ambrisko wrote: [snip] | > Okay, I did some more instrumenting again and found that I was | > slightly wrong. The mmap that was failing was 0xcf79c000 and not | > 0xf. This probably makes since since the sign bit

svn commit: r190469 - head/sys/ufs/ffs

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 15:46:02 2009 New Revision: 190469 URL: http://svn.freebsd.org/changeset/base/190469 Log: Correct typo. Noted by: kensmith Modified: head/sys/ufs/ffs/ffs_vnops.c Modified: head/sys/ufs/ffs/ffs_vnops.c =

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

2009-03-27 Thread John Baldwin
Author: jhb Date: Fri Mar 27 15:45:52 2009 New Revision: 190468 URL: http://svn.freebsd.org/changeset/base/190468 Log: MFC: Improve the description of a few sysctls. Approved by: re (kib) Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/s

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

2009-03-27 Thread John Baldwin
Author: jhb Date: Fri Mar 27 15:19:51 2009 New Revision: 190467 URL: http://svn.freebsd.org/changeset/base/190467 Log: MFC: Release driver lock at the end of the watchdog routine instead of trying to acquire it again. Approved by: re (kib) Modified: stable/7/sys/ (props changed) s

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

2009-03-27 Thread Jamie Gritton
Author: jamie Date: Fri Mar 27 13:13:59 2009 New Revision: 190466 URL: http://svn.freebsd.org/changeset/base/190466 Log: Whitespace/spelling fixes in advance of upcoming functional changes. Approved by: bz (mentor) Modified: head/sys/compat/freebsd32/freebsd32_misc.c head/sys/kern/ker

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

2009-03-27 Thread Konstantin Belousov
Author: kib Date: Fri Mar 27 13:05:29 2009 New Revision: 190465 URL: http://svn.freebsd.org/changeset/base/190465 Log: MFC r190141: When ktracing namei operations, log a result of the __getcwd(). Approved by: re (kensmith) Modified: stable/7/sys/ (props changed) stable/7/sys/contr

svn commit: r190464 - head/lib/libc/sys

2009-03-27 Thread Diomidis Spinellis
Author: dds Date: Fri Mar 27 11:03:02 2009 New Revision: 190464 URL: http://svn.freebsd.org/changeset/base/190464 Log: Document missing requests. Modified: head/lib/libc/sys/ptrace.2 Modified: head/lib/libc/sys/ptrace.2