- Add some tests for modifying groups

Reviewed by:	will


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump .Dd missed in r271424


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert racct stubs to inline functions.

This saves some symbols and function calls for kernel without RACCT.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272582 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r272500:

Don't inherit flags other than DS_FLAG_CI_DATASET and DS_FLAG_INCONSISTENT
when cloning.  This prevents DS_FLAG_DEFER_DESTROY being inherited from a
clone that is marked for deferred destroy, which causes snapshots of the
clone being destroyed when getting a hold or clone.

Illumos issue:
    5150 zfs clone of a defer_destroy snapshot causes strangeness

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r272501:

Illumos issue:
    5177 remove dead code from dsl_scan.c

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272584 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Minor code styling.

Suggested by:	glebius @


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
devfs: don't take proctree_lock unconditionally in devfs_close

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272596 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix length of Extended INQUIRY Data VPD page.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272597 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r272585:

Split the godfather zio into CPU number's to reduce lock
contention.

Illumos issue:
    5176 lock contention on godfather zio

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272598 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r272588:

Handle old format deadlist.

Illumos issue:
    5178 zdb -vvvvv on old-format pool fails in dump_deadlist()

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272599 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
devfs: tidy up after 272596

This moves a var to an if statement, no functional changes.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r272591:

Use loaned ARC buffer for zfs receive to avoid copy.

Illumos issue:
    5162 zfs recv should use loaned arc buffer to avoid copy

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use documented compat string for msm uart.
Whilst here use tab instead of spaces.

Approved by:    stas (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable generating vfp and NEON instructions in the arm kernel.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272605 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use r271207 optimization only for MSI-enabled HBAs.

It was found that VirtualBox' AHCI does not allow nterrupt to be cleared
before the interrupt status register is read, causing interrupt storm.

AHCI specification allows to skip this register use when multi-vector MSI
is enabled and so interrupting port is known.  For single-vector MSI that
is not stated explicitly, but if the port is only one, it is obviously
known too.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve "reserved keywords" hack:

we can't easily predict (in current parsing model)
if the keyword is ipfw(8) reserved keyword or port name.
Checking proto database via getprotobyname() consumes a lot of
CPU and leads to tens of seconds for parsing large ruleset.
Use list of reserved keywords and check them as pre-requisite
before doing getprotobyname().

Obtained from:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix O_TCPOPTS processing.

Obtained from:	luigi


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for MaxBurstLength and Expected Data transfer Length parameters.

Before this change target could send R2T request for write transfer of any
size, that could violate iSCSI RFC, which allows initiator to limit maximum
R2T size by negotiating MaxBurstLength connection parameter.

Also report an error in case of write underflow, when initiator provides
less data than initiator expects.  Previously in such case our target
sent R2T request for non-existing data, violating the RFC, and confusing
some initiators.  SCSI specs don't explicitly define how write underflows
should be handled and there are different oppinions, but reporting error
is hopefully better then violating iSCSI RFC with unpredictable results.

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve r272609 (O_TCPOPTS).

MFC after:	3 dayes


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV:
 use calloc in get_line() when allocating line to ensure it is fully initialized,
 fixes a later uninitialized value in copy_param() (FreeBSD #193499).

PR: 193499
Submitted by: Thomas E. Dickey  <tom@invisible-island.net>


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