Strip the unnneeded spaces, mostly at the end of lines.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@248967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Record the correct error in the trace.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@248968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not call the VOP_LOOKUP() for the doomed directory vnode.  The
vnode could be reclaimed while lock upgrade was performed.

Sponsored by:	The FreeBSD Foundation
Reported and tested by:	pho
Diagnosed and reviewed by:	rmacklem
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@248969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix ipfw rule validation partially broken by r248552.

Pointed by:	avg
MFC with:	r248552


git-svn-id: svn://svn.freebsd.org/base/head@248971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Mention that read_attributes, write_attributes, read_acl and write_acl
are always permitted for the file owner.

PR:		kern/174948
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@248972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Slightly tune locking to not call xpt_alloc_ccb() that is allowed to sleep
while holding the SIM mutex.


git-svn-id: svn://svn.freebsd.org/base/head@248973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Silence warnings about redefined macros.


git-svn-id: svn://svn.freebsd.org/base/head@248975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Call dmu_snapshot_list_next() in zvol.c with dsl_pool_config lock held

Submitted by:	Andriy Gapon <avg@FreeBSD.org>
MFC after:	17 days


git-svn-id: svn://svn.freebsd.org/base/head@248976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add unmapped bio support to nvme(4) and nvd(4).

Sponsored by:	Intel


git-svn-id: svn://svn.freebsd.org/base/head@248977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Format per etc/mtree/README

- Spaces instead of tabs
- Sort some i18n entries


git-svn-id: svn://svn.freebsd.org/base/head@248979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Fix various compiler warnings.

It now passes WARNS=7 with clang on i386.

GCC 4.2.1 does not understand setjmp() properly so will always trigger
-Wuninitialized. I will not add the volatile keywords to suppress this.


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

Merge change from illumos:

1368 enablings on defunct providers prevent providers from unregistering

We try to address some underlying differences between the Solaris
and FreeBSD implementations: dtrace_attach() / dtrace_detach() are
currently unimplemented in FreeBSD but the new code from illumos
makes use of taskq so some adaptations were made to dtrace_open()
and dtrace_close() to handle them appropriately.

Illumos Revision:	r13430:8e6add739e38

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

Reviewed by:	gnn
Tested by:	Fabian Keil
Obtained from:	Illumos
MFC after:	3 weeks


git-svn-id: svn://svn.freebsd.org/base/head@248983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Only unmap the RX mbuf DMA map if there's a buffer here.

The normal RX path (ath_rx_pkt()) will sync and unmap the
buffer before passing it up the stack.  We only need to do this
if we're flushing the FIFO during reset/shutdown.


git-svn-id: svn://svn.freebsd.org/base/head@248984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use ATH_MAX_SCATTER rather than ATH_TXDESC.

ATH_MAX_SCATTER is used to size the ath_buf DMA segment array.
We thus should use it when checking sizes of things.


git-svn-id: svn://svn.freebsd.org/base/head@248985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove an un-needed comment.


git-svn-id: svn://svn.freebsd.org/base/head@248986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
wordexp(): Remove wrong IFS usage.

Words in shell script are separated by spaces or tabs independent of the
value of IFS. The value of IFS is only relevant for the result of
substitutions. Therefore, there should be a space between 'wordexp' and the
words to be expanded, not an IFS character.

Paranoia might dictate that the shell ignore IFS from the environment (even
though our sh currently uses it), so do not depend on it in the new test
case.


git-svn-id: svn://svn.freebsd.org/base/head@248987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Ensure that we only call the busdma unmap/flush routines once, when
the buffer is being freed.

* When buffers are cloned, the original mapping isn't copied but it
  wasn't freeing the mapping until later.  To be safe, free the
  mapping when the buffer is cloned.

* ath_freebuf() now no longer calls the busdma sync/unmap routines.

* ath_tx_freebuf() now calls sync/unmap.

* Call sync first, before calling unmap.

Tested:

* AR5416, STA mode


git-svn-id: svn://svn.freebsd.org/base/head@248988 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Follow up to r247960 and rr247960 by also amending ctfmerge.  For the
only other case where STT_FILE symbols are used, in symit_next() in
cddl/contrib/opensolaris/tools/ctf/cvt/input.c, save the basename of the
symbol, instead of the full pathname.

Reported by:	avg
Tested by:	avg, jimharris
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@248991 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Added ATA Pass-Through support to CAM

sys/cam/scsi/scsi_all.c:
        - Added scsi_ata_pass_16 method
          Which use ATA Pass-Through to send commands to the attached disk.

sys/cam/scsi/scsi_all.h:
        - Added defines for all missing ATA Pass-Through commands values.

        - Added scsi_ata_pass_16 method.

        - Fixed a comment typo while I'm here

Reviewed by:	mav
Approved by:	pjd (mentor)
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@248992 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a typo.

Reported by:	David Imhoff via brad@OpenBSD
Tested by:	hrs
Reviewed by:	davidch


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