svn commit: r218010 - head/usr.sbin/usbdump

2011-01-28 Thread Hans Petter Selasky
Author: hselasky Date: Fri Jan 28 08:00:57 2011 New Revision: 218010 URL: http://svn.freebsd.org/changeset/base/218010 Log: - Remove double semicolon. - Remove reference to sprintf. Use printf directly. This part of the code should be optimised further to avoid many small printouts.

svn commit: r218011 - head/sys/dev/ath/ath_hal

2011-01-28 Thread Adrian Chadd
Author: adrian Date: Fri Jan 28 08:35:55 2011 New Revision: 218011 URL: http://svn.freebsd.org/changeset/base/218011 Log: Bring in some 802.11n packet duration calculation functions from a mix of Sam/Rui and linux ath9k . This will eventually be used by rate control modules and by the TX

svn commit: r218012 - head/sys/dev/ath/ath_hal/ar5212

2011-01-28 Thread Adrian Chadd
Author: adrian Date: Fri Jan 28 08:45:19 2011 New Revision: 218012 URL: http://svn.freebsd.org/changeset/base/218012 Log: Make space for the extended 802.11n MCS rate tables. Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212.h Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212.h

svn commit: r218013 - head/sys/dev/ath/ath_rate/sample

2011-01-28 Thread Adrian Chadd
Author: adrian Date: Fri Jan 28 08:57:58 2011 New Revision: 218013 URL: http://svn.freebsd.org/changeset/base/218013 Log: (Mostly) teach ath_rate_sample about MCS rates. This is just the bare minimum needed to teach ath_rate_sample to try and handle MCS rates. It doesn't at all attempt

Re: svn commit: r217871 - head/sbin/mount

2011-01-28 Thread Bruce Evans
On Thu, 27 Jan 2011, Doug Barton wrote: On 01/26/2011 21:24, Bruce Evans wrote: On Wed, 26 Jan 2011, Doug Barton wrote: My concern was that the man page says that we don't support the option at all, but with a FreeBSD client and a solaris server it has a demonstrable effect. If someone

Re: svn commit: r218010 - head/usr.sbin/usbdump

2011-01-28 Thread Pawel Jakub Dawidek
On Fri, Jan 28, 2011 at 08:00:57AM +, Hans Petter Selasky wrote: Author: hselasky Date: Fri Jan 28 08:00:57 2011 New Revision: 218010 URL: http://svn.freebsd.org/changeset/base/218010 Log: - Remove double semicolon. - Remove reference to sprintf. Use printf directly. This part of

svn commit: r218014 - in head/sys: geom/part sys

2011-01-28 Thread Andrey V. Elsukov
Author: ae Date: Fri Jan 28 11:13:01 2011 New Revision: 218014 URL: http://svn.freebsd.org/changeset/base/218014 Log: Add new user-friendly aliases for partition types for the MBR and EBR schemes: fat32, ebr, linux-data, linux-raid, linux-swap and linux-lvm. Add bios-boot GUID and alias for

svn commit: r218015 - head/sbin/geom/class/part

2011-01-28 Thread Andrey V. Elsukov
Author: ae Date: Fri Jan 28 11:56:14 2011 New Revision: 218015 URL: http://svn.freebsd.org/changeset/base/218015 Log: Document the bios-boot partition type. MFC after:2 weeks Modified: head/sbin/geom/class/part/gpart.8 Modified: head/sbin/geom/class/part/gpart.8

svn commit: r218019 - head/sys/kern

2011-01-28 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 28 15:29:35 2011 New Revision: 218019 URL: http://svn.freebsd.org/changeset/base/218019 Log: Do not trip a KASSERT if /dev/null cannot be opened for a setuid program. The fdcheckstd() function makes sure fds 0, 1 and 2 are open by opening /dev/null. If this

svn commit: r218024 - releng/7.4/sys/conf

2011-01-28 Thread Ken Smith
Author: kensmith Date: Fri Jan 28 17:10:37 2011 New Revision: 218024 URL: http://svn.freebsd.org/changeset/base/218024 Log: Ready for 7.4-RC3 builds. Approved by: re (implicit) Modified: releng/7.4/sys/conf/newvers.sh Modified: releng/7.4/sys/conf/newvers.sh

svn commit: r218025 - head/libexec/rtld-elf

2011-01-28 Thread Sergey Kandaurov
Author: pluknet Date: Fri Jan 28 17:30:24 2011 New Revision: 218025 URL: http://svn.freebsd.org/changeset/base/218025 Log: Remove SuperH architecture from a comment as we do not support it. Presumably it was leaked from NetBSD together with rtld-elf mips support. Approved by: kib

svn commit: r218026 - head/sys/kern

2011-01-28 Thread Konstantin Belousov
Author: kib Date: Fri Jan 28 17:37:09 2011 New Revision: 218026 URL: http://svn.freebsd.org/changeset/base/218026 Log: If more than one thread allocated sf buffers for sendfile(2), and each of the threads needs more while current pool of the buffers is exhausted, then neither thread can

svn commit: r218027 - stable/8/etc/periodic/daily

2011-01-28 Thread Josh Paetzel
Author: jpaetzel Date: Fri Jan 28 18:25:51 2011 New Revision: 218027 URL: http://svn.freebsd.org/changeset/base/218027 Log: MFC: r217755 r217822 This script parses output of userland tools. In the case of a faulted zpool the output causes the script to bail out with syntax errors.

svn commit: r218031 - head/sys/compat/linux

2011-01-28 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 28 19:04:15 2011 New Revision: 218031 URL: http://svn.freebsd.org/changeset/base/218031 Log: Style(9) fixes. MFC after:1 Month. Modified: head/sys/compat/linux/linux_misc.c Modified: head/sys/compat/linux/linux_misc.c

svn commit: r218035 - stable/8/sys/gnu/fs/ext2fs

2011-01-28 Thread John Baldwin
Author: jhb Date: Fri Jan 28 20:21:41 2011 New Revision: 218035 URL: http://svn.freebsd.org/changeset/base/218035 Log: MFC 217702: Restore support for the 'async' and 'sync' mount options lost when switching to nmount(2). While here, sort the options. Modified:

svn commit: r218037 - head/sys/netinet

2011-01-28 Thread Randall Stewart
Author: rrs Date: Fri Jan 28 20:49:15 2011 New Revision: 218037 URL: http://svn.freebsd.org/changeset/base/218037 Log: Fix a bug in the way ECN-Echo chunk sends were being accounted for. The counting was such that we counted only when we queued a chunk, not when we sent it. Now keep an

svn commit: r218038 - head/sys/dev/alc

2011-01-28 Thread Pyun YongHyeon
Author: yongari Date: Fri Jan 28 21:03:32 2011 New Revision: 218038 URL: http://svn.freebsd.org/changeset/base/218038 Log: Fix logic error. Due to the bug, it incorrectly checked TXQ status which in turn can leave TXQ active. Submitted by: Brad ( brad comstyle dot com ) MFC after:

svn commit: r218039 - head/sys/netinet

2011-01-28 Thread Randall Stewart
Author: rrs Date: Fri Jan 28 21:05:21 2011 New Revision: 218039 URL: http://svn.freebsd.org/changeset/base/218039 Log: Keep track of the real last RTT on each net. This will be used for Data Center congestion control, we won't want to engage it in the ECN code unless we KNOW that the RTT

svn commit: r218040 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:36:01 2011 New Revision: 218040 URL: http://svn.freebsd.org/changeset/base/218040 Log: Initialize all global variables on pjdlog_init(). MFC after:1 week Modified: head/sbin/hastd/pjdlog.c Modified: head/sbin/hastd/pjdlog.c

svn commit: r218041 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:48:15 2011 New Revision: 218041 URL: http://svn.freebsd.org/changeset/base/218041 Log: Add function to close all unneeded descriptors after fork(2). MFC after:1 week Modified: head/sbin/hastd/hastd.c head/sbin/hastd/hastd.h Modified:

svn commit: r218042 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:51:40 2011 New Revision: 218042 URL: http://svn.freebsd.org/changeset/base/218042 Log: Add comments to places where we treat errors as ciritical, but it is possible to handle them more gracefully. MFC after:1 week Modified: head/sbin/hastd/primary.c

svn commit: r218043 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:52:37 2011 New Revision: 218043 URL: http://svn.freebsd.org/changeset/base/218043 Log: Close all unneeded descriptors after fork(2). MFC after:1 week Modified: head/sbin/hastd/primary.c head/sbin/hastd/secondary.c Modified:

svn commit: r218044 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:56:47 2011 New Revision: 218044 URL: http://svn.freebsd.org/changeset/base/218044 Log: Add function to assert that the only descriptors we have open are the ones we expect to be open. Also assert that they point at expected type. Because openlog(3) API is

svn commit: r218045 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 21:57:42 2011 New Revision: 218045 URL: http://svn.freebsd.org/changeset/base/218045 Log: Use newly added descriptors_assert() function to ensure only expected descriptors are open. MFC after:1 week Modified: head/sbin/hastd/primary.c

svn commit: r218046 - head/etc

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 22:28:12 2011 New Revision: 218046 URL: http://svn.freebsd.org/changeset/base/218046 Log: Add 'hast' user and 'hast' group that will be used by hastd (and maybe hastctl) to drop privileges. MFC after:1 week Modified: head/etc/group

svn commit: r218047 - head/etc

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 22:29:38 2011 New Revision: 218047 URL: http://svn.freebsd.org/changeset/base/218047 Log: Change hast user home directory to /var/empty. MFC after:1 week Modified: head/etc/master.passwd Modified: head/etc/master.passwd

svn commit: r218048 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 22:33:47 2011 New Revision: 218048 URL: http://svn.freebsd.org/changeset/base/218048 Log: Implement function that drops privileges by: - chrooting to /var/empty (user hast home directory), - setting groups to 'hast' (user hast primary group), - setting real

svn commit: r218049 - head/sbin/hastd

2011-01-28 Thread Pawel Jakub Dawidek
Author: pjd Date: Fri Jan 28 22:35:46 2011 New Revision: 218049 URL: http://svn.freebsd.org/changeset/base/218049 Log: Drop privileges in worker processes. Accepting connections and handshaking in secondary is still done before dropping privileges. It should be implemented by only

svn commit: r218050 - head/sys/dev/tsec

2011-01-28 Thread Marcel Moolenaar
Author: marcel Date: Fri Jan 28 23:40:13 2011 New Revision: 218050 URL: http://svn.freebsd.org/changeset/base/218050 Log: Don't use the MAC address in the device tree if it's all zeroes (i.e. 00-00-00-00-00-00). Use the currently programmed address instead. While here, simplify the

svn commit: r218051 - head/libexec/rtld-elf

2011-01-28 Thread Alexander Kabaev
Author: kan Date: Fri Jan 28 23:44:57 2011 New Revision: 218051 URL: http://svn.freebsd.org/changeset/base/218051 Log: Eliminate the use of symlook_needed function in favor of DAGS. Place elements on DAG lists in breadth-first order. This allows us to walk pre-built list in all cases

Re: svn commit: r218046 - head/etc

2011-01-28 Thread Bjoern A. Zeeb
On Fri, 28 Jan 2011, Pawel Jakub Dawidek wrote: Author: pjd Date: Fri Jan 28 22:28:12 2011 New Revision: 218046 URL: http://svn.freebsd.org/changeset/base/218046 Log: Add 'hast' user and 'hast' group that will be used by hastd (and maybe hastctl) to drop privileges. Does it really have to

Re: svn commit: r218046 - head/etc

2011-01-28 Thread Andrew Thompson
On 29 January 2011 13:10, Bjoern A. Zeeb b...@freebsd.org wrote: On Fri, 28 Jan 2011, Pawel Jakub Dawidek wrote: Author: pjd Date: Fri Jan 28 22:28:12 2011 New Revision: 218046 URL: http://svn.freebsd.org/changeset/base/218046 Log:  Add 'hast' user and 'hast' group that will be used by

svn commit: r218054 - head/sys/arm/s3c2xx0

2011-01-28 Thread Andrew Turner
Author: andrew Date: Sat Jan 29 00:46:11 2011 New Revision: 218054 URL: http://svn.freebsd.org/changeset/base/218054 Log: Move the load address of the kernel to the start of KVA as the s3c24x0 copy of initarm expects the kernel to be loaded there. Approved by: imp (mentor) Modified:

svn commit: r218055 - head/sys/dev/cs

2011-01-28 Thread Andrew Turner
Author: andrew Date: Sat Jan 29 00:53:58 2011 New Revision: 218055 URL: http://svn.freebsd.org/changeset/base/218055 Log: Use bus space functions rather than inw/outw to help a future port of the driver to ARM. Approved by: imp (mentor) Modified: head/sys/dev/cs/if_cs.c

svn commit: r218056 - head/sys/dev/xen/netfront

2011-01-28 Thread Justin T. Gibbs
Author: gibbs Date: Sat Jan 29 02:36:45 2011 New Revision: 218056 URL: http://svn.freebsd.org/changeset/base/218056 Log: Fix bug in the netfront driver that caused excessive packet drops during receive processing. Remove unnecessary restrictions on the mbuf chain length built during an

svn commit: r218057 - head/tools/tools/ath/athpow

2011-01-28 Thread Adrian Chadd
Author: adrian Date: Sat Jan 29 04:34:30 2011 New Revision: 218057 URL: http://svn.freebsd.org/changeset/base/218057 Log: Keep this in sync with the ar5212 power rate table size. This doesn't yet know about the 802.11n radios or rates. Modified: head/tools/tools/ath/athpow/athpow.c

svn commit: r218058 - in head/sys: conf dev/ath modules/ath

2011-01-28 Thread Adrian Chadd
Author: adrian Date: Sat Jan 29 05:08:21 2011 New Revision: 218058 URL: http://svn.freebsd.org/changeset/base/218058 Log: Break out the debug macros from if_ath.c into if_ath_debug.[ch] . This is prep work for breaking out the TX path into a separate set of source files. Added:

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

2011-01-28 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 29 07:22:33 2011 New Revision: 218059 URL: http://svn.freebsd.org/changeset/base/218059 Log: My style(9) bug. Pointed out by: kib MFC after:1 Month. Modified: head/sys/amd64/linux32/linux32_machdep.c Modified: