- Constify local path variable for chflagsat().
- Use correct format characters (%lx) for u_long.

This fixes the build broken in r248599.


git-svn-id: svn://svn.freebsd.org/base/head@248610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace deprecated (or remove obsolete) libarchive 2.8 functions
with libarchive 3.0 counterparts


git-svn-id: svn://svn.freebsd.org/base/head@248612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFV r248590,248594:
Update libarchive to 3.1.2

Some of new features:
  - support for lrzip and grzip compression
  - support for writing tar v7 format
  - b64encode and uuencode filters
  - support for __MACOSX directory in Zip archives
  - support for lzop compresion (external utility)


git-svn-id: svn://svn.freebsd.org/base/head@248616 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Retire the mislabeled ENABLE_SUID_SSH knob.


git-svn-id: svn://svn.freebsd.org/base/head@248617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Upgrade to OpenSSH 6.2p1.  The most important new features are support
for a key revocation list and more fine-grained authentication control.


git-svn-id: svn://svn.freebsd.org/base/head@248619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
rc.d/sysctl: Fix error messages about unknown OIDs.

There are three situations where the sysctl script is called:
1. "start", very early
2. "lastload", near the end of rc
3. "reload", at admin request while the system is booted

Ignore unknown OIDs in situation 1 because kernel modules may not be loaded
yet and complain about them in situations 2 and 3.

PR:		conf/174595
Submitted by:	Olivier Smedts


git-svn-id: svn://svn.freebsd.org/base/head@248620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove __FreeBSD_version ifdefs.


git-svn-id: svn://svn.freebsd.org/base/head@248621 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The purpose of this change to the FFS layout policy is to reduce the
running time for a full fsck. It also reduces the random access time
for large files and speeds the traversal time for directory tree walks.

The key idea is to reserve a small area in each cylinder group
immediately following the inode blocks for the use of metadata,
specifically indirect blocks and directory contents. The new policy
is to preferentially place metadata in the metadata area and
everything else in the blocks that follow the metadata area.

The size of this area can be set when creating a filesystem using
newfs(8) or changed in an existing filesystem using tunefs(8).
Both utilities use the `-k held-for-metadata-blocks' option to
specify the amount of space to be held for metadata blocks in each
cylinder group. By default, newfs(8) sets this area to half of
minfree (typically 4% of the data area).

This work was inspired by a paper presented at Usenix's FAST '13:
www.usenix.org/conference/fast13/ffsck-fast-file-system-checker

Details of this implementation appears in the April 2013 of ;login:
www.usenix.org/publications/login/april-2013-volume-38-number-2.
A copy of the April 2013 ;login: paper can also be downloaded
from: www.mckusick.com/publications/faster_fsck.pdf.

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   4 weeks


git-svn-id: svn://svn.freebsd.org/base/head@248623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
As it's done for libstdc++, use SJLJ-based exceptions on arm when we're not
using EABI, and use unwind-arm.h instead of unwind-generic.h when using EABI.


git-svn-id: svn://svn.freebsd.org/base/head@248624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Speed up fsck by caching the cylinder group maps in pass1 so
that they do not need to be read again in pass5. As this nearly
doubles the memory requirement for fsck, the cache is thrown away
if other memory needs in fsck would otherwise fail. Thus, the
memory footprint of fsck remains unchanged in memory constrained
environments.

This work was inspired by a paper presented at Usenix's FAST '13:
www.usenix.org/conference/fast13/ffsck-fast-file-system-checker

Details of this implementation appears in the April 2013 of ;login:
www.usenix.org/publications/login/april-2013-volume-38-number-2.
A copy of the April 2013 ;login: paper can also be downloaded
from: www.mckusick.com/publications/faster_fsck.pdf.

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   4 weeks


git-svn-id: svn://svn.freebsd.org/base/head@248625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't attempt to reference sc before testing whether it's NULL.

Submitted by:	Sascha Wildner
Obtained from:	DragonFly
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@248627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add AR9300 descriptor decoding.


git-svn-id: svn://svn.freebsd.org/base/head@248632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'