MFC r246153, r246154:

r246153:
 - Update svn port directory in release(7).

r246154:
 -  Force commit to mark MFC for r246153.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243245:

Add UFS writesuspension mechanism, designed to allow userland processes
to modify on-disk metadata for filesystems mounted for write.

Reviewed by:    kib, mckusick
Sponsored by:   FreeBSD Foundation

MFC r243247:

Add change missed in 243245.

MFC r243250:

Fix build of kdump(1).

MFC r243254:

Fix build on powerpc.

Reviewed by:    nwhitehorn

MFC r243305 by marius:

Fix build after r243245.

Submitted by:   trasz

MFC r243339 by kib:

Fix module build after r243245.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243246:

Make it possible to resize filesystems mounted read-write, using newly
introduced UFS write suspension mechanism.

Reviewed by:	kib, mckusick
Sponsored by:	FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/stable/9@246235 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244243:

Fix extending filesystems of weird size by making sure the actual size
is always multiple of fragment size.


git-svn-id: svn://svn.freebsd.org/base/stable/9@246236 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244295:

When growing a filesystem, don't leave unused space at the end
if there is not enough room for a full cylinder group.

Reviewed by:    mckusick@


git-svn-id: svn://svn.freebsd.org/base/stable/9@246237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245945: spa_generate_rootconf: add support for old vdev labels


git-svn-id: svn://svn.freebsd.org/base/stable/9@246240 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245946: g_mirror: g_getattr() failure should not be fatal

PR:		kern/175323


git-svn-id: svn://svn.freebsd.org/base/stable/9@246241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r246131:

Fix a problem introduced in r231057: in bsd.own.mk, move the test for
whether clang is enabled to just after the last place where it could
have been forced to "no".


git-svn-id: svn://svn.freebsd.org/base/stable/9@246249 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244686 to stable/9:
Use correct size in snprintf.
Remove unused buffer.

PR:		174631
Submitted by:	Henning Petersen


git-svn-id: svn://svn.freebsd.org/base/stable/9@246253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245606:
	Add option to make pc-sysinstall optional

PR:		bin/173931
Approved by:	cperciva (implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245535:
	Remove useless variable 'Pflag':
		-P is an alternative to -H and -L, and it is implemented using the Hflag and Lflag variables.

Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244122:
	Remove 'dangerous' instructions from the example make.conf.
	Clarify when and why these might be used and that this isn't a supported
	configuration.

PR:		docs/144488
Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243931:
	Avoid the creation of a temporary object by using the prefix operator
	for non-primitive types.

Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243793,r243794:
	Add a few more translations from IDs to model name.

PR:		kern/174059
Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244407,r244409:
	POSIX requires that non-existent or null arguments be treated as if a
	zero argument were supplied.

	Add regression tests to catch this case as well.

PR:		bin/174521
Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r244493:
Make bsdgrep behave as gnugrep and as documented: -m should only stop
	reading the specific file, not any file.

Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246279 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r243896:
	Use strdup instead of malloc + strcpy

Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245491:
	Avoid clobbering errno with a call to fprintf

PR:		bin/173923
Approved by:	cperciva (mentor, implicit)


git-svn-id: svn://svn.freebsd.org/base/stable/9@246281 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r242379:

Fix problem with geom_label(4) not recognizing UFS labels on filesystems
extended using growfs(8).  The problem here is that geom_label checks if
the filesystem size recorded in UFS superblock is equal to the provider
(i.e. device) size.  This check cannot be removed due to backward
compatibility.  On the other hand, in most cases growfs(8) cannot set
fs_size in the superblock to match the provider size, because, differently
from newfs(8), it cannot recompute cylinder group sizes.

To fix this problem, add another superblock field, fs_providersize, used
only for this purpose.  The geom_label(4) will attach if either fs_size
(filesystem created with newfs(8)) or fs_providersize (filesystem expanded
using growfs(8)) matches the device size.

PR:		kern/165962
Reviewed by:	mckusick
Sponsored by:	FreeBSD Foundation


git-svn-id: svn://svn.freebsd.org/base/stable/9@246284 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r245977:
Be conservative and do not try to consume more bytes than was
requested from the server for the read operation.


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