]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
avg [Thu, 16 Jan 2014 15:59:08 +0000 (15:59 +0000)]
MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
performance work

Note a change in dmu_tx_delay: pause_sbt is not available in this
branch.

Sponsored by: HybridCluster [merge]

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

10 years agoMFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
avg [Thu, 16 Jan 2014 15:43:17 +0000 (15:43 +0000)]
MFC r254074: MFV r254070: Merge vendor bugfix for ZFS test suite that
triggers false positives

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

10 years agoMFC r248426: Fix typo in sysctl description
avg [Thu, 16 Jan 2014 15:22:26 +0000 (15:22 +0000)]
MFC r248426: Fix typo in sysctl description

MFC slacker: mm

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

10 years agoMFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)
avg [Thu, 16 Jan 2014 15:10:29 +0000 (15:10 +0000)]
MFC r255437: MFV r247844 (illumos-gate 13975:ef6409bc370f)

Note that a different kind of cv_timedwait_hires shim is provided in
this branch because cv_timedwait_sbt is not available for better
emulation.

Sponsored by: HybridCluster [merge]

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

10 years agoMFC r258631: MFV r247578
avg [Thu, 16 Jan 2014 14:48:05 +0000 (14:48 +0000)]
MFC r258631: MFV r247578

3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot

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

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:42:08 +0000 (14:42 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

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

10 years agoMFC r258743: drop ZUT_OBJ
avg [Thu, 16 Jan 2014 14:37:41 +0000 (14:37 +0000)]
MFC r258743: drop ZUT_OBJ

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

10 years agoMFC r258630: 734 taskq_dispatch_prealloc() desired
avg [Thu, 16 Jan 2014 14:35:06 +0000 (14:35 +0000)]
MFC r258630: 734 taskq_dispatch_prealloc() desired

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

10 years agoMFC r258628: opensolaris taskq: some cosmetic changes
avg [Thu, 16 Jan 2014 14:30:35 +0000 (14:30 +0000)]
MFC r258628: opensolaris taskq: some cosmetic changes

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

10 years agoMFC r258648: use saner calculations in should_yield
avg [Thu, 16 Jan 2014 14:27:29 +0000 (14:27 +0000)]
MFC r258648: use saner calculations in should_yield

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

10 years agoMFC r258647: zfsboottest: properly specify a library dependency
avg [Thu, 16 Jan 2014 14:24:22 +0000 (14:24 +0000)]
MFC r258647: zfsboottest: properly specify a library dependency

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

10 years agoMFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
avg [Thu, 16 Jan 2014 14:21:41 +0000 (14:21 +0000)]
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

Sponsored by: HybridCluster

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

10 years agoMFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)
avg [Thu, 16 Jan 2014 14:17:44 +0000 (14:17 +0000)]
MFC r258352: fsx: add an option to randomly call msync(MS_INVALIDATE)

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

10 years agoMFC r258351: fsx: new option to disable msync(MS_SYNC) after each write
avg [Thu, 16 Jan 2014 14:15:04 +0000 (14:15 +0000)]
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write

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

10 years agoMFC r258354: taskqueue_cancel: garbage collect a write-only variable
avg [Thu, 16 Jan 2014 14:11:56 +0000 (14:11 +0000)]
MFC r258354: taskqueue_cancel: garbage collect a write-only variable

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

10 years agoMFC r253821,254753,256259
avg [Thu, 16 Jan 2014 14:08:11 +0000 (14:08 +0000)]
MFC r253821,254753,256259

MFV r253783: 3834 incremental replication of 'holey' file systems is
slow

MFV r254747:4047 panic from dbuf_free_range() from dmu_free_object()
while doing zfs receive

MFV r255257: 4082 zfs receive gets EFBIG from dmu_tx_hold_free()

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

10 years agoMFC r260481:
ae [Thu, 16 Jan 2014 13:24:58 +0000 (13:24 +0000)]
MFC r260481:
  Add MRT6_DLOG() macro for debugging.
  Reduce number of MRT6DEBUG ifdefs and fix some broken format strings.

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

10 years agoMFC r260336,r260355: find: Fix -lname and -ilname:
jilles [Tue, 14 Jan 2014 21:35:25 +0000 (21:35 +0000)]
MFC r260336,r260355: find: Fix -lname and -ilname:

* Take into account that readlink() does not add a terminating '\0'.

* Do not match symlinks that are followed because of -H or -L. This is
  explicitly documented in GNU find's info file and is like -type l.

* Fix matching symlinks in subdirectories when fts changes directories.

As before, symlinks of length PATH_MAX or more are not handled correctly.
(These can only be created on other operating systems.)

Also, avoid some readlink() calls on files that are obviously not symlinks
(because of fts(3) restrictions, not all of them).

PR: bin/185393
Submitted by: Ben Reser (parts, original version)

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

10 years agoMFC 238423,238426,238428,258063,258063,258066,258097,258185,259134:
jhb [Tue, 14 Jan 2014 21:20:51 +0000 (21:20 +0000)]
MFC 238423,238426,238428,258063,258063,258066,258097,258185,259134:
The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc.  It
manages updates by doing a three-way merge of changes made to these files
against the local versions.  It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

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

10 years agoFix BIND remote denial of service vulnerability.
delphij [Tue, 14 Jan 2014 19:38:37 +0000 (19:38 +0000)]
Fix  BIND remote denial of service vulnerability.

Security: FreeBSD-SA-14:04.bind
Security: CVE-2014-0591

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

10 years agoOn stable/8 and stable/9, disable hardware random number generators
delphij [Tue, 14 Jan 2014 19:27:42 +0000 (19:27 +0000)]
On stable/8 and stable/9, disable hardware random number generators
by default.  This is a direct commit to stable/ branches because
HEAD and stable/10 have superior implementation of random device.

Approved by: so

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

10 years agoMFC r260637:
delphij [Tue, 14 Jan 2014 19:20:41 +0000 (19:20 +0000)]
MFC r260637:

Disable 'monitor' feature in ntpd by default.

Security: FreeBSD-SA-14:02.ntpd
Approved by: so

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

10 years agoMFC r260636:
delphij [Tue, 14 Jan 2014 19:17:20 +0000 (19:17 +0000)]
MFC r260636:

Fix bsnmpd remote denial of service vulnerability.

Reported by: dinoex
Submitted by: harti
Security: FreeBSD-SA-14:01.bsnmpd
Security: CVE-2014-1452

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

10 years agoMFC r260545:
pfg [Tue, 14 Jan 2014 15:21:19 +0000 (15:21 +0000)]
MFC r260545:

ext2fs: fix inode flag conversion.

After r252890 we are naively attempting to pass through the
inode flags.  This is technically incorrect as the ext2
inode flags don't match the UFS/system values used in
FreeBSD and a clean conversion is needed.

Some filtering was left in place so the change didn't cause
significant changes in FreeBSD but some of the garbage passed
is likely to be the cause for warning messages in linux.

Fix the issue by resetting the flags before conversion as was
done previously. This also means we will not pass the EXT4_*
inode flags into FreeBSD's inode.

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

10 years agoMFC r257705:
pluknet [Tue, 14 Jan 2014 14:05:29 +0000 (14:05 +0000)]
MFC r257705:

Clean up -Wtautological-compare -Wformat warnings.

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

10 years agoMFC r259921,259950:
pluknet [Tue, 14 Jan 2014 09:58:33 +0000 (09:58 +0000)]
MFC r259921,259950:

Provide the manual page for aio_fsync(2).

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

10 years agoMFC r260110:
delphij [Mon, 13 Jan 2014 19:42:37 +0000 (19:42 +0000)]
MFC r260110:

Eliminate unused drbr_stats_update implementation in oce(4) driver.

Noticed by: dim

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

10 years agoMFC 243152,255478: Two SOCK_SEQPACKET fixes:
jhb [Mon, 13 Jan 2014 18:57:30 +0000 (18:57 +0000)]
MFC 243152,255478: Two SOCK_SEQPACKET fixes:
- Update comment.
- Provide pr_ctloutput method for AF_LOCAL/SOCK_SEQPACKET sockets.

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

10 years agoMFC r244607 and r244650:
hselasky [Sun, 12 Jan 2014 21:21:19 +0000 (21:21 +0000)]
MFC r244607 and r244650:
Fix regression issues after r244503.

PR: usb/185628

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

10 years agoMFC r260310:
pfg [Sun, 12 Jan 2014 21:19:49 +0000 (21:19 +0000)]
MFC r260310:

libcpp: misc fixes from Apple's GCC.

Fixes some bugs detected by Apple:
  #error with unmatched quotes
  pragma mark

Obtained from: Apple GCC 4.2 - 5553

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

10 years agoRevert unrelated fix that went into r260569.
pfg [Sun, 12 Jan 2014 20:18:12 +0000 (20:18 +0000)]
Revert unrelated fix that went into r260569.

The fix is good but the minimum MFC period for this change
has not elapsed yet.

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

10 years agoMFC r259920:
pfg [Sun, 12 Jan 2014 20:10:12 +0000 (20:10 +0000)]
MFC r259920:

gcc: Implement -Wmost for compatibility with clang.

This is equivalent to -Wall -Wno-parentheses.

Obtained from: Apple GCC 4.2 - 5531

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

10 years agoMFC r260184:
hselasky [Sat, 11 Jan 2014 08:23:02 +0000 (08:23 +0000)]
MFC r260184:
Minor correction for the XHCI reset logic.

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

10 years agoMFC r260361:
pfg [Sat, 11 Jan 2014 01:45:20 +0000 (01:45 +0000)]
MFC r260361:

gcc: Fix optimization bug.

GCC-PR rtl-optimization/34628
* combine.c (try_combine): Stop and undo after the first combination
if an autoincrement side-effect on the first insn has effectively
been lost.

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

10 years agoMFC 259339
asomers [Fri, 10 Jan 2014 18:14:15 +0000 (18:14 +0000)]
MFC 259339
      sbin/devd/devd.cc
          Increase the size of devd's client socket's send buffer from the
          default (8k) to 128k.  This prevents clients from getting
          POLLHUPped during event storms.  For example, during zpool creation,
          the kernel emits a resource.fs.zfs.statechange event for every vdev
          in the pool.  A 128k buffer is large enough to hold the statechange
          events for a pool with nearly 800 drives.

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

10 years agoMFC 259240
asomers [Fri, 10 Jan 2014 17:40:29 +0000 (17:40 +0000)]
MFC 259240
   sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
        When a da or ada device dissappears, outstanding IOs fail with
        ENXIO, not EIO.  The check for EIO was probably copied from Illumos,
        where that is indeed the correct errno.

        Without this change, pulling a busy drive from a zpool would usually
        turn it into UNAVAIL, even though pulling an idle drive would turn
        it into REMOVED.  With this change, it is REMOVED every time.

        Also, vdev_geom_io_intr shouldn't do zfs_post_remove, because that
        results in devd getting two resource.fs.zfs.removed events.  The
        comment said that the event had to be sent directly instead of
        through the async removal thread because "the DE engine is using
        this information to discard prevoius I/O errors".  However, the fact
        that vdev_geom_io_intr was never actually sending the events until
        now, and that vdev_geom_orphan never sent them at all, and that
        vdev_geom_orphan usually gets called about 2 seconds after the
        actual removal, means that FreeBSD's userland can cope with a late
        event just fine.

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

10 years agoMFC r260151 (by adrian):
ae [Fri, 10 Jan 2014 12:22:49 +0000 (12:22 +0000)]
MFC r260151 (by adrian):
  Use an RLOCK here instead of an RWLOCK - matching all the other calls
  to lla_lookup().

  This drastically reduces the very high lock contention when doing parallel
  TCP throughput tests (> 1024 sockets) with IPv6.

MFC r260187:
  lla_lookup() does modification only when LLE_CREATE is specified.
  Thus we can use IF_AFDATA_RLOCK() instead of IF_AFDATA_LOCK() when doing
  lla_lookup() without LLE_CREATE flag.

MFC r260217:
  Add IF_AFDATA_WLOCK_ASSERT() in case lla_lookup() is called with
  LLE_CREATE flag.

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

10 years agoMFC r259634:
ae [Fri, 10 Jan 2014 12:09:38 +0000 (12:09 +0000)]
MFC r259634:
  Prevent users from deactivating the last component of a mirror.

MFC r259929:
  Add an ability to stop gmirror and clear its metadata in one command.
  This fixes the problem, when gmirror starts again just after stop.

  The problem occurs when gmirror's component has geom label with equal size.
  E.g. gpt and gptid have the same size as partition, diskid has the same
  size as entire disk. When gmirror's geom has been destroyed, glabel
  creates its providers and this initiate retaste.

  Now "gmirror destroy" command is available. It destroys geom and also
  erases gmirror's metadata.

PR: 184985

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

10 years agoMFC r260358
wblock [Thu, 9 Jan 2014 23:52:55 +0000 (23:52 +0000)]
MFC r260358

Fix a cut and paste error.

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

10 years agoMFC r260334:
dim [Thu, 9 Jan 2014 23:08:56 +0000 (23:08 +0000)]
MFC r260334:

Split the last gcc-specific flags off into CFLAGS.gcc.  This also
removes the need to use -Qunused-arguments for clang throughout the
tree.

MFC r260369:

Apply band-aid for 32-bit compat libs failures after r260334: put back
-Qunused-arguments for clang for now, until I can figure out a way to
make it unneeded in all scenarios.  Sorry about the breakage.

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

10 years agoMFC r260102:
dim [Thu, 9 Jan 2014 22:40:51 +0000 (22:40 +0000)]
MFC r260102:

Similar to r260020, only use -fms-extensions with gcc, for all other
modules which require this flag to compile.  Use a GCC_MS_EXTENSIONS
variable, defined in kern.pre.mk, which can be used to easily supply the
flag (or not), depending on the compiler type.

MFC r260322:

In addition to r260102, also define GCC_MS_EXTENSIONS in bsd.sys.mk,
since kernel module builds do not use kern.pre.mk.

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

10 years agoMFC r258683:
mav [Thu, 9 Jan 2014 11:15:05 +0000 (11:15 +0000)]
MFC r258683:
Escape special XML chars, returned by some devices, confusing XML parsers.

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

10 years agoMFC r259197:
mav [Thu, 9 Jan 2014 10:45:37 +0000 (10:45 +0000)]
MFC r259197:
Do not DELAY() for P-state transition unless we want to see the result.

Intel manual says: "If a transition is already in progress, transition to
a new value will subsequently take effect. Reads of IA32_PERF_CTL determine
the last targeted operating point."  So seems it should be fine to just
trigger wanted transition and go.  Linux does the same.

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

10 years agoMFC r260205:
kib [Thu, 9 Jan 2014 03:33:12 +0000 (03:33 +0000)]
MFC r260205:
Update the description for pmap_remove_pages() to match the modern
times.  Assert that the pmap passed to pmap_remove_pages() is only
active on current CPU.

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

10 years agoMFC r260204:
kib [Thu, 9 Jan 2014 03:25:08 +0000 (03:25 +0000)]
MFC r260204:
Assert that accounting for the pmap resident pages does not underflow.

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

10 years agoMFC r259873:
pfg [Wed, 8 Jan 2014 19:34:23 +0000 (19:34 +0000)]
MFC r259873:

gcc: small enhancements for the arm support.

fixes GCC-PR target/31152

Obtained from: gcc 4.3 (rev. r118461, 125973: GPLv2)

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

10 years agoRevert MFC of r258821 - it was already handled by MFC of r239672.
peter [Wed, 8 Jan 2014 03:16:36 +0000 (03:16 +0000)]
Revert MFC of r258821 - it was already handled by MFC of r239672.

Pointy hat to: peter

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

10 years agoMFC r258893, r258956:
cperciva [Wed, 8 Jan 2014 02:31:35 +0000 (02:31 +0000)]
MFC r258893, r258956:
  Add a new sysctl / loader tunable kern.panic_reboot_wait_time which
  defaults to PANIC_REBOOT_WAIT_TIME (a long-existing kernel config
  setting).  Use this now-variable value in place of the defined constant
  to control how long the system waits after a panic before rebooting.

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

10 years agoMFC r258894: Make rc(8) re-source rc.conf upon receipt of SIGALRM.
cperciva [Wed, 8 Jan 2014 02:30:24 +0000 (02:30 +0000)]
MFC r258894: Make rc(8) re-source rc.conf upon receipt of SIGALRM.

The rc system aggressively caches the contents of /etc/rc.conf in order to
improve boot performance; this produces arguably astonishing (non-)results
if /etc/rc.conf is modified during the boot process.  This commit provides
a mechanism for explicitly requesting that rc.conf be reloaded.

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

10 years agoMerged r260415 from head.
edavis [Tue, 7 Jan 2014 23:20:21 +0000 (23:20 +0000)]
Merged r260415 from head.

Approved by: davidcd

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

10 years agoMFC r258821 - fix tcp simultaneous close
peter [Tue, 7 Jan 2014 23:01:33 +0000 (23:01 +0000)]
MFC r258821 - fix tcp simultaneous close

PR:             kern/99188

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

10 years agoMFC r260049:
trociny [Tue, 7 Jan 2014 21:24:34 +0000 (21:24 +0000)]
MFC r260049:

Add mibs for hastd(1) queue stats.

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

10 years agoMFC r259841
pfg [Tue, 7 Jan 2014 18:34:02 +0000 (18:34 +0000)]
MFC r259841

gcc:  Add ability to generate DWARF pubtypes section if
DEBUG_PUBTYPES_SECTION is defined.

Obtained from: gcc 4.3 (rev. 118826; GPLv2)

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

10 years agoMFC r258901:
sbruno [Sun, 5 Jan 2014 17:33:10 +0000 (17:33 +0000)]
MFC r258901:

svn r251516 resized the buf argument a bit too much. Pass a hardcoded
size of 6 to humanize_number() to resolve this.

PR:     bin/184405
Submitted by:   jhb

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

10 years agoRevert MFC of r260102 for now, until I can merge the required fix from
dim [Sun, 5 Jan 2014 15:39:37 +0000 (15:39 +0000)]
Revert MFC of r260102 for now, until I can merge the required fix from
head.  This should fix building modules which require -fms-extensions to
compile them with gcc.

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

10 years agoMFC revision 259907
luigi [Sun, 5 Jan 2014 11:58:07 +0000 (11:58 +0000)]
MFC revision 259907
use the correct netmap <-> nic slot mapping on the transmit ring for 'lem'.
This bug would manifest only in netmap mode and on packets transmitted after
a NIC reset while netmap mode is active.

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

10 years agoMFC r235128:
hselasky [Sun, 5 Jan 2014 10:49:56 +0000 (10:49 +0000)]
MFC r235128:
Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().

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

10 years agoMFC r260112:
dim [Sat, 4 Jan 2014 23:12:01 +0000 (23:12 +0000)]
MFC r260112:

In sys/dev/sound/pci/maestro.c, #if 0 two unused static functions.

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

10 years agoMFC r260104:
dim [Sat, 4 Jan 2014 22:13:16 +0000 (22:13 +0000)]
MFC r260104:

For sys/ofed/drivers/infiniband/core/cm.c, disable warning about unused
functions for now.

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

10 years agoMFC r260095:
dim [Sat, 4 Jan 2014 22:00:07 +0000 (22:00 +0000)]
MFC r260095:

For sys/boot/i386 and sys/boot/pc98, separate flags to be passed
directly to the linker (LD_FLAGS) from flags passed indirectly, via the
compiler driver (LDFLAGS).

This is because several Makefiles under sys/boot/i386 and sys/boot/pc98
use ${LD} directly to link, and the normal LDFLAGS value should not be
used in these cases.

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

10 years agoMFC r260103:
dim [Sat, 4 Jan 2014 21:45:52 +0000 (21:45 +0000)]
MFC r260103:

In sys/amd64/amd64/pmap.c, remove static function pmap_is_current(),
which has been unused since r189415.

Reviewed by: alc

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

10 years agoMFC r260057:
dim [Sat, 4 Jan 2014 21:32:53 +0000 (21:32 +0000)]
MFC r260057:

In sys/dev/scc, remove unused static function scc_setmreg().  While
here, invoke scc_getmreg() in two more places where it can be used.

Reviewed by: marcel

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

10 years agoMFC r260056:
dim [Sat, 4 Jan 2014 21:23:49 +0000 (21:23 +0000)]
MFC r260056:

In sys/dev/vxge/vxgehal/vxgehal-ring.c, #if 0 an unused static function.

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

10 years agoMFC r260055:
dim [Sat, 4 Jan 2014 21:18:54 +0000 (21:18 +0000)]
MFC r260055:

In sys/dev/usb/wlan/if_urtw.c, #if 0 a static const variable, which has
been unused since r198194.

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

10 years agoMFC r260054:
dim [Sat, 4 Jan 2014 19:13:25 +0000 (19:13 +0000)]
MFC r260054:

In sys/dev/tpm/tpm.c, #if 0 an unused static function.

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

10 years agoMFC r260048:
dim [Sat, 4 Jan 2014 19:04:53 +0000 (19:04 +0000)]
MFC r260048:

In sys/netgraph/netflow, use __FBSDID() instead of old-style rcs_id[].

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

10 years agoMFC r260042:
dim [Sat, 4 Jan 2014 18:58:18 +0000 (18:58 +0000)]
MFC r260042:

Remove superfluous old-style rcsid[] from if_my.c.  There is already an
__FBSDID() at the top of the file.

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

10 years agoMFC r260040:
dim [Sat, 4 Jan 2014 18:53:31 +0000 (18:53 +0000)]
MFC r260040:

In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used,
so it ends up in the object file, and no warnings are emitted about it
being actually unused.

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

10 years agoMFC r260038:
dim [Sat, 4 Jan 2014 18:48:29 +0000 (18:48 +0000)]
MFC r260038:

In sys/dev/en/midway.c, #if 0 an unused static function.

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

10 years agoMFC r260026:
dim [Sat, 4 Jan 2014 18:24:45 +0000 (18:24 +0000)]
MFC r260026:

Disable warning about unused functions for ieee80211_crypto.c and
ieee80211_mesh.c for now.

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

10 years agoMFC r260019:
dim [Sat, 4 Jan 2014 17:59:40 +0000 (17:59 +0000)]
MFC r260019:

For some files under sys/dev/drm2/i915, turn off warnings about unused
functions and variables, since they are contributed code.

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

10 years agoMFC r260102:
dim [Sat, 4 Jan 2014 17:56:19 +0000 (17:56 +0000)]
MFC r260102:

Similar to r260020, only use -fms-extensions with gcc, for all other
modules which require this flag to compile.  Use a GCC_MS_EXTENSIONS
variable, defined in kern.pre.mk, which can be used to easily supply the
flag (or not), depending on the compiler type.

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

10 years agoMFC r260016:
dim [Sat, 4 Jan 2014 17:33:05 +0000 (17:33 +0000)]
MFC r260016:

Remove superfluous old-style rcsid[] from if_sk.c.  There is already an
__FBSDID() at the top of the file.

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

10 years agoMFC r260003:
dim [Sat, 4 Jan 2014 17:27:43 +0000 (17:27 +0000)]
MFC r260003:

In libiconv_modules, surround unused static _citrus_XXX_pack_state() and
_citrus_XXX_unpack_state() functions with #if 0, for now.

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

10 years agoMFC r260015:
dim [Sat, 4 Jan 2014 17:22:53 +0000 (17:22 +0000)]
MFC r260015:

In libc++'s type_traits header, avoid warnings (activated by our use of
-Wsystem-headers) about potential keyword compatibility problems, by
adding a __libcpp prefix to the applicable identifiers.

Upstream is still debating about this, but we need it now, to be able to
import clang 3.4.

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

10 years agoMFC Broadcom 10Gb bxe driver
edavis [Sat, 4 Jan 2014 04:48:58 +0000 (04:48 +0000)]
MFC Broadcom 10Gb bxe driver
Merged r255736, r255861, r256299, r256341, r258187, r259928, r260113

Approved by: davidch (mentor)

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

10 years agoMFC r259953:
kib [Fri, 3 Jan 2014 20:02:59 +0000 (20:02 +0000)]
MFC r259953:
Fix accounting for the negative cache entries when reusing v_cache_dd.

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

10 years agoMFC r259655 (partial), r259944
pfg [Fri, 3 Jan 2014 15:55:20 +0000 (15:55 +0000)]
MFC r259655 (partial), r259944

gcc: merge small upstream changes.

Fix for PR c++/29928

Backport from mainline:
2007-04-24  Hui-May Chang <hm.chang@apple.com>

* reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.

Obtained from: gcc 4.3 (rev. r124115, 124724: GPLv2)

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

10 years agoMFC r258281: Fix siginfo_t.si_status for wait6/waitid/SIGCHLD.
jilles [Fri, 3 Jan 2014 14:30:24 +0000 (14:30 +0000)]
MFC r258281: Fix siginfo_t.si_status for wait6/waitid/SIGCHLD.

Per POSIX, si_status should contain the value passed to exit() for
si_code==CLD_EXITED and the signal number for other si_code. This was
incorrect for CLD_EXITED and CLD_DUMPED.

This is still not fully POSIX-compliant (Austin group issue #594 says that
the full value passed to exit() shall be returned via si_status, not just
the low 8 bits) but is sufficient for a si_status-related test in libnih
(upstart, Debian/kFreeBSD).

PR: kern/184002

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

10 years agoRegen.
pluknet [Fri, 3 Jan 2014 08:31:42 +0000 (08:31 +0000)]
Regen.

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

10 years agoMFC 255708,255711,255731:
jhb [Thu, 2 Jan 2014 21:57:03 +0000 (21:57 +0000)]
MFC 255708,255711,255731:
Extend the support for exempting processes from being killed when swap is
exhausted.
- Add a new protect(1) command that can be used to set or revoke protection
  from arbitrary processes.  Similar to ktrace it can apply a change to all
  existing descendants of a process as well as future descendants.
- Add a new procctl(2) system call that provides a generic interface for
  control operations on processes (as opposed to the debugger-specific
  operations provided by ptrace(2)).  procctl(2) uses a combination of
  idtype_t and an id to identify the set of processes on which to operate
  similar to wait6().
- Add a PROC_SPROTECT control operation to manage the protection status
  of a set of processes.  MADV_PROTECT still works for backwards
  compatability.
- Add a p_flag2 to struct proc (and a corresponding ki_flag2 to kinfo_proc)
  the first bit of which is used to track if P_PROTECT should be inherited
  by new child processes.

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

10 years agoMFC r259906: Draft-ietf-tcpm-initcwnd-05 became RFC6928.
pluknet [Thu, 2 Jan 2014 16:50:26 +0000 (16:50 +0000)]
MFC r259906: Draft-ietf-tcpm-initcwnd-05 became RFC6928.

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

10 years agoMFC r259872:
pluknet [Thu, 2 Jan 2014 16:39:11 +0000 (16:39 +0000)]
MFC r259872:

 The compile time constant limit on number of swap devices was removed in 5.2.
 As such, remove the EINVAL error saying so.  Currently the vm.nswapdev sysctl
 just represents the number of added swap devices.

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

10 years agoMFC r259870:
pluknet [Thu, 2 Jan 2014 16:27:30 +0000 (16:27 +0000)]
MFC r259870:

 Do not truncate the ``command'' column in ``ps'' output.

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

10 years agoMFC: r259854
rmacklem [Wed, 1 Jan 2014 22:49:37 +0000 (22:49 +0000)]
MFC: r259854
The NFSv4 server would call VOP_SETATTR() with a shared locked vnode
when a Getattr for a file is done by a client other than the one that
holds the file's delegation. This would only happen when delegations
are enabled and the problem is fixed by this patch.

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

10 years agoMFC: r259845
rmacklem [Wed, 1 Jan 2014 22:43:16 +0000 (22:43 +0000)]
MFC: r259845
An intermittent problem with NFSv4 exporting of ZFS snapshots was
reported to the freebsd-fs mailing list. I believe the problem was
caused by the Readdir operation using VFS_VGET() for a snapshot file entry
instead of VOP_LOOKUP(). This would not occur for NFSv3, since it
will do a VFS_VGET() of "." which fails with ENOTSUPP at the beginning
of the directory, whereas NFSv4 does not check "." or "..". This
patch adds a call to VFS_VGET() for the directory being read to check
for ENOTSUPP.
I also observed that the mount_on_fileid and fsid attributes were
not correct at the snapshot's auto mountpoints when looking at packet
traces for the Readdir. This patch fixes the attributes by doing a check
for different v_mount structure, even if the vnode v_mountedhere is not
set.

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

10 years agoMFC: r259801
rmacklem [Wed, 1 Jan 2014 22:35:11 +0000 (22:35 +0000)]
MFC: r259801
The NFSv4 client was passing both the p and cred arguments to
nfsv4_fillattr() as NULLs for the Getattr callback. This caused
nfsv4_fillattr() to not fill in the Change attribute for the reply.
I believe this was a violation of the RFC, but had little effect on
server behaviour. This patch passes a non-NULL p argument to fix this.

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

10 years agoMFC: r259089
rmacklem [Wed, 1 Jan 2014 22:22:00 +0000 (22:22 +0000)]
MFC: r259089
Document the noncontigwr NFS mount option.
This is a content change.

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

10 years agoMFC: r259084
rmacklem [Wed, 1 Jan 2014 22:14:49 +0000 (22:14 +0000)]
MFC: r259084
For software builds, the NFS client does many small
synchronous (with FILE_SYNC) writes because non-contiguous
byte ranges in the same buffer cache block are being
written. This patch adds a new mount option "noncontigwr"
which allows the non-contiguous byte ranges to be combined,
with the dirty byte range becoming the superset of the bytes
that are dirty, if the file has not been file locked.
This reduces the number of writes significantly for software
builds. The only case where this change might break existing
applications is where an application is writing
non-overlapping byte ranges within the same buffer cache block
of a file from multiple clients concurrently.
Since such an application would normally do file locking on
the file, avoiding the byte range merge for files that have
been file locked should be sufficient for most (maybe all?) cases.

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

10 years agoMFC r259525, r259526, r259529
pfg [Tue, 31 Dec 2013 20:18:10 +0000 (20:18 +0000)]
MFC r259525, r259526, r259529

gcc: small merges from upstream

fix ICE in rs6000 when using -fno-trapping-math.
Solves GCC-PR target/30485

Solve GCC issues:
PR middle-end/32602
PR middle-end/32603

Updates the to documentation and processing improvement.

Obtained from: gcc 4.3 (rev. 120902, 120902, 119427, 126278, 126422;
GPLv2)

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

10 years agoBump __FreeBSD_version for MFC of r259951 - don't coalesce map entries
peter [Tue, 31 Dec 2013 17:29:29 +0000 (17:29 +0000)]
Bump __FreeBSD_version for MFC of r259951 - don't coalesce map entries
for vm_map_stack().

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

10 years agoMFC r252064:
kevlo [Tue, 31 Dec 2013 16:01:17 +0000 (16:01 +0000)]
MFC r252064:

Rename run(4) firmware file from runfw to run.fw. Previous name was the
same as top-level target name for "device runfw" kernel option and
caused cyclic dependancy that lead to kernel build breakage

Module change is not strictly required and done for name unification sake

PR: conf/175751
Submitted by: Issei <i10a at herbmint.jp>

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

10 years agoMFC r260125:
gjb [Tue, 31 Dec 2013 12:24:51 +0000 (12:24 +0000)]
MFC r260125:
  Bump copyright year.
  Happy New Year 2014!

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r256717:
kevlo [Tue, 31 Dec 2013 05:15:29 +0000 (05:15 +0000)]
MFC r256717:

Update firmware for run(4) to version 0.33.

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

10 years agoRevert r259862:
gjb [Tue, 31 Dec 2013 00:21:15 +0000 (00:21 +0000)]
Revert r259862:
  Don't try to bootstrap a utility that does not exist in the branch.

Pointyhat:  gjb
Submitted by:  John W. O'Brien (via -stable@)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259902:
dim [Mon, 30 Dec 2013 20:27:58 +0000 (20:27 +0000)]
MFC r259902:

In sys/dev/drm/mach64_dma.c, remove static function mach64_set_dma_eol(),
which has never been used, even by upstream, since its initial upstream
commit (see http://cgit.freedesktop.org/mesa/drm/commit/?id=873e1c4d )

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

10 years agoMFC r257532 (by adrian):
dim [Mon, 30 Dec 2013 20:15:46 +0000 (20:15 +0000)]
MFC r257532 (by adrian):

Fix this build for clang.

MFC r259730:

To avoid having to explicitly test COMPILER_TYPE for setting
clang-specific or gcc-specific flags, introduce the following new
variables for use in Makefiles:

CFLAGS.clang
CFLAGS.gcc
CXXFLAGS.clang
CXXFLAGS.gcc

In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for
the right compiler.

MFC r259913:

For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc.

MFC r259927:

Fix pc98 build, by also forcing COMPILER_TYPE in sys/boot/pc98/boot2's
Makefile.

Pointy hat to: dim

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

10 years agoMFC r259951:
kib [Mon, 30 Dec 2013 09:04:06 +0000 (09:04 +0000)]
MFC r259951:
Do not coalesce stack entry. Pass MAP_STACK_GROWS_DOWN and
MAP_STACK_GROWS_UP flags to vm_map_insert() from vm_map_stack()

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

10 years agoMFC r259005, r259092:
pfg [Mon, 30 Dec 2013 03:40:16 +0000 (03:40 +0000)]
MFC r259005, r259092:

gcc: Add -flax-vector-conversions
gcc: new fvisibility-ms-compat option

These are useful for compatibility with newwer gcc and clang.

Obtained from: gcc 4.3 (rev. 120572, 120688, 126088; GPLv2)

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

10 years agoMFC r254293, r259868, r259881, 259955:
gjb [Mon, 30 Dec 2013 02:19:48 +0000 (02:19 +0000)]
MFC r254293, r259868, r259881, 259955:

r254293:
  - Only set ARCH_FLAGS (TARGET/TARGET_ARCH) if specified,
    otherwise allow the toolchain to detect the correct values.

  - Remove {SRC,DOC,PORT}REVISION variables, and use
    'branch@rNNNNNN' as the {SRC,DOC,PORT}BRANCH variables.

  - Only set default KERNEL_FLAGS and WORLD_FLAGS make(1) jobs
    if the number of CPUs is greater than 1.

r259868 (jmmv):
  Delay copying of resolv.conf into the chroot until /etc
  exists.

r259881 (jmmv):
  Put the release objdir inside the chroot.

259955:
  Move build_doc_ports() to the if...fi block from which it is
  called.

Sponsored by: The FreeBSD Foundation

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