svn commit: r219813 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:31:35 2011 New Revision: 219813 URL: http://svn.freebsd.org/changeset/base/219813 Log: If there is any traffic on one of out descriptors, we were not checking for long running hooks. Fix it by not using select(2) timeout to decide if we want to check hooks or

svn commit: r219814 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:33:58 2011 New Revision: 219814 URL: http://svn.freebsd.org/changeset/base/219814 Log: When creating connection on behalf of primary worker, set pjdlog prefix to resource name and role, so that any logs related to that can be identified properly. MFC

svn commit: r219816 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:37:50 2011 New Revision: 219816 URL: http://svn.freebsd.org/changeset/base/219816 Log: Use snprlcat() instead of two strlcat(3)s. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r219817 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:38:24 2011 New Revision: 219817 URL: http://svn.freebsd.org/changeset/base/219817 Log: Log when we start hooks checking and when we execute a hook. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

Re: svn commit: r219791 - head/sys/net

2011-03-21 Thread Gleb Smirnoff
On Sun, Mar 20, 2011 at 08:35:00AM +, Dmitry Chagin wrote: D Author: dchagin D Date: Sun Mar 20 08:35:00 2011 D New Revision: 219791 D URL: http://svn.freebsd.org/changeset/base/219791 D D Log: D Remove dead code. This wasn't a code, but defines. Removing them saves nothing, but primitives

svn commit: r219818 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 08:54:59 2011 New Revision: 219818 URL: http://svn.freebsd.org/changeset/base/219818 Log: In hast.conf we define the other node's address in 'remote' variable. This way we know how to connect to secondary node when we are primary. The same variable is used by

svn commit: r219819 - in head: sys/amd64/include sys/conf sys/dev/hptmv sys/i386/include sys/kern sys/net sys/netinet sys/netinet6 sys/sys sys/vm usr.sbin/config usr.sbin/ndp

2011-03-21 Thread Jeff Roberson
Author: jeff Date: Mon Mar 21 09:40:01 2011 New Revision: 219819 URL: http://svn.freebsd.org/changeset/base/219819 Log: - Merge changes to the base system to support OFED. These include a wider arg2 for sysctl, updates to vlan code, IFT_INFINIBAND, and other miscellaneous small

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Sun, 20 Mar 2011, Kirk McKusick wrote: Date: Sun, 20 Mar 2011 13:25:20 -0700 From: Doug Barton do...@freebsd.org To: Marius Strobl mar...@alchemy.franken.de CC: Kirk McKusick mckus...@mckusick.com, Nathan Whitehorn nwhiteh...@freebsd.org, svn-src-head@FreeBSD.org, Jeff

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Scott Long
On Mar 20, 2011, at 10:34 PM, Jeff Roberson wrote: On Sun, 20 Mar 2011, Kirk McKusick wrote: Date: Sun, 20 Mar 2011 13:25:20 -0700 From: Doug Barton do...@freebsd.org To: Marius Strobl mar...@alchemy.franken.de CC: Kirk McKusick mckus...@mckusick.com, Nathan Whitehorn

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Sun, 20 Mar 2011, Doug Barton wrote: On 03/20/2011 09:22, Marius Strobl wrote: I fear it's still a bit premature for enable SU+J by default. Rather recently I was told about a SU+J filesystems lost after a panic that happend after snapshotting it (report CC'ed, maybe he can provide some

svn commit: r219821 - head/sbin/hastctl

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 11:52:00 2011 New Revision: 219821 URL: http://svn.freebsd.org/changeset/base/219821 Log: Forgot to commit this as a part of r219818. MFC after:1 week Modified: head/sbin/hastctl/hastctl.c Modified: head/sbin/hastctl/hastctl.c

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

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Mon Mar 21 12:51:13 2011 New Revision: 219822 URL: http://svn.freebsd.org/changeset/base/219822 Log: Fix static ucastrate for ath_rate_sample. * Pull out the static rix stuff into a different function * I know this may slightly drop performance, but check if a static

svn commit: r219823 - in head/tools/tools/nanobsd/rescue: . Files/root

2011-03-21 Thread Michael Reifenberger
Author: mr Date: Mon Mar 21 13:23:25 2011 New Revision: 219823 URL: http://svn.freebsd.org/changeset/base/219823 Log: Delete all GPT partitions at once. (Suggested by Andrey V. Elsukov bu7c...@yandex.ru) Fix amd64 merge script. Modified:

svn commit: r219827 - head/sys/netgraph

2011-03-21 Thread Gleb Smirnoff
Author: glebius Date: Mon Mar 21 14:18:40 2011 New Revision: 219827 URL: http://svn.freebsd.org/changeset/base/219827 Log: Improve locking of creating and dropping links in the graph, acquiring the topology mutex in the following functions, that manipulate pointers to peer nodes: -

svn commit: r219828 - head/sys/netinet

2011-03-21 Thread Sergey Kandaurov
Author: pluknet Date: Mon Mar 21 14:19:40 2011 New Revision: 219828 URL: http://svn.freebsd.org/changeset/base/219828 Log: Reference ifaddr object before unlocking as it can be freed from another context at the moment of later access. PR: kern/15 Submitted by: Andrew

Re: svn commit: r219791 - head/sys/net

2011-03-21 Thread Chagin Dmitry
On Mon, Mar 21, 2011 at 11:38:20AM +0300, Gleb Smirnoff wrote: On Sun, Mar 20, 2011 at 08:35:00AM +, Dmitry Chagin wrote: D Author: dchagin D Date: Sun Mar 20 08:35:00 2011 D New Revision: 219791 D URL: http://svn.freebsd.org/changeset/base/219791 D D Log: D Remove dead code.

svn commit: r219830 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:50:12 2011 New Revision: 219830 URL: http://svn.freebsd.org/changeset/base/219830 Log: Detect situation where resource internal identifier differs. This means that both nodes have separately managed resources that don't have the same data. MFC after:

svn commit: r219831 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:51:16 2011 New Revision: 219831 URL: http://svn.freebsd.org/changeset/base/219831 Log: Be pedantic and free nvout before exiting. MFC after:1 week Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r219832 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 14:53:27 2011 New Revision: 219832 URL: http://svn.freebsd.org/changeset/base/219832 Log: Increase debug level of Checking hooks. message. MFC after:1 week Modified: head/sbin/hastd/hooks.c Modified: head/sbin/hastd/hooks.c

svn commit: r219833 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 15:08:10 2011 New Revision: 219833 URL: http://svn.freebsd.org/changeset/base/219833 Log: Remove stale comment. Yes, it is valid to set role back to init. MFC after:1 week Modified: head/sbin/hastd/control.c Modified: head/sbin/hastd/control.c

svn commit: r219834 - head/sbin/ifconfig

2011-03-21 Thread Glen Barber
Author: gjb (doc committer) Date: Mon Mar 21 15:17:02 2011 New Revision: 219834 URL: http://svn.freebsd.org/changeset/base/219834 Log: Bump date from previous commit. Modified: head/sbin/ifconfig/ifconfig.8 Modified: head/sbin/ifconfig/ifconfig.8

svn commit: r219837 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 15:29:20 2011 New Revision: 219837 URL: http://svn.freebsd.org/changeset/base/219837 Log: Before handling any events on descriptors check signals so we can update our info about worker processes if any of them was terminated in the meantime. This fixes the

svn commit: r219839 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Mon Mar 21 17:12:03 2011 New Revision: 219839 URL: http://svn.freebsd.org/changeset/base/219839 Log: This CLKDRV workaround should only be for AR5416 v2.0/2.1; the check was too strict and enabled it for all non AR5416-v2.2 chipsets - including later ones. Modified:

svn commit: r219840 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Mon Mar 21 17:44:52 2011 New Revision: 219840 URL: http://svn.freebsd.org/changeset/base/219840 Log: Back that commit out - something's broken, and I need to figure out what/why. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modified:

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Michael Moll
Hi All, On Sun, Mar 20, 2011 at 05:22:12PM +0100, Marius Strobl wrote: I fear it's still a bit premature for enable SU+J by default. Rather recently I was told about a SU+J filesystems lost after a panic that happend after snapshotting it (report CC'ed, maybe he can provide some more details)

svn commit: r219841 - in head/sys: conf ia64/ia64 ia64/include

2011-03-21 Thread Marcel Moolenaar
Author: marcel Date: Mon Mar 21 18:20:53 2011 New Revision: 219841 URL: http://svn.freebsd.org/changeset/base/219841 Log: Fix switching to physical mode as part of calling into EFI runtime services or PAL procedures. The new implementation is based on specific functions that are known to be

Re: svn commit: r219676 - head/sys/x86/x86

2011-03-21 Thread Bruce Evans
On Sun, 20 Mar 2011, David Malone wrote: On Wed, Mar 16, 2011 at 04:34:10PM +1100, Bruce Evans wrote: Please revert. I use this for setting timecounters from userland. The sysctl is not a hack, but the primary user interface for managing the TSC frequency. The

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Mon, 21 Mar 2011, Michael Moll wrote: Hi All, On Sun, Mar 20, 2011 at 05:22:12PM +0100, Marius Strobl wrote: I fear it's still a bit premature for enable SU+J by default. Rather recently I was told about a SU+J filesystems lost after a panic that happend after snapshotting it (report

svn commit: r219843 - head/sbin/hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 21:14:07 2011 New Revision: 219843 URL: http://svn.freebsd.org/changeset/base/219843 Log: Fix typo. MFC after:1 week Modified: head/sbin/hastd/secondary.c Modified: head/sbin/hastd/secondary.c

svn commit: r219846 - in head/sys/ofed: drivers/infiniband/hw/mthca include/linux include/rdma

2011-03-21 Thread Konstantin Belousov
Author: kib Date: Mon Mar 21 21:16:40 2011 New Revision: 219846 URL: http://svn.freebsd.org/changeset/base/219846 Log: Allow the ofed modules to be compiled on i386. Reviewed by: jeff Modified: head/sys/ofed/drivers/infiniband/hw/mthca/mthca_main.c head/sys/ofed/include/linux/gfp.h

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

2011-03-21 Thread Hans Petter Selasky
Author: hselasky Date: Mon Mar 21 21:16:25 2011 New Revision: 219845 URL: http://svn.freebsd.org/changeset/base/219845 Log: - Bugfix: Fix a EHCI hardware race, where the hardware computed data toggle value is updated after that we read it in the queue-head. This patch can fix problems with

svn commit: r219847 - in head/sbin: hastctl hastd

2011-03-21 Thread Pawel Jakub Dawidek
Author: pjd Date: Mon Mar 21 21:31:50 2011 New Revision: 219847 URL: http://svn.freebsd.org/changeset/base/219847 Log: When dropping privileges prefer capsicum over chroot+setgid+setuid. We can use capsicum for secondary worker processes and hastctl. When working as primary we drop

svn commit: r219848 - head/sys/dev/usb/input

2011-03-21 Thread Hans Petter Selasky
Author: hselasky Date: Mon Mar 21 21:34:12 2011 New Revision: 219848 URL: http://svn.freebsd.org/changeset/base/219848 Log: - Do not output the trailing newline to the HID report descriptor information, sysctl utility will show it for us. - Modify sysctl node description to make it

svn commit: r219849 - head/sys/modules

2011-03-21 Thread Jeff Roberson
Author: jeff Date: Mon Mar 21 21:35:19 2011 New Revision: 219849 URL: http://svn.freebsd.org/changeset/base/219849 Log: - For now, disable ofed module build unless MK_OFED is set. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Michael Moll
Hi, On Mon, Mar 21, 2011 at 11:02:10AM -1000, Jeff Roberson wrote: Sorry, no details available, as I didn't record the panic and problems back then. However this was not the first panic which I attribute (maybe wrongly) to SUJ and as an consequence now all my UFS filesystems have SUJ turned

svn commit: r219850 - head/lib/libutil

2011-03-21 Thread Glen Barber
Author: gjb (doc committer) Date: Mon Mar 21 23:59:20 2011 New Revision: 219850 URL: http://svn.freebsd.org/changeset/base/219850 Log: s/buffer/buf as is used in the code. Submitted by: arundel (via doc@) MFC after:3 days Modified: head/lib/libutil/humanize_number.3 Modified:

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

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 00:11:04 2011 New Revision: 219851 URL: http://svn.freebsd.org/changeset/base/219851 Log: Remove the merlin delay workaround here, it isn't appropriate for the analog bank writes as Merlin never does them. Modified: head/sys/dev/ath/ath_hal/ah.c Modified:

svn commit: r219852 - in head/sys/dev/ath/ath_hal: ar9001 ar9002

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 00:12:26 2011 New Revision: 219852 URL: http://svn.freebsd.org/changeset/base/219852 Log: Even though it's very unlikely the misc mode register setting at -attach- would be a problem, make sure it isn't overwritten by whatever is in there at cold reset.

svn commit: r219853 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 00:14:17 2011 New Revision: 219853 URL: http://svn.freebsd.org/changeset/base/219853 Log: Bring over a few queue changes from ath9k: * add pspoll/uapsd queue setup defaults; * enable the exponential backoff window rather than the random backoff window

svn commit: r219854 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 00:43:58 2011 New Revision: 219854 URL: http://svn.freebsd.org/changeset/base/219854 Log: Do a bit of spring cleaning in the board setup code, just to bring it in line with the rest of the register initialisation. I've verified that the 2/5ghz board values

svn commit: r219855 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 00:52:44 2011 New Revision: 219855 URL: http://svn.freebsd.org/changeset/base/219855 Log: Break out the RF mode setup into ar5416SetRfMode(), mirroring what ath9k does. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Modified:

svn commit: r219856 - in head/release: . amd64 i386 ia64 powerpc sparc64

2011-03-21 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Mar 22 01:14:53 2011 New Revision: 219856 URL: http://svn.freebsd.org/changeset/base/219856 Log: Use labels to find release media instead of hard-coded device paths. This makes booting more reliable (and working at all on USB sticks). While here, move

svn commit: r219857 - head/share/man/man7

2011-03-21 Thread Nathan Whitehorn
Author: nwhitehorn Date: Tue Mar 22 01:21:51 2011 New Revision: 219857 URL: http://svn.freebsd.org/changeset/base/219857 Log: Update release(7) and build(7) to reflect new release infrastructure for the new installer. Modified: head/share/man/man7/build.7 head/share/man/man7/release.7

svn commit: r219858 - head/share/examples/cvsup

2011-03-21 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 22 04:31:35 2011 New Revision: 219858 URL: http://svn.freebsd.org/changeset/base/219858 Log: Give better URL to the list of available CVSup mirrors. Modified: head/share/examples/cvsup/cvs-supfile head/share/examples/cvsup/doc-supfile

svn commit: r219859 - head/sys/ofed/drivers/net/mlx4

2011-03-21 Thread Jeff Roberson
Author: jeff Date: Tue Mar 22 04:50:47 2011 New Revision: 219859 URL: http://svn.freebsd.org/changeset/base/219859 Log: - Don't use a separate set of rx queues for UDP, hash them into the same set as TCP. - Eliminate the fully linear non-scatter/gather rx path, there is no harm in

svn commit: r219860 - head/sys/dev/ath/ath_hal/ar5416

2011-03-21 Thread Adrian Chadd
Author: adrian Date: Tue Mar 22 05:47:48 2011 New Revision: 219860 URL: http://svn.freebsd.org/changeset/base/219860 Log: Set the right CCA register. Obtained From:ath9k Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Modified: