Fix return type of extattr_set_* and fix rmextattr(8) utility.

extattr_set_{fd,file,link} is logically a write(2)-like operation and
should return ssize_t, just like extattr_get_*.  Also, the user-space
utility was using an int for the return value of extattr_get_* and
extattr_list_*, both of which return an ssize_t.

MFC after:	1 week


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

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@248996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add VIMAGE to NOTES.

Reviewed by:	zec


git-svn-id: svn://svn.freebsd.org/base/head@248997 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a missing unmap; if we're freeing this mbuf then we must
really both sync/unmap the dmamap before freeing it.


git-svn-id: svn://svn.freebsd.org/base/head@248998 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some TX dmamap cleanups.

* Don't use BUS_DMA_ALLOCNOW for descriptor DMA maps; we never use
  bounce buffers for the descriptors themselves.

* Add some XXX's to mark where the ath_buf has its mbuf ripped from
  underneath it without actually cleaning up the dmamap.  I haven't
  audited those particular code paths to see if the DMA map is guaranteed
  to be setup there; I'll do that later.

* Print out a warning if the descdma tidyup code is given some descriptors
  w/ maps to free.  Ideally the owner will free the mbufs and unmap
  the descriptors before freeing the descriptor/ath_buf pairs, but
  right now that's not guaranteed to be done.

Reviewed by:	scottl (BUS_DMA_ALLOCNOW tag)


git-svn-id: svn://svn.freebsd.org/base/head@248999 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Mark a couple of places where I think the dmamap isn't being unmapped
before the TX path is being aborted.

Right now it's in the TDMA code and I can live with that; but it really
should get fixed.

I'll do a more thorough audit of this code soon.


git-svn-id: svn://svn.freebsd.org/base/head@249000 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not check against uninitialized rc and comment out vendor code

MFC after:	16 days


git-svn-id: svn://svn.freebsd.org/base/head@249004 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix panic in the error path caused by recursive acquisition of XPT topology
lock.

Reviewed by:	ken


git-svn-id: svn://svn.freebsd.org/base/head@249008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make it possible to build CTL as a module.

Reviewed by:	ken
Sponsored by:	FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/head@249009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix dates in manual pages modified in 249009.


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

Reviewed by:	ken


git-svn-id: svn://svn.freebsd.org/base/head@249012 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Silence printf format warnings.


git-svn-id: svn://svn.freebsd.org/base/head@249015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge upstream patch to silence spurious "no such identity file" warnings.


git-svn-id: svn://svn.freebsd.org/base/head@249016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix comment formatting.


git-svn-id: svn://svn.freebsd.org/base/head@249019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove obsolete references to sysinstall.

This change is not intended for MFC.

PR:		docs/177570
Submitted by:	Garrett Cooper <yaneurabeya@gmail.com> (partial)
Approved by:	bcr (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@249020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Remove extra $FreeBSD$
- Touch options headers to make module buildable.

Reviewed by:	trasz


git-svn-id: svn://svn.freebsd.org/base/head@249022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().

Declare CCB types in their respective switch blocks.

Sponsored by:	Spectra Logic


git-svn-id: svn://svn.freebsd.org/base/head@249025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't directly dereference userland pointer; instead use kernel pointer
copied in from userspace.  This fixes instant panic when creating CTL LUN
on sparc64.  Not a security problem, since the API is root-only.

Reviewed by:	ken
Sponsored by:	FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/head@249026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix sending virtual scatter/gather lists from the CTL CAM frontend
peripheral.

Sponsored by:	Spectra Logic


git-svn-id: svn://svn.freebsd.org/base/head@249028 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not declare that preloaded md(4) supports unmapped bio requests, it
does not.

Reported by:	<mh@kernel32.de>
Sponsored by:	The FreeBSD Foundation


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