Allocate buffer for READ BUFFER/WRITE BUFFER commands on demand.

These commands are rare, but consume additional 256KB RAM per LUN.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simplify memrw().

MFC after:	10 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
getgrouplist(3) was reimplemented in terms of getgrent_r(3) in r174547, so
this bug is no longer valid.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273717 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge of 273518, tzdata2014i

Upgrade to 2014i

Lots of historical data

Pacific/Fiji will go into DST from 2014-11-02 to 2015-01-18
Pacific/Bougainville will go from UTC+10 to UTC+11.
Europe/Minsk will go from FET to MSK.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273718 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow the vfs.nfsd knobs to be set from loader.conf (or using
kenv(8)).  This is useful when nfsd is loaded as module.

Reviewed by:	rmacklem
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273727 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte
transfers to be default.  It simplifies porting code which assumes
such settings.

Discussed with:	avg, llos, nwhitehorn
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Reduce code duplication around Write Exclusive persistent reservation.

While there, allow some more commands to pass persistent reservation.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove comment obsoleted by r273730.

MFC after:	1 week


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

Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make assignments to "net.inet.tcp.cc.algorithm" work by fixing a bad
string comparison.

MFC after:	3 days
Reported by:	Jukka Ukkonen <jau789@gmail.com>
Sponsored by:	Mellanox Technologies


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/dd: Fix incorrect casting of arguments

dd(1) casts many of its numeric arguments from uintmax_t to intmax_t
and back again to detect whether or not the original arguments were
negative. This caused wrong behaviour in some boundary cases:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count cannot be negative

After the fix:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count: Result too large

PR:		191263
Submitted by:	will@worrbase.com
Approved by:	cognet@


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Clarify the documentation of pmcstat:
the -d argument should be passed before -p, -s, -P or -S to be taken in account

Differential Revision:	https://reviews.freebsd.org/D1011
Reviewed by:	adrian, gnn
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct a typo: this is the manpage for pthread_cleanup_pop, not push.

Submitted by:	ian


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

Submitted by:	brueffer


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Preserve limitation of "TCP_CA_NAME_MAX" when matching the algorithm
name.

MFC after:	3 days
Suggested by:	gnn @


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


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not automatically install routes to link-local and interface-local multicast
addresses.

Obtained from:	Yandex LLC
Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/dd: revert 273734, as it fails on 32bit platforms

Revert: insufficient testing on 32bit platforms

PR:		191263


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add foo_genassym.c files to DPSRCS so dependencies for them are generated.
This ensures these objects are rebuilt to generate an updated header of
assembly constants if needed.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@273744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
De-k&r-ify function definitions in kern/kern_resource.c

No functional changes.


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