svn commit: r316557 - in head: etc/mtree lib/libsbuf lib/libsbuf/tests

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 05:29:28 2017 New Revision: 316557 URL: https://svnweb.freebsd.org/changeset/base/316557 Log: sbuf(3): add some basic functional tests for the library Areas not covered still [positive functionality wise] are: - sbuf_{clear,get,set}_flags - sbuf_new (in

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

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 05:02:03 2017 New Revision: 316554 URL: https://svnweb.freebsd.org/changeset/base/316554 Log: sbuf(9): add MLINKS for sbuf_{clear,get,set}_flags(9) These functions were added in r279992. MFC after:2 months Sponsored by: Dell EMC Isilon Modified:

svn commit: r316553 - head/lib/libsbuf

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 04:58:51 2017 New Revision: 316553 URL: https://svnweb.freebsd.org/changeset/base/316553 Log: sbuf(3): expose sbuf_{clear,get,set}_flags(3) via libsbuf These functions were added to sbuf(9) in r279992, but never exposed to userspace. Expose them now so they

svn commit: r316552 - head/contrib/atf/atf-c

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 03:50:58 2017 New Revision: 316552 URL: https://svnweb.freebsd.org/changeset/base/316552 Log: atf-c: fix documentation description for atf_utils_wait(3) atf_utils_wait(3) should be used in combination with atf_utils_fork(3), not itself (atf_utils_wait(3)).

Re: svn commit: r316491 - head/usr.bin/grep

2017-04-05 Thread Julian Elischer
hard coded colours?? in 2017? On 4/4/17 10:17 pm, Ed Maste wrote: Author: emaste Date: Tue Apr 4 14:17:50 2017 New Revision: 316491 URL: https://svnweb.freebsd.org/changeset/base/316491 Log: bsdgrep: revert color changes from r316477 r316477 changed the color output to match

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

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 02:46:09 2017 New Revision: 316551 URL: https://svnweb.freebsd.org/changeset/base/316551 Log: sbuf(9): clarify kernel-only APIs - move sbuf_bcopyin(9) and sbuf_copyin(9) near sbuf_new_for_sysctl(9), as all three functions are kernel-only APIs. - add

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

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 02:40:52 2017 New Revision: 316550 URL: https://svnweb.freebsd.org/changeset/base/316550 Log: sbuf(9): convert SYNOPSIS section from .Fn entries to .Fo/.Fa/.Fc entries This shortens the column count on many lines considerably. While here, add "(void)" to

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

2017-04-05 Thread Ngie Cooper
Author: ngie Date: Thu Apr 6 02:03:35 2017 New Revision: 316549 URL: https://svnweb.freebsd.org/changeset/base/316549 Log: Add sys/types.h #include to EXAMPLE to provide a complete functional standalone example program MFC after:2 months Sponsored by: Dell EMC Isilon Modified:

Re: svn commit: r316536 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep/tests

2017-04-05 Thread Kyle Evans
On Wed, Apr 5, 2017 at 6:06 PM, Ngie Cooper (yaneurabeya) < yaneurab...@gmail.com> wrote: > > > > > > Yup! > -Ngie > > Given no objections from emaste@ (seems unlikely, given the content), can one of you please commit this when able? It seems like a good idea for the sake of providing context

svn commit: r316548 - in head/etc/periodic: daily monthly weekly

2017-04-05 Thread Alan Somers
Author: asomers Date: Thu Apr 6 01:37:03 2017 New Revision: 316548 URL: https://svnweb.freebsd.org/changeset/base/316548 Log: Quiet 450.status-security when *_inline="YES" Previously, 450.status-security would always set rc=3 in inline mode, because it doesn't know whether "periodic

svn commit: r316547 - head/sys/net80211

2017-04-05 Thread Adrian Chadd
Author: adrian Date: Thu Apr 6 01:35:42 2017 New Revision: 316547 URL: https://svnweb.freebsd.org/changeset/base/316547 Log: [net80211] refactor out the A-MPDU dispatch routine. The "dispatch a frame from the A-MPDU reorder buffer" code is essentially duplicated in a couple of places.

Re: svn commit: r316487 - head/etc

2017-04-05 Thread Cy Schubert
In message <861st64hjz@desk.des.no>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav? = w rites: > Cy Schubert writes: > > This patch caused some boot failures because the contents of rc_force were > > redefined from "yes" (for yes) and NULL (for no) to the words "yes" and > >

svn commit: r316546 - head/etc

2017-04-05 Thread Cy Schubert
Author: cy Date: Thu Apr 6 00:15:18 2017 New Revision: 316546 URL: https://svnweb.freebsd.org/changeset/base/316546 Log: Revert r316516. des@ asked that r316516 be reverted so that he can spend a little more time getting r316487 right. Requested by: des@ Modified: head/etc/rc.subr

svn commit: r316545 - head/usr.sbin/makefs/ffs

2017-04-05 Thread Ed Maste
Author: emaste Date: Thu Apr 6 00:07:11 2017 New Revision: 316545 URL: https://svnweb.freebsd.org/changeset/base/316545 Log: makefs: zero memory NetBSD revs: ffs/buf.c 1.14 Obtained from:NetBSD Modified: head/usr.sbin/makefs/ffs/buf.c Modified:

Re: svn commit: r316536 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep/tests

2017-04-05 Thread Ngie Cooper (yaneurabeya)
> On Apr 5, 2017, at 12:33, Kyle Evans wrote: > > On Wed, Apr 5, 2017 at 1:48 PM, Ngie Cooper (yaneurabeya) > wrote: > > As a general rule of thumb, if it doesn’t pass, it needs to be marked > as an expected failure until it passes. Not

Re: svn commit: r316487 - head/etc

2017-04-05 Thread Dag-Erling Smørgrav
Cy Schubert writes: > This patch caused some boot failures because the contents of rc_force were > redefined from "yes" (for yes) and NULL (for no) to the words "yes" and > "no". This in turn caused etc/rc.d/dhclient to assume force when $rc_force > was not NULL (test

svn commit: r316544 - head/sys/dev/ixgbe

2017-04-05 Thread Sean Bruno
Author: sbruno Date: Wed Apr 5 22:01:49 2017 New Revision: 316544 URL: https://svnweb.freebsd.org/changeset/base/316544 Log: Don't overrite vf->flags variable at the end of ixgbe(4) ixgbe_add_vf(). Found by PVS-Studio Static code analyzer. PR: 217748 Submitted by:

svn commit: r316542 - head/usr.bin/grep

2017-04-05 Thread Ed Maste
Author: emaste Date: Wed Apr 5 20:11:05 2017 New Revision: 316542 URL: https://svnweb.freebsd.org/changeset/base/316542 Log: bsdgrep: Handle special case of single-byte NUL pattern PR: 202022 Submitted by: Kyle Evans MFC after:1 month Differential Revision:

svn commit: r316541 - head/sys/dev/ixgbe

2017-04-05 Thread Sean Bruno
Author: sbruno Date: Wed Apr 5 19:52:49 2017 New Revision: 316541 URL: https://svnweb.freebsd.org/changeset/base/316541 Log: Fix a double free in ixgbe_rxeof() Submitted by: rstone MFC after:1 week Differential Revision:https://reviews.freebsd.org/D10255 Modified:

Re: svn commit: r316536 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep/tests

2017-04-05 Thread Kyle Evans
On Wed, Apr 5, 2017 at 1:48 PM, Ngie Cooper (yaneurabeya) < yaneurab...@gmail.com> wrote: > > As a general rule of thumb, if it doesn’t pass, it needs to be > marked as an expected failure until it passes. Not really a big deal right > now (because ci.freebsd.org isn’t spamming current@ —

svn commit: r316537 - head/sys/conf

2017-04-05 Thread John Baldwin
Author: jhb Date: Wed Apr 5 18:59:58 2017 New Revision: 316537 URL: https://svnweb.freebsd.org/changeset/base/316537 Log: Fix the linker emulation setting for riscv. Reported by: lwhsu MFC after:1 week Sponsored by: DARPA / AFRL Modified: head/sys/conf/kern.mk Modified:

Re: svn commit: r316536 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep/tests

2017-04-05 Thread Ngie Cooper (yaneurabeya)
> On Apr 5, 2017, at 11:41, Ed Maste wrote: > > Author: emaste > Date: Wed Apr 5 18:41:44 2017 > New Revision: 316536 > URL: https://svnweb.freebsd.org/changeset/base/316536 > > Log: > bsdgrep: create additional tests for coverage on recent fixes > > Create additional

svn commit: r316536 - in head: contrib/netbsd-tests/usr.bin/grep usr.bin/grep/tests

2017-04-05 Thread Ed Maste
Author: emaste Date: Wed Apr 5 18:41:44 2017 New Revision: 316536 URL: https://svnweb.freebsd.org/changeset/base/316536 Log: bsdgrep: create additional tests for coverage on recent fixes Create additional tests to cover regressions that were discovered by PRs linked to reviews D10098,

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

2017-04-05 Thread Alan Somers
Author: asomers Date: Wed Apr 5 18:31:26 2017 New Revision: 316535 URL: https://svnweb.freebsd.org/changeset/base/316535 Log: Fix memory leak in "gpart bootcode" Also, annotate that gpart_issue never returns Reported by: Coverity CID: 1007105 MFC after:3 weeks

svn commit: r316533 - head/sys/conf

2017-04-05 Thread Bryan Drewery
Author: bdrewery Date: Wed Apr 5 17:56:17 2017 New Revision: 316533 URL: https://svnweb.freebsd.org/changeset/base/316533 Log: Support assym.s in DPSRCS to depend on it but not link it in. Reported by: andrew MFC after:2 weeks Sponsored by: Dell EMC Isilon Modified:

svn commit: r316534 - head/sys/modules/dtrace/dtrace

2017-04-05 Thread Bryan Drewery
Author: bdrewery Date: Wed Apr 5 17:56:21 2017 New Revision: 316534 URL: https://svnweb.freebsd.org/changeset/base/316534 Log: Stop building assym.o into the module. DTrace includes assym.s, to build this we build assym.o, however this is unneeded as assym.s only contains macros.

svn commit: r316532 - head/sys/fs/nfsclient

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 17:26:20 2017 New Revision: 316532 URL: https://svnweb.freebsd.org/changeset/base/316532 Log: Make nfs pageout coherent with the dirty state of the buffers. Write out the dirty pages using VOP_WRITE() instead of directly calling ncl_writerpc(). The state of

svn commit: r316531 - head/sys/fs/nfsclient

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 17:20:31 2017 New Revision: 316531 URL: https://svnweb.freebsd.org/changeset/base/316531 Log: Handle nfs IO_ASYNC write requests asynchronously. Reviewed by: markj, rmacklem Tested by:pho Sponsored by: The FreeBSD Foundation MFC after:2 weeks

svn commit: r316530 - head/sbin/geom/misc

2017-04-05 Thread Alan Somers
Author: asomers Date: Wed Apr 5 17:17:18 2017 New Revision: 316530 URL: https://svnweb.freebsd.org/changeset/base/316530 Log: Fix clearing geom metadata if DIOCGSECTORSIZE fails An unhandled error case would result in passing SIZE_MAX to malloc. While I'm here, remove an unnecessary

svn commit: r316529 - head/sys/fs/nfsclient

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 17:11:39 2017 New Revision: 316529 URL: https://svnweb.freebsd.org/changeset/base/316529 Log: Handle possible vnode reclamation after ncl_vinvalbuf() call. ncl_vinvalbuf() might need to upgrade vnode lock, allowing the vnode to be reclaimed by other thread.

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

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 16:57:53 2017 New Revision: 316528 URL: https://svnweb.freebsd.org/changeset/base/316528 Log: Add V_VMIO flag for vinvalbuf(9) to indicate that the flush request was issued during VM-initiated i/o (pageout), so that the function does not try to flush or remove

svn commit: r316527 - head/sys/netinet

2017-04-05 Thread Ryan Stone
Author: rstone Date: Wed Apr 5 16:57:13 2017 New Revision: 316527 URL: https://svnweb.freebsd.org/changeset/base/316527 Log: Revert the optimization from r304436 r304436 attempted to optimize the handling of incoming UDP packet by only making an expensive call to in_broadcast() if the

svn commit: r316526 - head/sys/vm

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 16:56:04 2017 New Revision: 316526 URL: https://svnweb.freebsd.org/changeset/base/316526 Log: Extract calculation of ioflags from the vm_pager_putpages flags into a helper. Reviewed by: markj Tested by:pho Sponsored by: The FreeBSD Foundation MFC

svn commit: r316525 - head/sys/vm

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 16:45:00 2017 New Revision: 316525 URL: https://svnweb.freebsd.org/changeset/base/316525 Log: Some style fixes for vnode_pager_generic_putpages(), in the local declaration block. Reviewed by: markj (as part of the larger patch) Tested by:pho (as part

svn commit: r316524 - head/sys/vm

2017-04-05 Thread Konstantin Belousov
Author: kib Date: Wed Apr 5 16:30:41 2017 New Revision: 316524 URL: https://svnweb.freebsd.org/changeset/base/316524 Log: Use int instead of boolean_t for flags argument type in vnode_pager_generic_putpages() prototype; change the argument name to reflect that it is flags. Reviewed

svn commit: r316523 - head/usr.bin/pr

2017-04-05 Thread Alan Somers
Author: asomers Date: Wed Apr 5 16:13:36 2017 New Revision: 316523 URL: https://svnweb.freebsd.org/changeset/base/316523 Log: Remove a duplicate fclose() that snuck into r316501 Reported by: Coverity CID: 1373338 MFC after:20 days X-MFC-With: 316501 Sponsored by:

svn commit: r316522 - head/sys/compat/linuxkpi/common/src

2017-04-05 Thread Hans Petter Selasky
Author: hselasky Date: Wed Apr 5 12:48:24 2017 New Revision: 316522 URL: https://svnweb.freebsd.org/changeset/base/316522 Log: Unify error handling when si_drv1 is NULL in the LinuxKPI. Make sure the character device poll callback function does not return an error code, but a POLLXXX

svn commit: r316521 - head/sys/compat/linuxkpi/common/include/linux

2017-04-05 Thread Hans Petter Selasky
Author: hselasky Date: Wed Apr 5 12:10:02 2017 New Revision: 316521 URL: https://svnweb.freebsd.org/changeset/base/316521 Log: Implement down_write_killable() in the LinuxKPI. MFC after:1 week Sponsored by: Mellanox Technologies Modified:

Re: svn commit: r316435 - in head: sbin/ipfw sys/conf sys/modules sys/modules/ipfw_pmod sys/netpfil/ipfw/pmod

2017-04-05 Thread Bruce Simpson
On 03/04/17 15:12, Julian Elischer wrote: > On 3/4/17 11:07 am, Andrey V. Elsukov wrote: >> Author: ae >> Date: Mon Apr 3 03:07:48 2017 >> New Revision: 316435 >> URL: https://svnweb.freebsd.org/changeset/base/316435 > > it was always my intention to hook netgraph modules into ipfw in this way

svn commit: r316520 - head/sys/dev/hyperv/netvsc

2017-04-05 Thread Sepherosa Ziehau
Author: sephe Date: Wed Apr 5 08:25:22 2017 New Revision: 316520 URL: https://svnweb.freebsd.org/changeset/base/316520 Log: hyperv/hn: Fixat RNDIS rxfilter after the successful RNDIS init. Under certain conditions on certain versions of Hyper-V, the RNDIS rxfilter is _not_ zero on the

svn commit: r316519 - head/sys/dev/hyperv/storvsc

2017-04-05 Thread Sepherosa Ziehau
Author: sephe Date: Wed Apr 5 08:15:47 2017 New Revision: 316519 URL: https://svnweb.freebsd.org/changeset/base/316519 Log: hyperv/storvsc: Fixup SRB status. This unbreaks GEN2 Hyper-V cd support. Submitted by: Hongjiang Zhang Reviewed by: dexuan@ MFC after:3 days

Re: svn commit: r316509 - in head/sys/ufs: ffs ufs

2017-04-05 Thread Bruce Evans
On Wed, 5 Apr 2017, Conrad Meyer wrote: Log: ufs: Export UFS_MAXNAMLEN to pathconf, statfs Rather than the global NAME_MAX constant. This change is required to support systems with a NAME_MAX/MAXNAMLEN that differs from UFS_MAXNAMLEN. This was missed in r313475 due to the alternative