Slightly reduce an overhead for the open() call in the zfsloader.
libstand(3) tries to detect file system in the predefined order,
but zfsloader usually is used for the booting from ZFS, and there is
no need to try detect several file system types for each open() call.


git-svn-id: svn://svn.freebsd.org/base/head@240335 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simply things so that "#REQUIRE: FILESYSTEMS" means the file
systems are fully "ready to go".

'FILESYSTEMS' states: "This is a dummy dependency, for services which
require file systems to be mounted before starting."  However, we have
'var' which is was run after 'FILESYSTEMS' and can mount /var if it
already isn't mounted.  Furthermore, several scripts cannot use /var
until 'cleanvar' has done its thing.  Thus "FILESYSTEMS" hasn't really
meant all critical file systems are fully usable.


git-svn-id: svn://svn.freebsd.org/base/head@240336 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
openssl: change SHLIB_VERSION_NUMBER to reflect the reality

Note: I timed out waiting for an exp-run for this change but I survived
having it locally for quite a long time.

MFC after:	1 month
X-MFC note:	SHLIB_MAJOR is 6 in stable/8 and stable/9


git-svn-id: svn://svn.freebsd.org/base/head@240339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
acpi.4: machdep.cpu_idle_hlt no longer exists

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@240340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
a bit of trailing whitespace cleanup

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@240341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
boot: file_loadraw should strdup name argument

... the same way it's done for type argument.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@240342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
rc.d/power_profile: use recently added Cmax for cx_lowest

Trying to determine current lowest C-state after an AC event is racy
with C-states actually being changed by ACPI platform and kernel driver.

MFC after:	3 weeks


git-svn-id: svn://svn.freebsd.org/base/head@240343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
acpi_cpu: free result of device_get_children

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@240344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs: fix sa_modify_attrs handling of variable-sized attributes

- skip length_idx index for a replaced variable-sized attribute
- skip length_idx index for a removed variable-sized attribute
- also re-arranged code to make sure that length_idx is always
  incremented for variable-sized attributes
- additionally add an assertion that the number of actually produced
  attributes is the same as the expected number of resulting
  attributes

In cooperation with:	Matthew Ahrens <mahrens@delphix.com>
Tested by:	Trent Nelson <trent@snakebite.org>
Reviewed by:	Matthew Ahrens <mahrens@delphix.com> (for upstream)
To do:		get this upstreamed
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@240345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: bring zap_leaf_chunk field names in sync with kernel code

This change is cosmetic.

MFC after:	10 days


git-svn-id: svn://svn.freebsd.org/base/head@240346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: fix/replace fzap_rlookup implementation

The previous one was totally bogus as it used hash value of
_output_ variable as an index for searching...
The only reliable way to do a reverse lookup here is to iterate
over all entries.

MFC after:	15 days


git-svn-id: svn://svn.freebsd.org/base/head@240347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: print only an attribute name in fzap_list

... this matches mzap_list behavior

MFC after:	12 days


git-svn-id: svn://svn.freebsd.org/base/head@240348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: add a size check for a value in fzap_lookup

MFC after:	25 days


git-svn-id: svn://svn.freebsd.org/base/head@240349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove dead return code


git-svn-id: svn://svn.freebsd.org/base/head@240350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused values


git-svn-id: svn://svn.freebsd.org/base/head@240351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Spelling.


git-svn-id: svn://svn.freebsd.org/base/head@240352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not count kernel threads as processes for hrSystemProcesses OID.

PR:		bin/160494
Submitted by:	Jeremy Chadwick <freebsd jdc.parodius.com>


git-svn-id: svn://svn.freebsd.org/base/head@240354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix style nit


git-svn-id: svn://svn.freebsd.org/base/head@240355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
forgotten file from r240346

Pointyhat to:	avg
MFC after:	10 days
X-MFC with:	r240346


git-svn-id: svn://svn.freebsd.org/base/head@240356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Prevent nump NULL pointer dereference in bmap_getlbns()


git-svn-id: svn://svn.freebsd.org/base/head@240358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f