MFC r244557:

Add libnetbsd, a thin compatibility layer intended to allow a limited
set of NetBSD software to compile as part of the FreeBSD build with
little or no modification.  It is built as a static library and not
installed for general use.  Likewise, its header files are not
installed.

Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/stable/9@245461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244562,245241,245435

Add NetBSD's mtree to the tree and install it as nmtree.

Always install our mtree as /usr/sbin/fmtree and link it as
/usr/sbin/mtree by default.

Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked
as /usr/sbin/mtree as well as /usr/sbin/nmtree.

Sponsored by:	DARPA, AFRL


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

Integrate OpenSSL changeset 22950 (appro):

	bn_word.c: fix overflow bug in BN_add_word.


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

Indicate that we are using OpenSSL with some local modifications.


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

Sync with driver.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245345:
procstat: only one mode flag can be specified, but required check for 'i'
and 'j' modes was missing. Fix that.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245225, r245256: Restrict use of source address selection
of getipnodebyname(1) only to IPv6 address.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245230: Add no_prefer_iface option.
It stops treating the address on the interface as special by source
address selection rule even when the interface is outgoing interface.
This is desired in some situation.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245003:
Enable the UFS quotas for big-iron GENERIC kernels.


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

Print correct unit number when attaching preloaded memory disks.
Retire now unused mdunits variable.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245268:
The Giant lock is no longer used in the vm_map(9) part of the VM.
While here, document that the process lock is acquired in vm_map_stack, too.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243102:
 Sort SEE ALSO xrefs by the manual section number and add a missing comma.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Belatedly merge etc part of r229850. pfsync.ko is working.

Noticed by:	des


git-svn-id: svn://svn.freebsd.org/base/stable/9@245604 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r245412
Directly uses calloc(3) instread of malloc(3) + memset(3)

Reported by:	Jeremy Chadwick <jdc@koitsu.org>


git-svn-id: svn://svn.freebsd.org/base/stable/9@245609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245072:
Do not round up the size of the UFS filesystem to the fragment size
when comparing its size with the size of the media, to determine if
the last disk block is unused.

MFC r245074:
Use tabs for indentation.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245405:
Rename vfs_hash_index() to vfs_hash_bucket().


git-svn-id: svn://svn.freebsd.org/base/stable/9@245660 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245406:
Add vfs_hash_index().


git-svn-id: svn://svn.freebsd.org/base/stable/9@245661 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245407,245411:
Set the v_hash for a new vnode in the getnewvnode() to the value
calculated based on the vnode structure address.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245662 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245408:
Size the nullfs hashtbl based on the current value of
desiredvnodes. Use vfs_hash_index() to calculate the hash bucket for a
given vnode.


git-svn-id: svn://svn.freebsd.org/base/stable/9@245663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245409:
For zfs vnodes, use the standard inode number based hash algorithm.


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