MFC r249807,249893

  Fix installkernel requiring users/groups defined in CHECK_UIDS
  and CHECK_GIDS to exist since r152680. This is only needed for
  installworld. The documented procedure of running mergemaster -p
  to check for missing users is only needed for installworld, not
  for installkernel. This fixes auditdistd incorrectly being
  required for installkernel.

PR:		misc/174405


git-svn-id: svn://svn.freebsd.org/base/stable/9@250452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249952:

  Fix examples for overriding INSTALL to not suggest hardcoding
  'install' since it breaks buildworld after the introduction and
  use of 'install -l' in r245752. Overriding INSTALL causes
  /usr/bin/install to be used instead of the proper
  /usr/src/tools/install.sh which handles the new flag.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: sync the version of netmap with the one in HEAD, including device
drivers (mostly simplifying the code in the interrupt handlers).

On passing, also merge r250414, which is related to netmap
and the use of lem/em in virtual machines.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249951

According to devctl(4), clients must read events whole; they may not piece them
together from multiple reads().  It's as if /dev/devctl is a datagram device
instead of a stream device.  However, devd's internal buffer was too small
(1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to
~1300 bytes).  This commit enlarges the buffer to 8k.

Approved by:	ken (mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r248776:
  Fix interval-based rotations when the -t flag is used. In this case, find
  the most-recently archived logfile and use its mtime to determine whether
  or not to rotate, as in the non-timestamped case.

  Previously we would just try to use the mtime of <logfile>.0, which always
  results in a rotation since it generally doesn't exist in the -t case.

Approved by:	emaste


git-svn-id: svn://svn.freebsd.org/base/stable/9@250478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r248851:
  Ignore interface renames instead of removing the interface from the bridge
  group.

Approved by:	emaste


git-svn-id: svn://svn.freebsd.org/base/stable/9@250480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249257:
  Add support for getting and setting BBU properties related to battery
  relearning. Specifically, add subcommands to mfiutil(8) which allow the
  user to set the BBU and autolearn modes when the firmware supports it,
  and add a subcommand which kicks off a battery relearn.

MFC r249258:
  Switch to a 2-clause license.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r248983:
Dtrace: enablings on defunct providers prevent providers from unregistering

Merge change from illumos:

1368 enablings on defunct providers prevent providers from unregistering

Illumos Revision:	13430:8e6add739e38

Reference:
https://www.illumos.org/issues/1368

Reviewed by:	gnn
Tested by:	Fabian Keil
Obtained from:	Illumos


git-svn-id: svn://svn.freebsd.org/base/stable/9@250484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r249526:
DTrace: print() should try to resolve function pointers

Merge changes from illumos:

3675 DTrace print() should try to resolve function pointers
3676 dt_print_enum hardcodes a value of zero

Illumos Revision:	b1fa6326238973aeaf12c34fcda75985b6c06be1

Reference:
https://www.illumos.org/issues/3675
https://www.illumos.org/issues/3676

Obtained from:	Illumos


git-svn-id: svn://svn.freebsd.org/base/stable/9@250485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r249526, r249600:
DTrace: NFS translators should be split into client/server pieces

Merge change from illumos:

1731 DTrace NFS translators should be split into client/server pieces

Include Changes from OpenSolaris:
PSARC 2008/050 DTrace NFS v3 Provider
6696397 NFS v3 provider reports all UDP clients as 0.0.0.0
6711844 assert: vp-->v_shrlocks

Illumos Revision:	13523:6763769941d2

This code seems to be currently unused on FreeBSD.

Reference:
https://www.illumos.org/issues/1731

Obtained from:	Illumos


git-svn-id: svn://svn.freebsd.org/base/stable/9@250486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the build: 'valid' is no longer used.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244123 Add CTLFLAG_RWTUN define
MFC r247367 Fix non-recusive mutex MFI I/O lock
MFC r247369 Fix a large amount of bugs in MFI that cause panics

Approved by:	pjd (mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9