svn commit: r322211 - in head: contrib/netbsd-tests/lib/libc/regex/data lib/libc/regex

2017-08-07 Thread Kyle Evans
Author: kevans Date: Tue Aug 8 04:10:46 2017 New Revision: 322211 URL: https://svnweb.freebsd.org/changeset/base/322211 Log: regex(3): Handle invalid {} constructs consistently and adjust tests Currently, regex(3) exhibits the following wrong behavior as demonstrated with sed: -

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

2017-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 8 04:34:02 2017 New Revision: 322213 URL: https://svnweb.freebsd.org/changeset/base/322213 Log: Add round_jiffies_up(), local_clock() and __setup_timer() to the LinuxKPI. Reviewed by: hselasky MFC after:1 week Differential Revision:

svn commit: r322214 - in head/tests: etc/rc.d sys/acl sys/file sys/geom/class/eli sys/geom/class/gate sys/geom/class/mirror sys/geom/class/nop sys/geom/class/uzip sys/kern sys/kqueue/libkqueue sys/...

2017-08-07 Thread Ngie Cooper
Author: ngie Date: Tue Aug 8 04:59:16 2017 New Revision: 322214 URL: https://svnweb.freebsd.org/changeset/base/322214 Log: Make test scripts under tests/... non-executable Executable bits should be set at install time instead of in the repo. Setting executable bits on files triggers

svn commit: r322210 - head/bin/pkill

2017-08-07 Thread Lawrence Stewart
Author: lstewart Date: Tue Aug 8 00:31:10 2017 New Revision: 322210 URL: https://svnweb.freebsd.org/changeset/base/322210 Log: pgrep naively appends the delimiter to all PIDs including the last e.g. "pgrep -d, getty" outputs "1399,1386,1309,1308,1307,1306,1305,1302," Ensure the list is

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

2017-08-07 Thread Mark Johnston
Author: markj Date: Tue Aug 8 04:30:22 2017 New Revision: 322212 URL: https://svnweb.freebsd.org/changeset/base/322212 Log: Add macros for defining attribute groups and for WO and RW attributes. Reviewed by: hselasky MFC after:1 week Differential Revision:

svn commit: r322206 - head/sys/geom

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 22:42:46 2017 New Revision: 322206 URL: https://svnweb.freebsd.org/changeset/base/322206 Log: Eliminate useless adjustments of aliased device. No need to set any fields in the cloned device. devfs uses symlinks, so the adev entries returned won't be presented

svn commit: r322178 - head/sys/geom/journal

2017-08-07 Thread Kirk McKusick
Author: mckusick Date: Mon Aug 7 19:18:27 2017 New Revision: 322178 URL: https://svnweb.freebsd.org/changeset/base/322178 Log: sysctl kern.geom.journal.cache.limit shows negative value for FreeBSD/amd64 system having over 4GB RAM. That's due to: 1) the limit being u_int instead of

svn commit: r322179 - head/sys/geom/journal

2017-08-07 Thread Kirk McKusick
Author: mckusick Date: Mon Aug 7 19:40:03 2017 New Revision: 322179 URL: https://svnweb.freebsd.org/changeset/base/322179 Log: gjournal is broken in handling its flush_queue. If we have 10 bio's in the flush_queue: 1 2 3 4 5 6 7 8 9 10 and another 10 bio's go into the flush

svn commit: r322203 - head/usr.sbin/tzsetup

2017-08-07 Thread Marius Strobl
Author: marius Date: Mon Aug 7 21:38:10 2017 New Revision: 322203 URL: https://svnweb.freebsd.org/changeset/base/322203 Log: Revert the parts of r322097 related to /etc/wall_cmos_clock handling as the previous behavior actually is required for setting up configurations in which the RTC is

Re: svn commit: r322196 - head/sys/geom

2017-08-07 Thread Warner Losh
On Mon, Aug 7, 2017 at 3:29 PM, Konstantin Belousov wrote: > On Mon, Aug 07, 2017 at 09:12:28PM +, Warner Losh wrote: > > + LIST_FOREACH(gap, >geom->aliases, ga_next) { > > + error = make_dev_alias_p(MAKEDEV_CHECKNAME | > MAKEDEV_WAITOK, , dev, > > +

Re: svn commit: r322196 - head/sys/geom

2017-08-07 Thread Warner Losh
On Mon, Aug 7, 2017 at 3:51 PM, Konstantin Belousov wrote: > On Mon, Aug 07, 2017 at 03:37:57PM -0600, Warner Losh wrote: > > On Mon, Aug 7, 2017 at 3:29 PM, Konstantin Belousov > > > wrote: > > > > > On Mon, Aug 07, 2017 at 09:12:28PM +, Warner

Re: svn commit: r322198 - in head: share/man/man9 sys/geom

2017-08-07 Thread Nathan Whitehorn
On 08/07/17 14:32, Warner Losh wrote: On Mon, Aug 7, 2017 at 3:19 PM, Nathan Whitehorn > wrote: It would be really nice to let gpart provide aliases correct to partition labels, which would fix the existing racy and unreliable

svn commit: r322209 - head/sys/dev/mmc

2017-08-07 Thread Marius Strobl
Author: marius Date: Mon Aug 7 23:33:05 2017 New Revision: 322209 URL: https://svnweb.freebsd.org/changeset/base/322209 Log: - If available, use TRIM instead of ERASE for implementing BIO_DELETE. This also involves adding a quirk table as TRIM is broken for some Kingston eMMC devices,

svn commit: r322197 - head/sys/geom/part

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:12:33 2017 New Revision: 322197 URL: https://svnweb.freebsd.org/changeset/base/322197 Log: Add alias support to gpart. When we're creating new providers for each of the partitions, add aliases to the geom before we create the provider so when geom_dev

svn commit: r322196 - head/sys/geom

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:12:28 2017 New Revision: 322196 URL: https://svnweb.freebsd.org/changeset/base/322196 Log: Add aliasing concept to geom. Add an alias name list to geoms. Use them in geom_dev to create aliases. Previously, geom_dev would create an device node for the name

svn commit: r322200 - head/sbin/fsck_ffs

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:23:54 2017 New Revision: 322200 URL: https://svnweb.freebsd.org/changeset/base/322200 Log: Make it possible to ignore superblock mismatch. This will not fix such a mismatch, but will allow fsck to continue when the last alternate superblock gets corrupted

Re: svn commit: r322198 - in head: share/man/man9 sys/geom

2017-08-07 Thread Warner Losh
On Mon, Aug 7, 2017 at 4:20 PM, Nathan Whitehorn wrote: > > > On 08/07/17 14:32, Warner Losh wrote: > > > > On Mon, Aug 7, 2017 at 3:19 PM, Nathan Whitehorn > wrote: > >> It would be really nice to let gpart provide aliases correct to partition >>

svn commit: r322199 - head/sys/cam/nvme

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:12:43 2017 New Revision: 322199 URL: https://svnweb.freebsd.org/changeset/base/322199 Log: Add nvd alias to nda ndoes. All ndaX and ndaXpY nodes will appear as nvdX and nvdXpY as well (through symlinks in devfs via the normal disk aliasing mechanism in

svn commit: r322198 - in head: share/man/man9 sys/geom

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:12:38 2017 New Revision: 322198 URL: https://svnweb.freebsd.org/changeset/base/322198 Log: Expose API to allow disks to ask for alias names in devfs. Implement disk_add_alias to allow aliases to be added to disks. All disk have a primary name (say "foo")

Re: svn commit: r322198 - in head: share/man/man9 sys/geom

2017-08-07 Thread Nathan Whitehorn
It would be really nice to let gpart provide aliases correct to partition labels, which would fix the existing racy and unreliable glabel code. Do you see any obstacles to using this code for that? -Nathan On 08/07/17 14:12, Warner Losh wrote: Author: imp Date: Mon Aug 7 21:12:38 2017 New

Re: svn commit: r322196 - head/sys/geom

2017-08-07 Thread Konstantin Belousov
On Mon, Aug 07, 2017 at 09:12:28PM +, Warner Losh wrote: > + LIST_FOREACH(gap, >geom->aliases, ga_next) { > + error = make_dev_alias_p(MAKEDEV_CHECKNAME | MAKEDEV_WAITOK, > , dev, > + "%s", gap->ga_alias); > + if (error) { > +

Re: svn commit: r322196 - head/sys/geom

2017-08-07 Thread Konstantin Belousov
On Mon, Aug 07, 2017 at 03:37:57PM -0600, Warner Losh wrote: > On Mon, Aug 7, 2017 at 3:29 PM, Konstantin Belousov > wrote: > > > On Mon, Aug 07, 2017 at 09:12:28PM +, Warner Losh wrote: > > > + LIST_FOREACH(gap, >geom->aliases, ga_next) { > > > + error =

svn commit: r322201 - head/sbin/fsck_ffs

2017-08-07 Thread Warner Losh
Author: imp Date: Mon Aug 7 21:23:59 2017 New Revision: 322201 URL: https://svnweb.freebsd.org/changeset/base/322201 Log: In debug mode, print the differences between the superblock and alternate superblock when the values disagree and we're going to reject it. Differential Revision:

svn commit: r322202 - head

2017-08-07 Thread Ed Maste
Author: emaste Date: Mon Aug 7 21:29:55 2017 New Revision: 322202 URL: https://svnweb.freebsd.org/changeset/base/322202 Log: UPDATING: clarify what the RCMDS knob controls Modified: head/UPDATING Modified: head/UPDATING

Re: svn commit: r322198 - in head: share/man/man9 sys/geom

2017-08-07 Thread Warner Losh
On Mon, Aug 7, 2017 at 3:19 PM, Nathan Whitehorn wrote: > It would be really nice to let gpart provide aliases correct to partition > labels, which would fix the existing racy and unreliable glabel code. Do > you see any obstacles to using this code for that? I'm not

svn commit: r322169 - in head/sys/compat/linuxkpi/common: include/linux src

2017-08-07 Thread Alexander Motin
Author: mav Date: Mon Aug 7 14:34:05 2017 New Revision: 322169 URL: https://svnweb.freebsd.org/changeset/base/322169 Log: Fix hrtimer_active() in case of cancellation. While there, switch to FreeBSD internal callout active status. Reviewed by: markj, hselasky Sponsored by:

svn commit: r322167 - head/sys/conf

2017-08-07 Thread Navdeep Parhar
Author: np Date: Mon Aug 7 14:04:19 2017 New Revision: 322167 URL: https://svnweb.freebsd.org/changeset/base/322167 Log: cxgbe(4): Add the T6 and T5 Unified Wire configuration files to the kernel, just like for T4, when the driver is compiled into the kernel. Reported by: mav@ MFC

svn commit: r322168 - in head: cddl/contrib/opensolaris/lib/libdtrace/common contrib/compiler-rt/lib/builtins contrib/compiler-rt/lib/sanitizer_common contrib/elftoolchain/libelf contrib/jemalloc/i...

2017-08-07 Thread Ruslan Bukin
Author: br Date: Mon Aug 7 14:09:57 2017 New Revision: 322168 URL: https://svnweb.freebsd.org/changeset/base/322168 Log: o Replace __riscv__ with __riscv o Replace __riscv64 with (__riscv && __riscv_xlen == 64) This is required to support new GCC 7.1 compiler. This is compatible with

svn commit: r322139 - in head: contrib/top usr.bin/top

2017-08-07 Thread Pietro Cerutti
Author: gahr (ports committer) Date: Mon Aug 7 08:45:08 2017 New Revision: 322139 URL: https://svnweb.freebsd.org/changeset/base/322139 Log: Enhance top(1) to filter on multiple usernames Reviewed by: cognet, bapt Approved by: cognet MFC after:1 week Relnotes: yes

svn commit: r322170 - head

2017-08-07 Thread Dimitry Andric
Author: dim Date: Mon Aug 7 16:23:53 2017 New Revision: 322170 URL: https://svnweb.freebsd.org/changeset/base/322170 Log: Follow-up to r321684 (Don't use libc++ when cross-building for gcc arches), and handle two more cases where libc++ includes could be incorrectly enabled, in case the

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

2017-08-07 Thread Konstantin Belousov
Author: kib Date: Mon Aug 7 17:29:54 2017 New Revision: 322175 URL: https://svnweb.freebsd.org/changeset/base/322175 Log: Avoid DI recursion when reclaim_pv_chunk() is called from pmap_advise() or pmap_remove(). Reported and tested by: pho (previous version) Reviewed by: alc

svn commit: r322177 - head/usr.bin/indent

2017-08-07 Thread Kyle Evans
Author: kevans Date: Mon Aug 7 18:01:27 2017 New Revision: 322177 URL: https://svnweb.freebsd.org/changeset/base/322177 Log: Respect SIMPLE_BACKUP_SUFFIX environment variable in indent(1) Instead of using a non-configurable ".BAK" suffix, respect the SIMPLE_BACKUP_SUFFIX environment

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

2017-08-07 Thread Konstantin Belousov
Author: kib Date: Mon Aug 7 17:23:10 2017 New Revision: 322171 URL: https://svnweb.freebsd.org/changeset/base/322171 Log: Explain why delayed invalidation is not required in pmap_protect() and pmap_remove_pages(). Submitted by: alc MFC after:1 week Modified: