Remove trailing whitespace.


git-svn-id: svn://svn.freebsd.org/base/head@241241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor mdoc fix.


git-svn-id: svn://svn.freebsd.org/base/head@241242 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: begin sentences on a new line.


git-svn-id: svn://svn.freebsd.org/base/head@241243 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  The pfil(9) layer guarantees us presence of the protocol header,
so remove extra check, that is always false.

P.S. Also, goto there lead to unlocking a not locked rwlock.


git-svn-id: svn://svn.freebsd.org/base/head@241244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  A step in resolving mess with byte ordering for AF_INET. After this change:

  - All packets in NETISR_IP queue are in net byte order.
  - ip_input() is entered in net byte order and converts packet
    to host byte order right _after_ processing pfil(9) hooks.
  - ip_output() is entered in host byte order and converts packet
    to net byte order right _before_ processing pfil(9) hooks.
  - ip_fragment() accepts and emits packet in net byte order.
  - ip_forward(), ip_mloopback() use host byte order (untouched actually).
  - ip_fastforward() no longer modifies packet at all (except ip_ttl).
  - Swapping of byte order there and back removed from the following modules:
    pf(4), ipfw(4), enc(4), if_bridge(4).
  - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version
  - __FreeBSD_version bumped.
  - pfil(9) manual page updated.

Reviewed by:	ray, luigi, eri, melifaro
Tested by:	glebius (LE), ray (BE)


git-svn-id: svn://svn.freebsd.org/base/head@241245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix "make install"

Also make arm the same as other platforms:  Install man
pages for all CPUs in the family.


git-svn-id: svn://svn.freebsd.org/base/head@241255 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct two pessimizations in pmap_extract_and_hold().  Test the PTE for
having PTE_RO set instead of PTE_D.  This avoids some unnecessary failures
by pmap_extract_and_hold() that will have to be handled by a call to
vm_fault_hold().  Testing the PTE for both being non-zero and having PTE_V
set is redundant.  The latter suffices.


git-svn-id: svn://svn.freebsd.org/base/head@241276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE.  The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here.  The option will be removed in due time.

Submitted by:	Simon Gerraty (sjg@juniper.net)


git-svn-id: svn://svn.freebsd.org/base/head@241279 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
make: report :M or :N pattern in debug mode

MFC after:	12 days


git-svn-id: svn://svn.freebsd.org/base/head@241280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ktrace/kern_exec: check p_tracecred instead of p_cred

.. when deciding whether to continue tracing across suid/sgid exec.
Otherwise if root ktrace-d an unprivileged process and the processed
exec-ed a suid program, then tracing didn't continue across exec.

Reviewed by:	bde, kib
MFC after:	22 days


git-svn-id: svn://svn.freebsd.org/base/head@241281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: chose a "first" pool if none is explicitly requested

MFC after:	8 days


git-svn-id: svn://svn.freebsd.org/base/head@241282 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: add code for listing child datasets of a given dataset

- only filesystem datasets are supported
- children names are printed to stdout

To do: allow to iterate over the list and fetch names programatically

MFC after:	17 days


git-svn-id: svn://svn.freebsd.org/base/head@241283 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot: add lszfs command to i386 loader

... to list child datasets of a specified dataset.
Dataset name should be provided in poolname/dsname format.

MFC after:	17 days


git-svn-id: svn://svn.freebsd.org/base/head@241284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update to include WITH_BMAKE.


git-svn-id: svn://svn.freebsd.org/base/head@241285 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs_mount: taste geom providers for root pool config

This should allow to mount a dataset as a root filesystem even if
it belongs to a pool that is not described in zpool.cache.
This adds some overhead to the boot process though.

If the root filesystem's pool is found in zpool.cache, the by default
its cached configuration will be used for import.
vfs.zfs.rootpool.prefer_cached_config could be set to zero to force
the config to be retasted.

Discussed with:	gibbs, pjd, des
MFC after:	25 days


git-svn-id: svn://svn.freebsd.org/base/head@241286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In general pmap implementations do not set the wired attribute on
the temporary mappings that are used to implement operations like
pmap_zero_page().  There is no reason for the MIPS pmap to deviate
from that practice.


git-svn-id: svn://svn.freebsd.org/base/head@241287 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfsboot: use the same zfs dataset naming format as loader

Also, pool name alone now names a root dataset of the pool regardless
of bootfs property value.

MFC after:	15 days


git-svn-id: svn://svn.freebsd.org/base/head@241288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
boot/zfs: call zfs_spa_init for all found pools

... and drop those for which it fails.
Also, add more sanity checking to the function.

MFC after:	16 days


git-svn-id: svn://svn.freebsd.org/base/head@241289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
boot/zfs: a small whitespace cleanup

MFC after:	5 days


git-svn-id: svn://svn.freebsd.org/base/head@241290 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
zfs boot spa_status: print bootfs for each reported pool

MFC after:	9 days


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