Unstaticize t4_list and t4_uld_list.  This works around a clang
annoyance[1] and allows kgdb to find these symbols.

[1] http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041166.html

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a regression introduced by SVN r257842; resulting in mountroot prompt
after attempting to install to encrypted ZFS root (caused by a typo in a
variable name -- ZFSBOOT_BOOT_FSNAME -> ZFSBOOT_BOOTFS_NAME).

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259148 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Print out the full PCIe link negotiation during dmesg.

I found this useful when checking whether a NIC is in a PCIE 3.0 8x slot
or not.

Reviewed by:	np
Sponsored by:	Netflix, inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
calendar(1): Add support for #include with absolute paths

Prior to the addition of cpp support into calendar itself
#include </usr/share/calendar/calendar.all>
was a legal construction in a calendar file.

Permit this again


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mtest(8): use correct macro in mdoc

The An macros is used for authors while the Ar macro is used for arguments.
AFAIK mcast-addr and ifname are not authors.

PR:		docs/184649
Submitted by:	cnst++
MFC After:	3 days


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't even try to read vdev labels from devices smaller then SPA_MINDEVSIZE
(64MB).  Even if we would find one somehow, ZFS kernel code rejects such
devices.  It is funny to look on attempts to read 4 256K vdev labels from
1.44MB floppy, though it is not very practical and quite slow.


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259169 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused macro ADVANCE() and replace ROUNDUP() macro with ALIGN().
They aren't the same, but in our use cases ALIGN gives the same results.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change the type of addr argument in dump() function to be able
disambiguate link-local addresses from different zones.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Break build with error in case when both syscons and newcons are enabled.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable error message about failed attempt to attach fbd when drm2 built with
syscons.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259179 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix missing new line after:

	Netvsc initializing...

during boot.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259180 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix handling for empty auth-groups.  Without it, ctld child process
would either exit on assertion, or, if assertions are not enabled,
fail to authenticate the target.

MFC after:	2 days
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly refuse handoff requests on already connected sessions.  Previously
this would result in dropping the session.

MFC after:	2 days
Sponsored by:	The FreeBSD Foundation


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in fortune (go -> to)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For memsync replication, hio_countdown is used not only as an
indication when a request can be moved to done queue, but also for
detecting the current state of memsync request.

This approach has problems, e.g. leaking a request if memsynk ack from
the secondary failed, or racy usage of write_complete, which should be
called only once per write request, but for memsync can be entered by
local_send_thread and ggate_send_thread simultaneously.

So the following approach is implemented instead:

1) Use hio_countdown only for counting components we waiting to
   complete, i.e. initially it is always 2 for any replication mode.

2) To distinguish between "memsync ack" and "memsync fin" responses
   from the secondary, add and use hio_memsyncacked field.

3) write_complete() in component threads is called only before
   releasing hio_countdown (i.e. before the hio may be returned to the
   done queue).

4) Add and use hio_writecount refcounter to detect when
   write_complete() can be called in memsync case.

Reported by:	Pete French petefrench ingresso.co.uk
Tested by:	Pete French petefrench ingresso.co.uk
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@259191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add some macros to make the code more readable (no functional chages).

MFC after:	2 weeks


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

MFC after:	2 weeks


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