svn commit: r329615 - head/sys/kern

2018-02-19 Thread Mateusz Guzik
Author: mjg Date: Tue Feb 20 02:18:30 2018 New Revision: 329615 URL: https://svnweb.freebsd.org/changeset/base/329615 Log: Reduce contention on the proctree lock during heavy package build. There is a proctree -> allproc ordering established. Most of the time it is either xlock ->

svn commit: r329622 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 04:11:48 2018 New Revision: 329622 URL: https://svnweb.freebsd.org/changeset/base/329622 Log: stand/lua: Move drawer.menu_name_handlers further up As a good candidate for modification, move this table further up in the module to improve visibility.

svn commit: r329624 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 04:23:43 2018 New Revision: 329624 URL: https://svnweb.freebsd.org/changeset/base/329624 Log: stand/lua: Reduce exposure of the drawer module As part of an effort to slowly reduce our exports overall to a set of stable properties/functions, go ahead and

svn commit: r329626 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 04:56:03 2018 New Revision: 329626 URL: https://svnweb.freebsd.org/changeset/base/329626 Log: stand/lua: Refactor logos into drawer.logodefs table This refactor makes it straightforward to add new logos for drawing and organizes logo definitions in a

svn commit: r329613 - stable/11/sys/geom/mirror

2018-02-19 Thread Mark Johnston
Author: markj Date: Tue Feb 20 00:34:42 2018 New Revision: 329613 URL: https://svnweb.freebsd.org/changeset/base/329613 Log: MFC r328938: Simplify synchronization read error handling. Modified: stable/11/sys/geom/mirror/g_mirror.c Directory Properties: stable/11/ (props changed)

svn commit: r329623 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-02-19 Thread Alexander Motin
Author: mav Date: Tue Feb 20 04:14:12 2018 New Revision: 329623 URL: https://svnweb.freebsd.org/changeset/base/329623 Log: MFV r302649: 7016 arc_available_memory is not 32-bit safe illumos/illumos-gate@0dd053d7d890618ea1fc697b07de364e69eb4190

svn commit: r329631 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 05:12:39 2018 New Revision: 329631 URL: https://svnweb.freebsd.org/changeset/base/329631 Log: stand/lua: Insert helpful comment for drawer.branddefs Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua

svn commit: r329633 - head/sbin/devmatch

2018-02-19 Thread Warner Losh
Author: imp Date: Tue Feb 20 05:35:00 2018 New Revision: 329633 URL: https://svnweb.freebsd.org/changeset/base/329633 Log: More verbose output. Modified: head/sbin/devmatch/devmatch.c Modified: head/sbin/devmatch/devmatch.c

svn commit: r329621 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 03:58:45 2018 New Revision: 329621 URL: https://svnweb.freebsd.org/changeset/base/329621 Log: stand/lua: Add and use drawer.menu_name_handlers Pull out specialized naming behavior into drawer.menu_name_handlers. This is currently only needed for the

svn commit: r329630 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 05:11:17 2018 New Revision: 329630 URL: https://svnweb.freebsd.org/changeset/base/329630 Log: stand/lua: Stick a copyright notice on drawer.lua Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua

svn commit: r329629 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 05:10:26 2018 New Revision: 329629 URL: https://svnweb.freebsd.org/changeset/base/329629 Log: stand/lua: Use 'graphic' instead of 'logo' for table depicting graphics This is a more sensible name that offers less redundancy when referring to it (vs.

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

2018-02-19 Thread Jeff Roberson
Author: jeff Date: Tue Feb 20 00:06:07 2018 New Revision: 329612 URL: https://svnweb.freebsd.org/changeset/base/329612 Log: Further parallelize the buffer cache. Provide multiple clean queues partitioned into 'domains'. Each domain manages its own bufspace and has its own bufspace

svn commit: r329625 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2018-02-19 Thread Alexander Motin
Author: mav Date: Tue Feb 20 04:36:51 2018 New Revision: 329625 URL: https://svnweb.freebsd.org/changeset/base/329625 Log: MFV r307315: 7301 zpool export -f should be able to interrupt file freeing Reviewed by: Matthew Ahrens Reviewed by: Sanjay Nadkarni

Re: svn commit: r329609 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Ian Lepore wrote: > On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote: > > > > +???-- Swap the first two menu entries > > +???menu_entries[1], menu_entries[2] = menu_entries[2], > > +?? menu_entries[1]; > > ? > > IMO, this is the

svn commit: r329614 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 02:03:29 2018 New Revision: 329614 URL: https://svnweb.freebsd.org/changeset/base/329614 Log: stand/lua: Don't set ACPI off just because we can't detect it. This should unbreak EFI/!i386 cases. Reported by: Peter Lei Modified:

svn commit: r329619 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 03:40:16 2018 New Revision: 329619 URL: https://svnweb.freebsd.org/changeset/base/329619 Log: stand/lua: Extract menu handlers out into menu.handlers table This is a bit cleaner than our former method of an if ... else chain of handlers. Store handlers in

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

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 05:21:58 2018 New Revision: 329632 URL: https://svnweb.freebsd.org/changeset/base/329632 Log: style.lua(9): Clarify local variable guideline The intent of this guideline is to avoid creating global variables in module scope. Its main purpose is to serve as

svn commit: r329628 - in head/sys/cddl/contrib/opensolaris: common/nvpair uts/common/fs/zfs

2018-02-19 Thread Alexander Motin
Author: mav Date: Tue Feb 20 05:07:21 2018 New Revision: 329628 URL: https://svnweb.freebsd.org/changeset/base/329628 Log: MFC r316910: 7812 Remove gender specific language illumos/illumos-gate@48bbca816818409505a6e214d0911fda44e622e3

svn commit: r329627 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Tue Feb 20 05:06:11 2018 New Revision: 329627 URL: https://svnweb.freebsd.org/changeset/base/329627 Log: stand/lua: Refactor brands into drawer.branddefs Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua

svn commit: r329634 - head/sys/powerpc/powerpc

2018-02-19 Thread Wojciech Macek
Author: wma Date: Tue Feb 20 06:38:55 2018 New Revision: 329634 URL: https://svnweb.freebsd.org/changeset/base/329634 Log: PowerNV: Send SIGILL on HEA illegal instruction exception Currently Hypervisor Emulation Assistance interrupt is unhandled. Executing an undefined instruction in

svn commit: r329620 - head/sys/dev/flash

2018-02-19 Thread Ian Lepore
Author: ian Date: Tue Feb 20 03:51:09 2018 New Revision: 329620 URL: https://svnweb.freebsd.org/changeset/base/329620 Log: Add missing MODULE_DEPENDS(). Modified: head/sys/dev/flash/at45d.c head/sys/dev/flash/mx25l.c Modified: head/sys/dev/flash/at45d.c

svn commit: r329635 - head/sys/powerpc/powerpc

2018-02-19 Thread Wojciech Macek
Author: wma Date: Tue Feb 20 07:30:57 2018 New Revision: 329635 URL: https://svnweb.freebsd.org/changeset/base/329635 Log: PowerPC: Switch to more accurate unit to avoid division rounding On POWER8 architecture there is a timer with 512Mhz frequency. It has about 1,95ns period, but it is

svn commit: r329556 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-02-19 Thread Andriy Gapon
Author: avg Date: Mon Feb 19 08:55:22 2018 New Revision: 329556 URL: https://svnweb.freebsd.org/changeset/base/329556 Log: relax an assert in zfsctl_snapdir_lookup to match r323578 Since r323578 we may remove the last reference to a covered vnode with vrele() instead of vput(). So,

svn commit: r329562 - svnadmin/conf

2018-02-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 19 12:20:17 2018 New Revision: 329562 URL: https://svnweb.freebsd.org/changeset/base/329562 Log: Add myself. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r329559 - stable/11/sys/netinet6

2018-02-19 Thread Andrey V. Elsukov
Author: ae Date: Mon Feb 19 10:34:30 2018 New Revision: 329559 URL: https://svnweb.freebsd.org/changeset/base/329559 Log: MFC r328541: Do not skip scope zone violation check, when mbuf has M_FASTFWD_OURS flag. When mbuf has M_FASTFWD_OURS flag, this means that a destination address

svn commit: r329576 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 14:21:56 2018 New Revision: 329576 URL: https://svnweb.freebsd.org/changeset/base/329576 Log: stand/lua: Defer kernel/module loading until boot or menu escape Loading the kernel and modules can be really slow. Loading before the menu draws and every time

svn commit: r329563 - head/sys/netipsec

2018-02-19 Thread Andrey V. Elsukov
Author: ae Date: Mon Feb 19 12:20:51 2018 New Revision: 329563 URL: https://svnweb.freebsd.org/changeset/base/329563 Log: Remove unused variables and sysctl declaration. MFC after:1 week Modified: head/sys/netipsec/ipsec.c head/sys/netipsec/ipsec.h Modified:

svn commit: r329565 - svnadmin/conf

2018-02-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 19 12:21:56 2018 New Revision: 329565 URL: https://svnweb.freebsd.org/changeset/base/329565 Log: Remove myself. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r329558 - stable/11/sys/netinet6

2018-02-19 Thread Andrey V. Elsukov
Author: ae Date: Mon Feb 19 10:30:34 2018 New Revision: 329558 URL: https://svnweb.freebsd.org/changeset/base/329558 Log: MFC r328540: Assign IPv6 link-local address to loopback interfaces whith unit > 0. When an interface has IFF_LOOPBACK flag in6_ifattach() tries to assing IPv6

svn commit: r329561 - head/sys/netipsec

2018-02-19 Thread Andrey V. Elsukov
Author: ae Date: Mon Feb 19 11:14:38 2018 New Revision: 329561 URL: https://svnweb.freebsd.org/changeset/base/329561 Log: Check packet length to do not make out of bounds access. Also save ah_nxt value to use it later, since ah pointer can become invalid. Reported by: Maxime Villard

svn commit: r329560 - stable/11/share/man/man9

2018-02-19 Thread Konstantin Belousov
Author: kib Date: Mon Feb 19 10:59:19 2018 New Revision: 329560 URL: https://svnweb.freebsd.org/changeset/base/329560 Log: MFC r329347: Note that on amd64 pmap_enter(psind = 1) works. Modified: stable/11/share/man/man9/pmap_enter.9 Directory Properties: stable/11/ (props changed)

svn commit: r329591 - stable/11/sys/vm

2018-02-19 Thread Mark Johnston
Author: markj Date: Mon Feb 19 17:03:50 2018 New Revision: 329591 URL: https://svnweb.freebsd.org/changeset/base/329591 Log: MFC r329374: Use the conventional name for an array of pages. Modified: stable/11/sys/vm/swap_pager.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r329582 - stable/11/sys/netinet6

2018-02-19 Thread Eric van Gyzen
Author: vangyzen Date: Mon Feb 19 15:56:33 2018 New Revision: 329582 URL: https://svnweb.freebsd.org/changeset/base/329582 Log: MFC r329181 Update the MTU in affected routes when IPv6 RA changes the MTU ip6_calcmtu() only looks at the interface MTU if neither the TCP hostcache nor

svn commit: r329587 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:36:29 2018 New Revision: 329587 URL: https://svnweb.freebsd.org/changeset/base/329587 Log: stand/lua: Swap single-/multi- user boot entries as needed Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua

svn commit: r329588 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:42:06 2018 New Revision: 329588 URL: https://svnweb.freebsd.org/changeset/base/329588 Log: stand/lua: Re-wrap menu.lua now that I've added indentation... Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua

svn commit: r329592 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 17:09:29 2018 New Revision: 329592 URL: https://svnweb.freebsd.org/changeset/base/329592 Log: stand/lua: Remove inaccurate comment after r329590 lualoader does a pretty good job of reverting any environment changes now. It will even wipe out boot_verbose

svn commit: r329577 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 15:42:20 2018 New Revision: 329577 URL: https://svnweb.freebsd.org/changeset/base/329577 Log: stand/lua: Rename bootserial for clarity Modified: head/stand/lua/color.lua head/stand/lua/core.lua head/stand/lua/menu.lua head/stand/lua/screen.lua Modified:

svn commit: r329581 - stable/11/sys/netinet6

2018-02-19 Thread Eric van Gyzen
Author: vangyzen Date: Mon Feb 19 15:54:26 2018 New Revision: 329581 URL: https://svnweb.freebsd.org/changeset/base/329581 Log: MFC r329053 Fix ICMPv6 redirects icmp6_redirect_input() validates that a redirect packet came from the current gateway for the respective destination. To

svn commit: r329585 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:34:23 2018 New Revision: 329585 URL: https://svnweb.freebsd.org/changeset/base/329585 Log: stand/lua: Add core.isSingleUserBoot Modified: head/stand/lua/core.lua Modified: head/stand/lua/core.lua

svn commit: r329580 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 15:49:27 2018 New Revision: 329580 URL: https://svnweb.freebsd.org/changeset/base/329580 Log: stand/lua: Remove some unused local declarations Menus are actually defined as entries in the 'menu' table. These local declarations have not been used in the

svn commit: r329579 - in head/sys: dev/ofw powerpc/ofw

2018-02-19 Thread Nathan Whitehorn
Author: nwhitehorn Date: Mon Feb 19 15:49:14 2018 New Revision: 329579 URL: https://svnweb.freebsd.org/changeset/base/329579 Log: Set internal error returns for OF_peer(), OF_child(), and OF_parent() to zero, matching the IEEE 1275 standard. Since these internal error paths have never, to

svn commit: r329583 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:25:43 2018 New Revision: 329583 URL: https://svnweb.freebsd.org/changeset/base/329583 Log: stand/lua: Store menu entries in an "entries" table Instead of directly listing them in menu.welcome and menu.boot_options, store them at menu.welcome.entries and

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

2018-02-19 Thread Hans Petter Selasky
Author: hselasky Date: Mon Feb 19 16:31:19 2018 New Revision: 329584 URL: https://svnweb.freebsd.org/changeset/base/329584 Log: Implement list_safe_reset_next() function macro in the LinuxKPI. MFC after:1 week Submitted by: Johannes Lundberg Sponsored by:

svn commit: r329586 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:35:46 2018 New Revision: 329586 URL: https://svnweb.freebsd.org/changeset/base/329586 Log: stand/lua: Call menu_entries if it's a function If we've fetched menu.entries and it turns out it's a function, call it to get the actual menu entries. This

svn commit: r329589 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:59:28 2018 New Revision: 329589 URL: https://svnweb.freebsd.org/changeset/base/329589 Log: stand/lua: Track env changes that come in via loader.conf(5) This will be used when boot environment support lands to make a good-faith effort to apply any new

svn commit: r329590 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 17:01:21 2018 New Revision: 329590 URL: https://svnweb.freebsd.org/changeset/base/329590 Log: stand/lua: Restore environment upon config reload This restores environment to whatever defaults we had coming into lualoader. Modified:

Re: svn commit: r329538 - head/sbin/devmatch

2018-02-19 Thread Warner Losh
On Mon, Feb 19, 2018 at 12:20 AM, Hans Petter Selasky wrote: > On 02/19/18 00:16, Warner Losh wrote: > >> + if (bus && strcmp(val1, bus) != 0) { >> + if (verbose_flag) >> + printf("Skipped

svn commit: r329593 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 17:40:19 2018 New Revision: 329593 URL: https://svnweb.freebsd.org/changeset/base/329593 Log: stand/lua: Change boot menu items' names when swapped [Enter] should be moved to the single user menu item when we swap them. Define a non-standard menu entry

svn commit: r329594 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 17:51:33 2018 New Revision: 329594 URL: https://svnweb.freebsd.org/changeset/base/329594 Log: stand/lua: Round up some more style.lua(9) concerns Modified: head/stand/lua/color.lua head/stand/lua/config.lua head/stand/lua/drawer.lua

svn commit: r329596 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 18:11:35 2018 New Revision: 329596 URL: https://svnweb.freebsd.org/changeset/base/329596 Log: stand/lua: Add copyright notice in places I've made some not-insignificant changes to config, menu, and password bits of our lua scripts. Add a copyright notice

svn commit: r329595 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 17:54:22 2018 New Revision: 329595 URL: https://svnweb.freebsd.org/changeset/base/329595 Log: stand/lua: Re-order locals after copyright notice; require comes first Modified: head/stand/lua/drawer.lua head/stand/lua/menu.lua head/stand/lua/password.lua

svn commit: r329598 - in head: share/man/man9 sys/dev/pci

2018-02-19 Thread Bryan Venteicher
Author: bryanv Date: Mon Feb 19 18:41:56 2018 New Revision: 329598 URL: https://svnweb.freebsd.org/changeset/base/329598 Log: Add PCI methods to iterate over the PCI capabilities VirtIO V1 provides configuration in multiple VENDOR capabilities so this allows all of the configuration to

Re: svn commit: r329585 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Kyle Evans wrote: > +function core.isSingleUserBoot() > + local single_user = loader.getenv("boot_single"); > + return single_user ~= nil and single_user:lower() == "yes"; > +end Just curious, why do you end all lines with semi-colons? It's not very common in Lua code. This version looks

Re: svn commit: r329587 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Kyle Evans wrote: > + -- Swap the first two menu items on single user boot > + if (core.isSingleUserBoot()) then > + local multiuser = menu_entries[1]; > + local singleuser = menu_entries[2]; > + > +

Re: svn commit: r329585 - head/stand/lua

2018-02-19 Thread Kyle Evans
On Mon, Feb 19, 2018 at 3:54 PM, Alexander Nasonov wrote: > Kyle Evans wrote: >> +function core.isSingleUserBoot() >> + local single_user = loader.getenv("boot_single"); >> + return single_user ~= nil and single_user:lower() == "yes"; >> +end > > Just curious, why do you

svn commit: r329606 - in head/usr.bin/tail: . tests

2018-02-19 Thread Alan Somers
Author: asomers Date: Mon Feb 19 22:09:49 2018 New Revision: 329606 URL: https://svnweb.freebsd.org/changeset/base/329606 Log: tail: fix "tail -r" for piped input that begins with '\n' A subtle logic bug, probably introduced in r311895, caused tail to print the first two lines of piped

svn commit: r329578 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 15:47:09 2018 New Revision: 329578 URL: https://svnweb.freebsd.org/changeset/base/329578 Log: stand/lua: Menu style.lua(9) nits Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua

svn commit: r329599 - head/tools/tools/net80211/w00t/ap

2018-02-19 Thread Eitan Adler
Author: eadler Date: Mon Feb 19 19:01:46 2018 New Revision: 329599 URL: https://svnweb.freebsd.org/changeset/base/329599 Log: tools/80211: correct array index wh->i_dur is a two byte value; not a single byte set twice Reported by: swild...@dragonflybsd.org Modified:

svn commit: r329601 - head/sys/dev/virtio

2018-02-19 Thread Bryan Venteicher
Author: bryanv Date: Mon Feb 19 19:28:24 2018 New Revision: 329601 URL: https://svnweb.freebsd.org/changeset/base/329601 Log: Add VirtIO bus config_generation method VirtIO buses (PCI, MMIO) can provide a generation field so a driver can ensure either a 64-bit or array read was stable.

svn commit: r329602 - head/sys/dev/virtio

2018-02-19 Thread Bryan Venteicher
Author: bryanv Date: Mon Feb 19 19:31:18 2018 New Revision: 329602 URL: https://svnweb.freebsd.org/changeset/base/329602 Log: Add more virtqueue getter methods MFC after:2 weeks Modified: head/sys/dev/virtio/virtqueue.c head/sys/dev/virtio/virtqueue.h Modified:

svn commit: r329600 - head/sys/ufs/ffs

2018-02-19 Thread Konstantin Belousov
Author: kib Date: Mon Feb 19 19:08:25 2018 New Revision: 329600 URL: https://svnweb.freebsd.org/changeset/base/329600 Log: Do not free(9) uninitialized pointer. Reported and tested by: allanjude Reviewed by: markj Sponsored by: The FreeBSD Foundation Modified:

svn commit: r329603 - stable/11/sys/dev/nctgpio

2018-02-19 Thread Oleksandr Tymoshenko
Author: gonzo Date: Mon Feb 19 19:55:29 2018 New Revision: 329603 URL: https://svnweb.freebsd.org/changeset/base/329603 Log: MFC r327502: nctgpio: add new device id for the GPIO chip in PCEngines APU3 PR: 224512 Submitted by: m...@sentex.net Modified:

Re: svn commit: r329587 - head/stand/lua

2018-02-19 Thread Kyle Evans
On Mon, Feb 19, 2018 at 4:00 PM, Alexander Nasonov wrote: > Kyle Evans wrote: >> + -- Swap the first two menu items on single user boot >> + if (core.isSingleUserBoot()) then >> + local multiuser = menu_entries[1]; >> +

svn commit: r329609 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 22:29:16 2018 New Revision: 329609 URL: https://svnweb.freebsd.org/changeset/base/329609 Log: stand/lua: Cache swapped menu, and don't create locals for swapping Building the swapped welcome menu (first two items swapped) is kind of a sluggish, because it

Re: svn commit: r329609 - head/stand/lua

2018-02-19 Thread Ian Lepore
On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote: > > +   -- Swap the first two menu entries > +   menu_entries[1], menu_entries[2] = menu_entries[2], > +   menu_entries[1]; >   IMO, this is the sort of unreadable insanity that

Re: svn commit: r329609 - head/stand/lua

2018-02-19 Thread Kyle Evans
On Mon, Feb 19, 2018 at 4:37 PM, Ian Lepore wrote: > On Mon, 2018-02-19 at 22:29 +, Kyle Evans wrote: >> >> + -- Swap the first two menu entries >> + menu_entries[1], menu_entries[2] = menu_entries[2], >> +

svn commit: r329611 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 22:56:04 2018 New Revision: 329611 URL: https://svnweb.freebsd.org/changeset/base/329611 Log: stand/lua: Wrap tuple assignment earlier for readability Modified: head/stand/lua/menu.lua Modified: head/stand/lua/menu.lua

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

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 22:54:10 2018 New Revision: 329610 URL: https://svnweb.freebsd.org/changeset/base/329610 Log: style.lua(9): Note that wrapping at 80-columns is not rigid Modified: head/share/man/man9/style.lua.9 Modified: head/share/man/man9/style.lua.9

Re: svn commit: r329610 - head/share/man/man9

2018-02-19 Thread Ian Lepore
On Mon, 2018-02-19 at 22:54 +, Kyle Evans wrote: > Author: kevans > Date: Mon Feb 19 22:54:10 2018 > New Revision: 329610 > URL: https://svnweb.freebsd.org/changeset/base/329610 > > Log: >   style.lua(9): Note that wrapping at 80-columns is not rigid > > > [...] > +Do note that it is ok to