svn commit: r256591 - stable/9/sys/kern

2013-10-15 Thread Konstantin Belousov
Author: kib Date: Wed Oct 16 06:15:40 2013 New Revision: 256591 URL: http://svnweb.freebsd.org/changeset/base/256591 Log: MFC r256213: Do not try to flush device vnodes from the buffer allocation context. Modified: stable/9/sys/kern/vfs_bio.c Directory Properties: stable/9/sys/ (props c

svn commit: r256590 - stable/9/sys/kern

2013-10-15 Thread Konstantin Belousov
Author: kib Date: Wed Oct 16 06:13:08 2013 New Revision: 256590 URL: http://svnweb.freebsd.org/changeset/base/256590 Log: MFC r256211: Do not flush buffers when the v_object of the passed vnode does not really belong to it. Modified: stable/9/sys/kern/vfs_subr.c Directory Properties: st

svn commit: r256589 - stable/9/sys/kern

2013-10-15 Thread Konstantin Belousov
Author: kib Date: Wed Oct 16 06:07:03 2013 New Revision: 256589 URL: http://svnweb.freebsd.org/changeset/base/256589 Log: MFC r256209: Reduce code duplication, introduce the getmaxfd() helper to calculate the max filedescriptor index. Modified: stable/9/sys/kern/kern_descrip.c Directory P

svn commit: r256587 - in head/sys: kern sys

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 16 05:02:01 2013 New Revision: 256587 URL: http://svnweb.freebsd.org/changeset/base/256587 Log: For VIMAGE kernels store vnet in the struct task, and set vnet context during task processing. Reported & tested by: mm Modified: head/sys/kern/subr_taskqueue.c

svn commit: r256586 - head/sys/net

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Wed Oct 16 04:59:59 2013 New Revision: 256586 URL: http://svnweb.freebsd.org/changeset/base/256586 Log: Rename Free() macro to R_Free(). This matches R_Malloc() and has much lower probability to clash with other headers. Submitted by: Eric van Gyzen Modified: hea

svn commit: r256585 - head/sys/mips/conf

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 04:22:26 2013 New Revision: 256585 URL: http://svnweb.freebsd.org/changeset/base/256585 Log: Now that all of the on-chip switch and basic platform support is updated, we can now add all the hardware bits for the DB120. * arge0/argemdio0 is hooked up to an A

svn commit: r256584 - head/sys/mips/conf

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 04:16:54 2013 New Revision: 256584 URL: http://svnweb.freebsd.org/changeset/base/256584 Log: Yes, this board has 128mb of RAM. Modified: head/sys/mips/conf/DB120 Modified: head/sys/mips/conf/DB120 ===

svn commit: r256583 - head/sys/dev/etherswitch/arswitch

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 04:15:35 2013 New Revision: 256583 URL: http://svnweb.freebsd.org/changeset/base/256583 Log: Add a big, big note to the vlan code that it needs to be taught about the new VLAN options for the AR9340 and AR8327 chips. Modified: head/sys/dev/etherswitch/arswitc

svn commit: r256582 - head/sys/dev/etherswitch/arswitch

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 04:15:03 2013 New Revision: 256582 URL: http://svnweb.freebsd.org/changeset/base/256582 Log: Add support for the AR9340 switch to the switch framework. * Do the hardware setup in the right order! * Modify/improve the chip probe check so it can actually

svn commit: r256581 - head/sys/powerpc/aim

2013-10-15 Thread Justin Hibbits
Author: jhibbits Date: Wed Oct 16 04:11:42 2013 New Revision: 256581 URL: http://svnweb.freebsd.org/changeset/base/256581 Log: Fix the Wii build, and remove an extraneous critical_enter(). Modified: head/sys/powerpc/aim/interrupt.c Modified: head/sys/powerpc/aim/interrupt.c =

svn commit: r256580 - head/sys/conf

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 04:10:28 2013 New Revision: 256580 URL: http://svnweb.freebsd.org/changeset/base/256580 Log: Add AR9340 switch support to the build. Modified: head/sys/conf/files Modified: head/sys/conf/files ===

svn commit: r256579 - stable/8/sbin/camcontrol

2013-10-15 Thread Mark Johnston
Author: markj Date: Wed Oct 16 03:37:22 2013 New Revision: 256579 URL: http://svnweb.freebsd.org/changeset/base/256579 Log: Fix an inverted check for the master user in "camcontrol security -U". Modified: stable/8/sbin/camcontrol/camcontrol.c Directory Properties: stable/8/sbin/camcontrol/

svn commit: r256578 - stable/9/sbin/camcontrol

2013-10-15 Thread Mark Johnston
Author: markj Date: Wed Oct 16 03:37:02 2013 New Revision: 256578 URL: http://svnweb.freebsd.org/changeset/base/256578 Log: Fix an inverted check for the master user in "camcontrol security -U". Modified: stable/9/sbin/camcontrol/camcontrol.c Directory Properties: stable/9/sbin/camcontrol/

svn commit: r256577 - head/sys/dev/etherswitch/arswitch

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 03:19:05 2013 New Revision: 256577 URL: http://svnweb.freebsd.org/changeset/base/256577 Log: Prepare to link in the AR934x SoC switch support. * Add an AR9340 switch version entry; * Support the switch being connected via MII; * Add a flag to note that a

svn commit: r256576 - head/sys/dev/etherswitch/arswitch

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 03:15:52 2013 New Revision: 256576 URL: http://svnweb.freebsd.org/changeset/base/256576 Log: Initial commit of AR9340 switch SoC support. This is just the chip initialisation code (for now.) It's not linked into the main build as it requires a bunch of o

svn commit: r256575 - head/sys/mips/atheros

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 03:11:18 2013 New Revision: 256575 URL: http://svnweb.freebsd.org/changeset/base/256575 Log: Add in the platform specific quirks to get the AR934x SoC ethernet up and running. * The MAC FIFO configurations needed updating; * Reset the MDIO block at the sa

svn commit: r256574 - head/usr.sbin/ppp

2013-10-15 Thread Kevin Lo
Author: kevlo Date: Wed Oct 16 02:55:31 2013 New Revision: 256574 URL: http://svnweb.freebsd.org/changeset/base/256574 Log: Fix logic error. MPPE only accepts protocol numbers 0x21 through 0xFA. PR: bin/175974 Modified: head/usr.sbin/ppp/mppe.c Modified: head/usr.sbin/ppp/mppe.c

svn commit: r256573 - head/sys/mips/atheros

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 02:46:00 2013 New Revision: 256573 URL: http://svnweb.freebsd.org/changeset/base/256573 Log: Add in a write barrier after each if_arge write. Without correct barriers, this code just plain doesn't work on the mips74k cores (specifically the AR9344.) In

svn commit: r256572 - head/sys/mips/atheros

2013-10-15 Thread Adrian Chadd
Author: adrian Date: Wed Oct 16 02:10:35 2013 New Revision: 256572 URL: http://svnweb.freebsd.org/changeset/base/256572 Log: Add bus space barriers to the AR71xx SPI code. This is required for correct, stable operation on the MIPS74k SoCs that are dual-issue, superscalar pipelines. T

Re: svn commit: r256542 - head/sys/powerpc/aim

2013-10-15 Thread Glen Barber
On Tue, Oct 15, 2013 at 02:52:45PM +, Justin Hibbits wrote: > Author: jhibbits > Date: Tue Oct 15 14:52:44 2013 > New Revision: 256542 > URL: http://svnweb.freebsd.org/changeset/base/256542 > > Log: > Move the PMC handling to the first level interrupt handler where it belongs. > Also add t

svn commit: r256571 - in head: cddl/contrib/opensolaris/lib/libdtrace/common cddl/lib/libdtrace sys/cddl/contrib/opensolaris/uts/common/dtrace sys/cddl/contrib/opensolaris/uts/common/sys sys/cddl/d...

2013-10-15 Thread Mark Johnston
Author: markj Date: Wed Oct 16 01:39:26 2013 New Revision: 256571 URL: http://svnweb.freebsd.org/changeset/base/256571 Log: Add a function, memstr, which can be used to convert a buffer of null-separated strings to a single string. This can be used to print the full arguments of a process us

svn commit: r256570 - head/sys/amd64/vmm

2013-10-15 Thread Neel Natu
Author: neel Date: Wed Oct 16 00:58:47 2013 New Revision: 256570 URL: http://svnweb.freebsd.org/changeset/base/256570 Log: Fix the witness warning that warned against calling uiomove() while holding the 'vmmdev_mtx' in vmmdev_rw(). Rely on the 'si_threadcount' accounting to ensure that we

svn commit: r256563 - head/sys/net

2013-10-15 Thread Maksim Yevmenkin
Author: emax Date: Tue Oct 15 21:28:51 2013 New Revision: 256563 URL: http://svnweb.freebsd.org/changeset/base/256563 Log: In the flowtable scanner, restart the scan at the last found position, not at position 0. Changes the scanner from O(N^2) to O(N). Submitted by: scottl Obtained fr

svn commit: r256562 - stable/10/sys/boot/i386/btx/btx

2013-10-15 Thread John Baldwin
Author: jhb Date: Tue Oct 15 21:08:37 2013 New Revision: 256562 URL: http://svnweb.freebsd.org/changeset/base/256562 Log: MFC 256293: Sanitize the %eflags returned by BIOS routines. Some BIOS routines enter protected mode and may leave protected-mode-specific flags like PSL_NT set when th

svn commit: r256561 - head/sbin/gvinum

2013-10-15 Thread Xin LI
Author: delphij Date: Tue Oct 15 21:04:46 2013 New Revision: 256561 URL: http://svnweb.freebsd.org/changeset/base/256561 Log: Prevent an unlikely, but real double free issue in gvinum(8). Coverity ID: 1018965 Modified: head/sbin/gvinum/gvinum.c Modified: head/sbin/gvinum/gvinum.c ==

svn commit: r256558 - svnadmin/conf

2013-10-15 Thread Xin LI
Author: delphij Date: Tue Oct 15 21:00:30 2013 New Revision: 256558 URL: http://svnweb.freebsd.org/changeset/base/256558 Log: Turn releng/9.2 over to secteam. Approved by: re (gjb) Modified: svnadmin/conf/approvers Modified: svnadmin/conf/approvers =

svn commit: r256557 - head/usr.bin/uname

2013-10-15 Thread Peter Wemm
Author: peter Date: Tue Oct 15 20:57:40 2013 New Revision: 256557 URL: http://svnweb.freebsd.org/changeset/base/256557 Log: Add -K (__FreeBSD_version of kernel) and -U (__FreeBSD_version of userland). Things like Makefile.inc1 resort to parsing /usr/include/osreldate.h with awk because this

svn commit: r256556 - head/sys/netinet

2013-10-15 Thread Michael Tuexen
Author: tuexen Date: Tue Oct 15 20:21:27 2013 New Revision: 256556 URL: http://svnweb.freebsd.org/changeset/base/256556 Log: Remove a buggy comparision when setting manually the path MTU. After fixing, the comparision would have become redundant. Thanks to Andrew Galante for reporting the is

svn commit: r256555 - head/sys/powerpc/powermac

2013-10-15 Thread Andreas Tobler
Author: andreast Date: Tue Oct 15 18:59:32 2013 New Revision: 256555 URL: http://svnweb.freebsd.org/changeset/base/256555 Log: Move the resource allocation from the ata_*_probe section to the ata_*_attach section. This prevents a boot crash on nearly all iMacs and PowerMacs/Books. The all

Re: svn commit: r256552 - in head/sys/cam: . ata scsi

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 05:59:42PM +, Alexander Motin wrote: A> Author: mav A> Date: Tue Oct 15 17:59:41 2013 A> New Revision: 256552 A> URL: http://svnweb.freebsd.org/changeset/base/256552 A> A> Log: A> Unify periph invalidation and destruction reporting. A> Print message containing devic

svn commit: r256553 - head/usr.sbin/bsdinstall/scripts

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 18:06:33 2013 New Revision: 256553 URL: http://svnweb.freebsd.org/changeset/base/256553 Log: Make ZFSBOOT_BEROOT_NAME be ROOT by default. This is what sysutils/beadm and OpenSolaris/Illumos beadm use. Remove /usr/local and /var/db/pkg datasets. Andriy Gapo

svn commit: r256552 - in head/sys/cam: . ata scsi

2013-10-15 Thread Alexander Motin
Author: mav Date: Tue Oct 15 17:59:41 2013 New Revision: 256552 URL: http://svnweb.freebsd.org/changeset/base/256552 Log: Unify periph invalidation and destruction reporting. Print message containing device model and serial number on invalidation. Requested by: glebius MFC after:1

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Teske, Devin
On Oct 15, 2013, at 10:53 AM, Allan Jude wrote: > On 2013-10-15 13:26, Teske, Devin wrote: >> On Oct 15, 2013, at 9:55 AM, Allan Jude wrote: >> >>> On 2013-10-15 12:43, Andriy Gapon wrote: on 15/10/2013 19:32 Allan Jude said the following: > Lets change ZFSBOOT_BEROOT_NAME to 'ROOT' and

svn commit: r256551 - head/usr.sbin/bsdinstall

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 17:52:44 2013 New Revision: 256551 URL: http://svnweb.freebsd.org/changeset/base/256551 Log: Bump .Dd date (should have been part of SVN r256549) Modified: head/usr.sbin/bsdinstall/bsdinstall.8 Modified: head/usr.sbin/bsdinstall/bsdinstall.8 ==

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Allan Jude
On 2013-10-15 13:26, Teske, Devin wrote: > On Oct 15, 2013, at 9:55 AM, Allan Jude wrote: > >> On 2013-10-15 12:43, Andriy Gapon wrote: >>> on 15/10/2013 19:32 Allan Jude said the following: Lets change ZFSBOOT_BEROOT_NAME to 'ROOT' and remove the /usr/local and /var/db/pkg datasets entir

Re: svn commit: r256549 - head/usr.sbin/bsdinstall

2013-10-15 Thread Teske, Devin
On Oct 15, 2013, at 10:48 AM, Glen Barber wrote: > On Tue, Oct 15, 2013 at 05:33:30PM +, Devin Teske wrote: >> Author: dteske >> Date: Tue Oct 15 17:33:30 2013 >> New Revision: 256549 >> URL: http://svnweb.freebsd.org/changeset/base/256549 >> >> Log: >> Man page updates to go along with SVN

Re: svn commit: r256549 - head/usr.sbin/bsdinstall

2013-10-15 Thread Glen Barber
On Tue, Oct 15, 2013 at 05:33:30PM +, Devin Teske wrote: > Author: dteske > Date: Tue Oct 15 17:33:30 2013 > New Revision: 256549 > URL: http://svnweb.freebsd.org/changeset/base/256549 > > Log: > Man page updates to go along with SVN r256343, introducing zfsboot. > > Modified: > head/usr.

svn commit: r256550 - head/sys/netgraph

2013-10-15 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Oct 15 17:44:35 2013 New Revision: 256550 URL: http://svnweb.freebsd.org/changeset/base/256550 Log: Improve locking model used to protect netgraph topology: use rwlocks instead of mutexes on node traversal. Reviewed by: glebius Tested by:Eugene Grosbein

svn commit: r256549 - head/usr.sbin/bsdinstall

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 17:33:30 2013 New Revision: 256549 URL: http://svnweb.freebsd.org/changeset/base/256549 Log: Man page updates to go along with SVN r256343, introducing zfsboot. Modified: head/usr.sbin/bsdinstall/bsdinstall.8 Modified: head/usr.sbin/bsdinstall/bsdinstall.8 ===

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Teske, Devin
On Oct 15, 2013, at 9:55 AM, Allan Jude wrote: > On 2013-10-15 12:43, Andriy Gapon wrote: >> on 15/10/2013 19:32 Allan Jude said the following: >>> Lets change ZFSBOOT_BEROOT_NAME to 'ROOT' and remove the /usr/local and >>> /var/db/pkg datasets entirely (so they become part of the BE). Based on >

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

2013-10-15 Thread Hans Petter Selasky
Author: hselasky Date: Tue Oct 15 17:11:13 2013 New Revision: 256548 URL: http://svnweb.freebsd.org/changeset/base/256548 Log: Correct programming of XXX_MAXP register. This register is 16-bit wide and not 8-bit. Fix support for isochronous transfers in USB host mode. Fix a whitespace while

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Allan Jude
On 2013-10-15 12:58, Adam McDougall wrote: > On Tue, Oct 15, 2013 at 04:28:21PM +, Teske, Devin wrote: > > +: ${ZFSBOOT_GNOP_4K_FORCE_ALIGN:=1} > > >>> > > >>> > > >>> I believe this trick is no longer needed after r254591. > >>> > > > > This may be the case, I am

svn commit: r256547 - in head/sys/cam: ata scsi

2013-10-15 Thread Steven Hartland
Author: smh Date: Tue Oct 15 17:03:02 2013 New Revision: 256547 URL: http://svnweb.freebsd.org/changeset/base/256547 Log: Added 4K quirks for Corsair Neutron GTX SSD's Modified: head/sys/cam/ata/ata_da.c head/sys/cam/scsi/scsi_da.c Modified: head/sys/cam/ata/ata_da.c ==

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Adam McDougall
On Tue, Oct 15, 2013 at 04:28:21PM +, Teske, Devin wrote: +: ${ZFSBOOT_GNOP_4K_FORCE_ALIGN:=1} >>> > >>> > >>> I believe this trick is no longer needed after r254591. >>> > > This may be the case, I am not sure if r254591 'always' fixes the problem, maybe someon

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Allan Jude
On 2013-10-15 12:43, Andriy Gapon wrote: > on 15/10/2013 19:32 Allan Jude said the following: >> Lets change ZFSBOOT_BEROOT_NAME to 'ROOT' and remove the /usr/local and >> /var/db/pkg datasets entirely (so they become part of the BE). Based on >> IRC discussion with bdrewery and Shawn Webb > I want

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Andriy Gapon
on 15/10/2013 19:32 Allan Jude said the following: > Lets change ZFSBOOT_BEROOT_NAME to 'ROOT' and remove the /usr/local and > /var/db/pkg datasets entirely (so they become part of the BE). Based on > IRC discussion with bdrewery and Shawn Webb I want to note that a good implementation of BEs shou

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Allan Jude
On 2013-10-15 12:28, Teske, Devin wrote: > On Oct 15, 2013, at 8:23 AM, Allan Jude wrote: > >> On 2013-10-15 11:00, Teske, Devin wrote: >>> CC'ing Allan Jude for feedback (I didn't have a hand in the >>> selection of those values) >>> >>> -- >>> Devin >>> >>> >>> On Oct 15, 2013, at 7:50 AM, Bryan

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Teske, Devin
On Oct 15, 2013, at 8:23 AM, Allan Jude wrote: > On 2013-10-15 11:00, Teske, Devin wrote: >> CC'ing Allan Jude for feedback (I didn't have a hand in the >> selection of those values) >> >> -- >> Devin >> >> >> On Oct 15, 2013, at 7:50 AM, Bryan Drewery wrote: >> >> >>> > >>> On Fri, Oct 11

svn commit: r256546 - head/sys/ofed/include/linux

2013-10-15 Thread Alfred Perlstein
Author: alfred Date: Tue Oct 15 15:50:43 2013 New Revision: 256546 URL: http://svnweb.freebsd.org/changeset/base/256546 Log: Fix __free_pages() in the linux shim. __free_pages() is actaully supposed to take a "struct page *" not an address. Modified: head/sys/ofed/include/linux/gfp.h

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Allan Jude
On 2013-10-15 11:00, Teske, Devin wrote: > CC'ing Allan Jude for feedback (I didn't have a hand in the > selection of those values) > -- Devin On Oct 15, 2013, at 7:50 AM, Bryan Drewery wrote: >> > On Fri, Oct 11, 2013 at 08:41:35PM +, Devin Teske wrote: >>> >> Author: dteske >>> >> Date: Fri O

svn commit: r256544 - head/usr.sbin/bsdinstall/scripts

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 15:00:53 2013 New Revision: 256544 URL: http://svnweb.freebsd.org/changeset/base/256544 Log: Fix SVN r256540: s/TMPETC/TMPBOOT/ for loader.conf(5) GELI entries. Modified: head/usr.sbin/bsdinstall/scripts/zfsboot Modified: head/usr.sbin/bsdinstall/scripts/zfsbo

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Teske, Devin
CC'ing Allan Jude for feedback (I didn't have a hand in the selection of those values) -- Devin On Oct 15, 2013, at 7:50 AM, Bryan Drewery wrote: > On Fri, Oct 11, 2013 at 08:41:35PM +, Devin Teske wrote: >> Author: dteske >> Date: Fri Oct 11 20:41:35 2013 >> New Revision: 256343 >> URL: ht

svn commit: r256543 - in head: cddl/contrib/opensolaris/lib/libdtrace/common cddl/contrib/opensolaris/lib/libdtrace/powerpc sys/cddl/contrib/opensolaris/uts/powerpc/dtrace sys/cddl/contrib/opensola...

2013-10-15 Thread Justin Hibbits
Author: jhibbits Date: Tue Oct 15 15:00:29 2013 New Revision: 256543 URL: http://svnweb.freebsd.org/changeset/base/256543 Log: Add fasttrap for PowerPC. This is the last piece of the dtrace/ppc puzzle. It's incomplete, it doesn't contain full instruction emulation, but it should be suffici

Re: svn commit: r256343 - in head/usr.sbin/bsdinstall: . scripts

2013-10-15 Thread Bryan Drewery
On Fri, Oct 11, 2013 at 08:41:35PM +, Devin Teske wrote: > Author: dteske > Date: Fri Oct 11 20:41:35 2013 > New Revision: 256343 > URL: http://svnweb.freebsd.org/changeset/base/256343 > > Log: > Add zfsboot module as an option for automatic configuration. Default is > to run interactively

svn commit: r256542 - head/sys/powerpc/aim

2013-10-15 Thread Justin Hibbits
Author: jhibbits Date: Tue Oct 15 14:52:44 2013 New Revision: 256542 URL: http://svnweb.freebsd.org/changeset/base/256542 Log: Move the PMC handling to the first level interrupt handler where it belongs. Also add the pmc_hook use, to handle callchain tracing. MFC after:1 week Modifie

svn commit: r256541 - head/usr.sbin/bsdinstall

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 14:46:37 2013 New Revision: 256541 URL: http://svnweb.freebsd.org/changeset/base/256541 Log: Document BSDINSTALL_TMPBOOT environment variable introduced by SVN r256343. Modified: head/usr.sbin/bsdinstall/bsdinstall.8 Modified: head/usr.sbin/bsdinstall/bsdinsta

svn commit: r256540 - head/usr.sbin/bsdinstall/scripts

2013-10-15 Thread Devin Teske
Author: dteske Date: Tue Oct 15 14:18:15 2013 New Revision: 256540 URL: http://svnweb.freebsd.org/changeset/base/256540 Log: gjb writes: when doing encrypted zfs install, loader.conf should be updated so bootpool is imported after boot: zpool_cache_load="YES" zpool_cache_ty

Re: svn commit: r256537 - head/lib/libc/gen

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 01:32:02PM +, Gleb Smirnoff wrote: T> Author: glebius T> Date: Tue Oct 15 13:32:01 2013 T> New Revision: 256537 T> URL: http://svnweb.freebsd.org/changeset/base/256537 T> T> Log: T> Make getutxent(3) more robust against bad utx.log files. Whenever we read T> zeroe

svn commit: r256539 - head/lib/libkvm

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 13:53:35 2013 New Revision: 256539 URL: http://svnweb.freebsd.org/changeset/base/256539 Log: Revert r256514 for libkvm. It wasn't correct actually and breaks build. Modified: head/lib/libkvm/kvm_pcpu.c Modified: head/lib/libkvm/kvm_pcpu.c

Re: svn commit: r256505 - head/sys/netinet

2013-10-15 Thread Bruce Evans
On Tue, 15 Oct 2013, Kevin Lo wrote: Log: Treat INADDR_NONE as uint32_t. Reviewed by: glebius Modified: head/sys/netinet/in.h Modified: head/sys/netinet/in.h == --- head/sys/netinet/in.h Tue Oct 15 06:38:

Re: svn commit: r256533 - head/sys/cam

2013-10-15 Thread Gleb Smirnoff
On Tue, Oct 15, 2013 at 12:59:40PM +, Alexander Motin wrote: A> Author: mav A> Date: Tue Oct 15 12:59:40 2013 A> New Revision: 256533 A> URL: http://svnweb.freebsd.org/changeset/base/256533 A> A> Log: A> Unhide "Serial Number" lines from bootverbose. That information may be A> useful for

svn commit: r256537 - head/lib/libc/gen

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 13:32:01 2013 New Revision: 256537 URL: http://svnweb.freebsd.org/changeset/base/256537 Log: Make getutxent(3) more robust against bad utx.log files. Whenever we read zeroes, don't stop processing the file, but read until its end or valid data. In coll

svn commit: r256533 - head/sys/cam

2013-10-15 Thread Alexander Motin
Author: mav Date: Tue Oct 15 12:59:40 2013 New Revision: 256533 URL: http://svnweb.freebsd.org/changeset/base/256533 Log: Unhide "Serial Number" lines from bootverbose. That information may be useful for system administration to have in hard copy (in logs) if one of several devices suddenly

svn commit: r256525 - in head/sys: net netinet netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 11:37:57 2013 New Revision: 256525 URL: http://svnweb.freebsd.org/changeset/base/256525 Log: - Utilize counter(9) to accumulate statistics on interface addresses. Add four counters to struct ifaddr. This kills '+=' on a variables shared between processors

svn commit: r256522 - head/sys/net

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:43:26 2013 New Revision: 256522 URL: http://svnweb.freebsd.org/changeset/base/256522 Log: Push some defines under _KERNEL, improve styling and comments. Modified: head/sys/net/if_var.h Modified: head/sys/net/if_var.h ===

svn commit: r256521 - head/sys/net

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:41:22 2013 New Revision: 256521 URL: http://svnweb.freebsd.org/changeset/base/256521 Log: Remove ifa_mtx. It was used only in one place in kernel, and ifnet's ifaddr lock can substitute it there. Discussed with: melifaro, ae Sponsored by: Netf

svn commit: r256519 - in head/sys: net netatalk netinet netinet6 netipx

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:31:42 2013 New Revision: 256519 URL: http://svnweb.freebsd.org/changeset/base/256519 Log: Remove ifa_init() and provide ifa_alloc() that will allocate and setup struct ifaddr internally. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified: h

svn commit: r256518 - in head: contrib/ipfilter sys/net sys/netinet sys/netinet6 sys/netipx usr.sbin/ifmcstat

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:19:24 2013 New Revision: 256518 URL: http://svnweb.freebsd.org/changeset/base/256518 Log: Hide 'struct ifaddr' definition from userland. Two tools left that use it, namely ipftest(1) and ifmcstat(1). These sniff structure definition using _WANT_IFADDR de

svn commit: r256517 - head/sys/netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:12:19 2013 New Revision: 256517 URL: http://svnweb.freebsd.org/changeset/base/256517 Log: Remove unsigned < 0 check. Modified: head/sys/netinet6/ip6_output.c Modified: head/sys/netinet6/ip6_output.c =

svn commit: r256516 - head/sys/netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:11:23 2013 New Revision: 256516 URL: http://svnweb.freebsd.org/changeset/base/256516 Log: Remove useless check of ia6 against NULL, right after dereferencing it. Modified: head/sys/netinet6/ip6_input.c Modified: head/sys/netinet6/ip6_input.c ==

svn commit: r256515 - head/sys/netinet6

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:09:33 2013 New Revision: 256515 URL: http://svnweb.freebsd.org/changeset/base/256515 Log: Now counter_u64_t is known to userland, thus remove hack from r253086. Sponsored by: Netflix Sponsored by: Nginx, Inc. Modified: head/sys/netinet6/in6_var.h Mo

svn commit: r256514 - in head: lib/libkvm sys/sys

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 10:05:37 2013 New Revision: 256514 URL: http://svnweb.freebsd.org/changeset/base/256514 Log: - While we are spreading the counter(9) across network stack, more userland tools would need to know about the counter_u64_t type. Allow to include sys/counter.h from

svn commit: r256512 - head/usr.bin/netstat

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 09:55:07 2013 New Revision: 256512 URL: http://svnweb.freebsd.org/changeset/base/256512 Log: Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of libkvm digging in kernel memory. This is possible since r231506 made getifaddrs(3) to supply

svn commit: r256511 - head/sys/arm/mv

2013-10-15 Thread Kevin Lo
Author: kevlo Date: Tue Oct 15 09:29:36 2013 New Revision: 256511 URL: http://svnweb.freebsd.org/changeset/base/256511 Log: Remove unsigned comparison < 0 Found by: LLVM Reviewed by: zbb Modified: head/sys/arm/mv/mv_localbus.c Modified: head/sys/arm/mv/mv_localbus.c =

svn commit: r256510 - head/usr.bin/netstat

2013-10-15 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 15 09:21:05 2013 New Revision: 256510 URL: http://svnweb.freebsd.org/changeset/base/256510 Log: Remove obtained, but never used data. Found by: gcc Modified: head/usr.bin/netstat/mbuf.c Modified: head/usr.bin/netstat/mbuf.c =

svn commit: r256506 - in head: sbin/nos-tun usr.bin/rpcinfo usr.bin/systat usr.sbin/bootparamd/bootparamd usr.sbin/bootparamd/callbootd usr.sbin/ypset

2013-10-15 Thread Kevin Lo
Author: kevlo Date: Tue Oct 15 07:37:30 2013 New Revision: 256506 URL: http://svnweb.freebsd.org/changeset/base/256506 Log: Use INADDR_NONE instead of -1 to check inet_addr() result. Reviewed by: glebius Modified: head/sbin/nos-tun/nos-tun.c head/usr.bin/rpcinfo/rpcinfo.c head/usr.b

svn commit: r256505 - head/sys/netinet

2013-10-15 Thread Kevin Lo
Author: kevlo Date: Tue Oct 15 07:35:39 2013 New Revision: 256505 URL: http://svnweb.freebsd.org/changeset/base/256505 Log: Treat INADDR_NONE as uint32_t. Reviewed by: glebius Modified: head/sys/netinet/in.h Modified: head/sys/netinet/in.h ==