svn commit: r216224 - head/usr.bin/truss

2010-12-06 Thread Jaakko Heinonen
Author: jh Date: Mon Dec 6 09:18:11 2010 New Revision: 216224 URL: http://svn.freebsd.org/changeset/base/216224 Log: Don't write the terminating NUL past end of buffer. PR: bin/152345 Submitted by: Mateusz Guzik Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin

svn commit: r216225 - head/usr.sbin/rarpd

2010-12-06 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 6 09:37:56 2010 New Revision: 216225 URL: http://svn.freebsd.org/changeset/base/216225 Log: Catch up with kernel using time_uptime to drive ARP timeouts. Noticed by: jilles Modified: head/usr.sbin/rarpd/rarpd.c Modified: head/usr.sbin/rarpd/rarpd.c =

svn commit: r216226 - head/libexec/bootpd

2010-12-06 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 6 09:39:36 2010 New Revision: 216226 URL: http://svn.freebsd.org/changeset/base/216226 Log: Catch up with kernel using time_uptime to drive ARP timeouts. Noticed by: jilles Modified: head/libexec/bootpd/rtmsg.c Modified: head/libexec/bootpd/rtmsg.c =

svn commit: r216227 - in head: libexec/mknetid sys/arm/at91 sys/dev/bwn sys/dev/mps sys/dev/siba sys/dev/sis sys/mips/mips usr.sbin/ac

2010-12-06 Thread Kevin Lo
Author: kevlo Date: Mon Dec 6 10:24:06 2010 New Revision: 216227 URL: http://svn.freebsd.org/changeset/base/216227 Log: Fix double ;; Modified: head/libexec/mknetid/parse_group.c head/sys/arm/at91/at91_pmc.c head/sys/dev/bwn/if_bwn.c head/sys/dev/mps/mps.c head/sys/dev/siba/siba_bwn.

svn commit: r216229 - head/usr.sbin/boot0cfg

2010-12-06 Thread Bruce Cran
Author: brucec Date: Mon Dec 6 11:37:24 2010 New Revision: 216229 URL: http://svn.freebsd.org/changeset/base/216229 Log: Revert r209469: it causes the rest of the function to be bypassed. Reported by: ae Modified: head/usr.sbin/boot0cfg/boot0cfg.c Modified: head/usr.sbin/boot0cfg/boot0

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

2010-12-06 Thread Ivan Voras
Author: ivoras Date: Mon Dec 6 12:18:02 2010 New Revision: 216230 URL: http://svn.freebsd.org/changeset/base/216230 Log: Use GEOM stripesize field when calculating ashift. This will enable correct alignment on drives with large sector sizes (e.g. 4 KiB) but the implementation might need to

svn commit: r216231 - head/sys/amd64/amd64

2010-12-06 Thread Konstantin Belousov
Author: kib Date: Mon Dec 6 15:15:27 2010 New Revision: 216231 URL: http://svn.freebsd.org/changeset/base/216231 Log: Do not leak %rdx value in the previous image to the new image after execve(2). Note that ia32 binaries already handle this properly, since ia32_setregs() resets td_retval[1]

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

2010-12-06 Thread John Baldwin
Author: jhb Date: Mon Dec 6 15:19:03 2010 New Revision: 216232 URL: http://svn.freebsd.org/changeset/base/216232 Log: Add a manpage for SYSINIT() and SYSUNINIT(). PR: docs/132884 Submitted by: pluknet, hmp Added: head/share/man/man9/SYSINIT.9 (contents, props changed) Modi

svn commit: r216233 - head/sys/kern

2010-12-06 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 6 16:39:18 2010 New Revision: 216233 URL: http://svn.freebsd.org/changeset/base/216233 Log: Improve readability by factoring out the !RFPROC case. While here, turn K&R function definitions into ANSI. No functional changes. Reviewed by: kib@ Modified: hea

svn commit: r216234 - head/sys/kern

2010-12-06 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 6 16:45:36 2010 New Revision: 216234 URL: http://svn.freebsd.org/changeset/base/216234 Log: Fix style bug introduced by previous commit. Modified: head/sys/kern/kern_fork.c Modified: head/sys/kern/kern_fork.c ==

svn commit: r216235 - head/sys/dev/mfi

2010-12-06 Thread John Baldwin
Author: jhb Date: Mon Dec 6 17:02:56 2010 New Revision: 216235 URL: http://svn.freebsd.org/changeset/base/216235 Log: When masking direct and processor devices during an inquiry, properly preserve the upper bits of the first data byte. While here, shorten a few nearby lines. PR:

svn commit: r216236 - head/sys/dev/aac

2010-12-06 Thread John Baldwin
Author: jhb Date: Mon Dec 6 17:06:21 2010 New Revision: 216236 URL: http://svn.freebsd.org/changeset/base/216236 Log: When masking direct and processor devices during an inquiry, properly preserve the upper bits of the first data byte. Reviewed by: scottl MFC after:1 week Modifie

svn commit: r216237 - head/sys/dev/iwn

2010-12-06 Thread Bernhard Schmidt
Author: bschmidt Date: Mon Dec 6 18:28:39 2010 New Revision: 216237 URL: http://svn.freebsd.org/changeset/base/216237 Log: Fixes for monitor mode: - Do not call iwn_calib_reset() for monitor mode. We do not want to query information and do runtime calibration while in monitor mode. Poking

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

2010-12-06 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 12:18:03PM +, Ivan Voras wrote: > Author: ivoras > Date: Mon Dec 6 12:18:02 2010 > New Revision: 216230 > URL: http://svn.freebsd.org/changeset/base/216230 > > Log: > Use GEOM stripesize field when calculating ashift. This will enable correct > alignment on drives

svn commit: r216238 - head/sys/dev/wpi

2010-12-06 Thread Bernhard Schmidt
Author: bschmidt Date: Mon Dec 6 19:05:44 2010 New Revision: 216238 URL: http://svn.freebsd.org/changeset/base/216238 Log: Fix scanning after loosing a connection. The firmware assumes that as long as an association ID is set any scan is supposed to be a background scan. This implies that t

svn commit: r216239 - in head/games: bcd caesar factor morse number pom random

2010-12-06 Thread Ulrich Spoerlein
Author: uqs Date: Mon Dec 6 19:12:51 2010 New Revision: 216239 URL: http://svn.freebsd.org/changeset/base/216239 Log: Drop advertising clause in manpages. It was done a long time ago for the source code. Discussed with: core Modified: head/games/bcd/bcd.6 head/games/caesar/cae

svn commit: r216240 - head/sys/kern

2010-12-06 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Dec 6 19:15:38 2010 New Revision: 216240 URL: http://svn.freebsd.org/changeset/base/216240 Log: Add a KASSERT to make it obvious when fork_norfproc() is to be called, and set *procp to NULL in all cases. Previously, it was not being set in the ERESTART case. This i

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

2010-12-06 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 07:44:53PM +0100, Pawel Jakub Dawidek wrote: > On Mon, Dec 06, 2010 at 12:18:03PM +, Ivan Voras wrote: > > Author: ivoras > > Date: Mon Dec 6 12:18:02 2010 > > New Revision: 216230 > > URL: http://svn.freebsd.org/changeset/base/216230 > > > > Log: > > Use GEOM stripe

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

2010-12-06 Thread Ivan Voras
On 6 December 2010 19:44, Pawel Jakub Dawidek wrote: > On Mon, Dec 06, 2010 at 12:18:03PM +, Ivan Voras wrote: >> Author: ivoras >> Date: Mon Dec  6 12:18:02 2010 >> New Revision: 216230 >> URL: http://svn.freebsd.org/changeset/base/216230 >> >> Log: >>   Use GEOM stripesize field when calcula

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

2010-12-06 Thread Ivan Voras
On 6 December 2010 20:22, Pawel Jakub Dawidek wrote: > On Mon, Dec 06, 2010 at 07:44:53PM +0100, Pawel Jakub Dawidek wrote: >> On Mon, Dec 06, 2010 at 12:18:03PM +, Ivan Voras wrote: >> > Author: ivoras >> > Date: Mon Dec  6 12:18:02 2010 >> > New Revision: 216230 >> > URL: http://svn.freebsd.

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

2010-12-06 Thread Pawel Jakub Dawidek
On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: > Please persuade me on technical grounds why ashift, a property > intended for address alignment, should not be set in this way. If your > answer is "I don't know but you are still wrong because I say so" I > will respect it and back it o

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

2010-12-06 Thread John Baldwin
On Monday, December 06, 2010 2:53:27 pm Pawel Jakub Dawidek wrote: > On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: > > Please persuade me on technical grounds why ashift, a property > > intended for address alignment, should not be set in this way. If your > > answer is "I don't know

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

2010-12-06 Thread Ivan Voras
Firstly, thank you, your explanations and questions are very good and address the problems in a good way to discuss about it. I respect that you took the time to write this answer! On 6 December 2010 20:53, Pawel Jakub Dawidek wrote: > On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: >

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

2010-12-06 Thread Ivan Voras
On 6 December 2010 21:18, John Baldwin wrote: > On Monday, December 06, 2010 2:53:27 pm Pawel Jakub Dawidek wrote: >> On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: >> > Please persuade me on technical grounds why ashift, a property >> > intended for address alignment, should not be s

svn commit: r216241 - head/sys/dev/xen/blkfront

2010-12-06 Thread Colin Percival
Author: cperciva Date: Mon Dec 6 20:40:15 2010 New Revision: 216241 URL: http://svn.freebsd.org/changeset/base/216241 Log: Set correct maximum I/O length. We can only handle I/O of up to max_request_segments * PAGE_SIZE if the I/O is page-aligned; the largest I/O we can guarantee will work

svn commit: r216242 - head/sys/compat/ndis

2010-12-06 Thread Bernhard Schmidt
Author: bschmidt Date: Mon Dec 6 20:54:53 2010 New Revision: 216242 URL: http://svn.freebsd.org/changeset/base/216242 Log: Implement NdisGetRoutineAddress and MmGetSystemRoutineAddress used in newer Ralink drivers. Submitted by: Paul B Mahol Modified: head/sys/compat/ndis/kern_ndis.c

svn commit: r216243 - head/usr.sbin/sysinstall

2010-12-06 Thread Bruce Cran
Author: brucec Date: Mon Dec 6 20:55:14 2010 New Revision: 216243 URL: http://svn.freebsd.org/changeset/base/216243 Log: Ignore any failures with the "local" distribution since it's not present on release CDs and so will normally fail. installCommit() returns a DITEM_ value, not a Boolean.

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

2010-12-06 Thread Alexander Motin
On 06.12.2010 22:18, John Baldwin wrote: On Monday, December 06, 2010 2:53:27 pm Pawel Jakub Dawidek wrote: On Mon, Dec 06, 2010 at 08:35:36PM +0100, Ivan Voras wrote: Please persuade me on technical grounds why ashift, a property intended for address alignment, should not be set in this way. I

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

2010-12-06 Thread Bruce Cran
On Mon, Dec 06, 2010 at 09:31:39PM +0100, Ivan Voras wrote: > For what it's worth, apparently linux has the concept of "physical" > and "logical" sector sizes (possibly in addition to "stripe size"), > with physical being 4096 and logical 512, for example: > > # hdparm -I /dev/sde | grep size > Lo

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

2010-12-06 Thread Ivan Voras
On 6 December 2010 22:16, Bruce Cran wrote: > On Mon, Dec 06, 2010 at 09:31:39PM +0100, Ivan Voras wrote: >> For what it's worth, apparently linux has the concept of "physical" >> and "logical" sector sizes (possibly in addition to "stripe size"), >> with physical being 4096 and logical 512, for e

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

2010-12-06 Thread Alexander Motin
On 06.12.2010 23:22, Ivan Voras wrote: On 6 December 2010 22:16, Bruce Cran wrote: On Mon, Dec 06, 2010 at 09:31:39PM +0100, Ivan Voras wrote: For what it's worth, apparently linux has the concept of "physical" and "logical" sector sizes (possibly in addition to "stripe size"), with physical b

Re: svn commit: r216016 - head/sys/sparc64/include

2010-12-06 Thread Marius Strobl
On Thu, Dec 02, 2010 at 11:27:45AM -0600, Alan Cox wrote: > Marius Strobl wrote: > >On Wed, Dec 01, 2010 at 12:19:17PM -0600, Alan Cox wrote: > > > >>Marius Strobl wrote: > >> > >>>On Mon, Nov 29, 2010 at 08:23:08PM +0100, Marius Strobl wrote: > >>> > >>> > On Tue, Nov 30, 2010 at

Re: svn commit: r216016 - head/sys/sparc64/include

2010-12-06 Thread mdf
On Mon, Dec 6, 2010 at 2:07 PM, Marius Strobl wrote: [lots of snip] > With that one the kernel now survies memguard_init() but then panics > right afterwards when kmeminit() calls kmem_suballoc(): > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2010 The FreeBSD Proj

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

2010-12-06 Thread John Baldwin
On Monday, December 06, 2010 4:22:35 pm Ivan Voras wrote: > On 6 December 2010 22:16, Bruce Cran wrote: > > On Mon, Dec 06, 2010 at 09:31:39PM +0100, Ivan Voras wrote: > >> For what it's worth, apparently linux has the concept of "physical" > >> and "logical" sector sizes (possibly in addition to

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

2010-12-06 Thread Andriy Gapon
on 07/12/2010 00:00 John Baldwin said the following: > It is probably the 4K logical sector size that needs to > come up with a new field, not vice versa. Just expressing my overall confusion - 4K would be the physical size and 512 would be the logical one? My thinking: on a platter it's a 4K se

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

2010-12-06 Thread Ivan Voras
On 6 December 2010 23:36, Andriy Gapon wrote: > on 07/12/2010 00:00 John Baldwin said the following: >> It is probably the 4K logical sector size that needs to >> come up with a new field, not vice versa. > > Just expressing my overall confusion - 4K would be the physical size and 512 > would be t

svn commit: r216245 - in stable/8: etc etc/periodic/daily usr.sbin/bluetooth usr.sbin/bluetooth/ath3kfw

2010-12-06 Thread Maksim Yevmenkin
Author: emax Date: Mon Dec 6 22:45:29 2010 New Revision: 216245 URL: http://svn.freebsd.org/changeset/base/216245 Log: MFC r215195 Add firmware downloader for Atheros AR3011 based USB Bluetooth devices. Hardware donated by: Rusty Nejdl rnejdl at ringofsaturn dot com Tested by:

svn commit: r216246 - head/bin/sh

2010-12-06 Thread Jilles Tjoelker
Author: jilles Date: Mon Dec 6 23:49:27 2010 New Revision: 216246 URL: http://svn.freebsd.org/changeset/base/216246 Log: sh: Improve internal-representation-to-text code to avoid binary output. The code to translate the internal representation to text did not know about various additions

svn commit: r216247 - in head/lib/msun: man src

2010-12-06 Thread David Schultz
Author: das Date: Tue Dec 7 02:19:15 2010 New Revision: 216247 URL: http://svn.freebsd.org/changeset/base/216247 Log: Fix various nits in style and comments that were pointed out by bde. Code changes verified with md5. Modified: head/lib/msun/man/math.3 head/lib/msun/src/e_log2.c head/

svn commit: r216248 - head/lib/msun/src

2010-12-06 Thread David Schultz
Author: das Date: Tue Dec 7 03:29:36 2010 New Revision: 216248 URL: http://svn.freebsd.org/changeset/base/216248 Log: Another minor nit: Make sure the constant here is a float so the compiler doesn't promote the entire expression to double. Modified: head/lib/msun/src/e_log2f.c Modified: