]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r260874:
pfg [Wed, 22 Jan 2014 01:35:30 +0000 (01:35 +0000)]
MFC r260874:

gcc: fix libgcc by adding the bswap builtins for all platforms.

This change was missing from r258428 which attempted to add the
bswap builtins to gcc. The change is also missing from the patch
in gnu/155309.

Found by: marcel

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

10 years ago10.0-RELEASE is out, so call stable/10 -STABLE again.
gjb [Tue, 21 Jan 2014 15:57:59 +0000 (15:57 +0000)]
10.0-RELEASE is out, so call stable/10 -STABLE again.

Reminded by: David Wolfskill
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259925-259926:
marck [Tue, 21 Jan 2014 09:19:28 +0000 (09:19 +0000)]
MFC r259925-259926:

  Add GPT UUID for VMware vSAN meta-data partition.

Approved by: ae

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

10 years agoMFC r260407:
mav [Mon, 20 Jan 2014 23:56:49 +0000 (23:56 +0000)]
MFC r260407:
Allow delete_method sysctl to be set to "DISABLE".

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

10 years agoMFC r260782:
wblock [Mon, 20 Jan 2014 23:23:29 +0000 (23:23 +0000)]
MFC r260782:

-h and -H options backwards in manual page.

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

10 years agoAdd UPDATING entry for 10.0-RELEASE.
gjb [Mon, 20 Jan 2014 22:32:23 +0000 (22:32 +0000)]
Add UPDATING entry for 10.0-RELEASE.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259531;
pfg [Mon, 20 Jan 2014 21:58:20 +0000 (21:58 +0000)]
MFC r259531;

gcc: point to our address for bug reports.

As recommended by the FSF in gcc/version.c :

"If you distribute a modified version of GCC, please change
this to refer to a document giving instructions for reporting
bugs to you, not us."

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

10 years agoMFC r260332;
pfg [Mon, 20 Jan 2014 21:50:31 +0000 (21:50 +0000)]
MFC r260332;
gcc: backport some fixes from llvm-gcc

llvm-gcc backported some patches from gcc trunk:

http://gcc.gnu.org/ml/gcc-cvs/2007-05/msg00662.html
http://gcc.gnu.org/ml/gcc-cvs/2007-07/msg00019.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00240.html
http://gcc.gnu.org/ml/gcc-cvs/2007-08/msg00493.html

The first two were always GPL2. The last two were
added after the GPL3 transition, but were written
by aaw@google.com and Rafael EspĂ­ndola got permission
to relicense them under the GPL2 for inclusion in
llvm-gcc.

This fixes GCC-PR c++/31749

Obtained from: llvm-gcc (rev. 75463; GPLv2)

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

10 years agoMFC r260833:
trociny [Mon, 20 Jan 2014 20:33:40 +0000 (20:33 +0000)]
MFC r260833:

Bring back r226403, the fix for bin/161526, which was (accidentally?)
reverted in r238896.

PR: bin/161526
Reported by: Karli.Sjoberg slu.se

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

10 years agoMFC r260014, r260099:
pfg [Mon, 20 Jan 2014 19:37:38 +0000 (19:37 +0000)]
MFC r260014, r260099:

gcc: Add support for label attributes and "unavailable" attribute.

Apple GCC has extensions to support for both label attributes and
an "unavailable" attribute. These are critical for objc but are
also useful in regular C/C++.

Obtained from: Apple GCC 4.2 - 5531

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

10 years agoMFH: r260483, r260484, r260594, r260595, r260596, r260597
bapt [Mon, 20 Jan 2014 14:37:02 +0000 (14:37 +0000)]
MFH: r260483, r260484, r260594, r260595, r260596, r260597

Improve error message shown to the user when trying to load a module that is
already loaded or compiled withing the kernel
Point the user to dmesg(1) to get informations about why loading a module did fail
instead of printing the cryptic "Exec format error"
Update the BUGS section of kld(4) according the recent changes in kldload(8)

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

10 years agoDocument an ipfw fwd issue.
hrs [Mon, 20 Jan 2014 05:57:58 +0000 (05:57 +0000)]
Document an ipfw fwd issue.

Suggested by: jmg

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

10 years ago- Fix a bxe(4) entry. This issue is not related to NFSv4, and poor
hrs [Mon, 20 Jan 2014 05:44:45 +0000 (05:44 +0000)]
- Fix a bxe(4) entry.  This issue is not related to NFSv4, and poor
  performance is caused by disabling TSO, not the issue itself.
- s/&os;-STABLE/&os; &release.current;/

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

10 years agoMFC r260556: Add some missing .Nm for newer syscalls in existing man pages.
jilles [Sat, 18 Jan 2014 22:47:25 +0000 (22:47 +0000)]
MFC r260556: Add some missing .Nm for newer syscalls in existing man pages.

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

10 years agoMFC r258675: Fix build.
pluknet [Sat, 18 Jan 2014 21:57:38 +0000 (21:57 +0000)]
MFC r258675: Fix build.

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

10 years agoMFC r260583: Add unmapped IO support to virtio_scsi(4)
bryanv [Sat, 18 Jan 2014 18:41:24 +0000 (18:41 +0000)]
MFC r260583: Add unmapped IO support to virtio_scsi(4)

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

10 years agoMFC r260582: Add unmapped IO support to virtio_blk(4)
bryanv [Sat, 18 Jan 2014 18:39:39 +0000 (18:39 +0000)]
MFC r260582: Add unmapped IO support to virtio_blk(4)

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

10 years agoMFC r260581: Add sglist_append_bio(9) to append a struct bio's data to
bryanv [Sat, 18 Jan 2014 18:36:41 +0000 (18:36 +0000)]
MFC r260581: Add sglist_append_bio(9) to append a struct bio's data to
a sglist

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

10 years agoFix description of pw(8) regression.
gjb [Sat, 18 Jan 2014 04:27:13 +0000 (04:27 +0000)]
Fix description of pw(8) regression.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoDocument pw(8) regression when the '-G' flag is used.
gjb [Sat, 18 Jan 2014 04:17:42 +0000 (04:17 +0000)]
Document pw(8) regression when the '-G' flag is used.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoFix wording from r260842.
gjb [Sat, 18 Jan 2014 04:06:00 +0000 (04:06 +0000)]
Fix wording from r260842.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoDocument a bsdconfig(8) compatibility nit with pkg(7) 1.2.x.
gjb [Sat, 18 Jan 2014 04:03:05 +0000 (04:03 +0000)]
Document a bsdconfig(8) compatibility nit with pkg(7) 1.2.x.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoDocument possible poor NFSv6 performance with bxe(4) when 'tso'
gjb [Sat, 18 Jan 2014 03:44:43 +0000 (03:44 +0000)]
Document possible poor NFSv6 performance with bxe(4) when 'tso'
is enabled.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r260566: Remove incorrect bit shift when assigning the LUN request field
bryanv [Sat, 18 Jan 2014 03:33:01 +0000 (03:33 +0000)]
MFC r260566: Remove incorrect bit shift when assigning the LUN request field

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

10 years agoDocument the killall(1) regression.
delphij [Fri, 17 Jan 2014 21:37:55 +0000 (21:37 +0000)]
Document the killall(1) regression.

While I'm there also correct a typo.

Reviewed by: gjb (earlier version), hrs

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

10 years agoMFC of 260088:
mckusick [Fri, 17 Jan 2014 16:22:10 +0000 (16:22 +0000)]
MFC of 260088:

Fine tune filesystem block allocations under low free-space
conditions (-r254995) based on further operational experience.

Submitted by:  Dmitry Sivachenko
Fix Tested by: Dmitry Sivachenko

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

10 years agoMFC of 260079:
mckusick [Fri, 17 Jan 2014 16:17:07 +0000 (16:17 +0000)]
MFC of 260079:

Properly handle unsigned comparison.

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

10 years agoMFC r258622: dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE
avg [Fri, 17 Jan 2014 10:58:59 +0000 (10:58 +0000)]
MFC r258622: dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE

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

10 years agoMFC r258605: Convert over the TCP probes to use mtod()
avg [Fri, 17 Jan 2014 10:48:44 +0000 (10:48 +0000)]
MFC r258605: Convert over the TCP probes to use mtod()

MFC slacker: adrian

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

10 years agoMFC r257037: Redefine the io provider using the SDT(9) macros
avg [Fri, 17 Jan 2014 10:34:01 +0000 (10:34 +0000)]
MFC r257037: Redefine the io provider using the SDT(9) macros

MFC slacker: markj

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

10 years agoMFC r258744-258746: zfs: add zfs_freebsd_putpages
avg [Thu, 16 Jan 2014 18:15:59 +0000 (18:15 +0000)]
MFC r258744-258746: zfs: add zfs_freebsd_putpages

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

10 years agoMFC r260772:
gjb [Thu, 16 Jan 2014 16:44:23 +0000 (16:44 +0000)]
MFC r260772:
  Update the pkg-stage target to be more compatible with pkg-1.2:

 - Add a release-dvd.conf pkg(8) configuration file to override
   the default FreeBSD.conf configuration.
 - Remove architecture-specific pkg-stage.conf files, consolidate,
   and move their contents to scripts/pkg-stage.sh.
 - Use 'pkg -vv' to determine the ABI, which is used as the
   cache directory.

  Prior to these changes, it would be possible for pkg-stage to fetch
  conflicting binary packages from multiple repositories.

Tested against: head@r260522, stable/10@r260522

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r259612: ttm_bo_vm_lookup_rb: actually make use of the red-black tree
avg [Thu, 16 Jan 2014 16:28:19 +0000 (16:28 +0000)]
MFC r259612: ttm_bo_vm_lookup_rb: actually make use of the red-black tree

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

10 years agoMFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)
avg [Thu, 16 Jan 2014 16:15:38 +0000 (16:15 +0000)]
MFC r258720: MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

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

10 years agoMFC r258739: zfs mappedread_sf: assert that a page is never partially valid
avg [Thu, 16 Jan 2014 16:13:21 +0000 (16:13 +0000)]
MFC r258739: zfs mappedread_sf: assert that a page is never partially valid

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

10 years agoMFC r258634: MFV r258376: 3964 L2ARC should always compress metadata buffers
avg [Thu, 16 Jan 2014 16:07:59 +0000 (16:07 +0000)]
MFC r258634: MFV r258376: 3964 L2ARC should always compress metadata buffers

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

10 years agoMFC r258633: MFV r255256: 3954 metaslabs continue to load even after
avg [Thu, 16 Jan 2014 16:05:21 +0000 (16:05 +0000)]
MFC r258633: MFV r255256: 3954 metaslabs continue to load even after
hitting zfs_mg_alloc_failure limit

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

10 years agoMFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
avg [Thu, 16 Jan 2014 15:57:39 +0000 (15:57 +0000)]
MFC r258632,258704: MFV r255255: 4045 zfs write throttle & i/o scheduler
performance work

Sponsored by: HybridCluster [merge]

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

10 years agoMFC r258631: MFV r247578
avg [Thu, 16 Jan 2014 14:47:29 +0000 (14:47 +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/10@260750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

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

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

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

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

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@260735 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:24 +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/10@260731 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:31 +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/10@260728 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:14:49 +0000 (14:14 +0000)]
MFC r258351: fsx: new option to disable msync(MS_SYNC) after each write

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

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

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

10 years agoMFC r260481:
ae [Thu, 16 Jan 2014 13:21:32 +0000 (13:21 +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/10@260712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoDocument a Heimdal fix and interoperability.
hrs [Wed, 15 Jan 2014 19:09:11 +0000 (19:09 +0000)]
Document a Heimdal fix and interoperability.

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

10 years agoDocument an issue of FreeBSD/i386 on VirtualBox.
hrs [Wed, 15 Jan 2014 18:48:34 +0000 (18:48 +0000)]
Document an issue of FreeBSD/i386 on VirtualBox.

Discussed with: glebius and delphij

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

10 years agoMFC of r260691:
hrs [Wed, 15 Jan 2014 17:51:49 +0000 (17:51 +0000)]
MFC of r260691:
 - Fix indent.
 - Minor clean up after DB5 migration.

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

10 years agoMFC r260261 (gavin):
dteske [Wed, 15 Jan 2014 08:17:31 +0000 (08:17 +0000)]
MFC r260261 (gavin):
Lower the priority of the "connect to any open wireless network" network
description, so guaranteeing that any other defined network will be tried
first.

MFC r260262 (gavin):
Allow bsdinstall to use WPA-Enterprise networks when installing.  This
only allows basic username/password config, and does not provide the
ability to set any of the other WPA options.  Regardless, this is
generally sufficient to associate.

Perhaps in the future this could allow full configuring (e.g. being able
to set "anonymous identity", and perhaps some of the more obscure WPA
options), though perhaps that will better belong in bsdconfig when that
grows wlan config ability.

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

10 years agoMFC r260260 (gavin): Remove what appears to be a stray debugging printf.
dteske [Wed, 15 Jan 2014 08:12:19 +0000 (08:12 +0000)]
MFC r260260 (gavin): Remove what appears to be a stray debugging printf.

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

10 years agoMFC r259686:
dteske [Wed, 15 Jan 2014 08:10:41 +0000 (08:10 +0000)]
MFC r259686:
Move the installer's keymap solution introduced by SVN r259468. The new
location of /etc/rc.local on the install media is more appropriate as it
knows serial vs. non-serial and can also do the change earlier (so that
even the initial Install dialog can benefit from the change).

Discussed with: nwhitehorn

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

10 years agoMFC r257824,257826-257830,258411: Updates to sysrc(8)
dteske [Wed, 15 Jan 2014 08:03:01 +0000 (08:03 +0000)]
MFC r257824,257826-257830,258411: Updates to sysrc(8)
257824: Fix a bug with `-d' form working as documented
257826: Add `--version' long option
257827: Add a `-c' option for `check only'
257828: Comments and whitespace
257829: Fix a bug with `-e' introduced by above 257828
257830: Document SYSRC_VERBOSE enviroment variable in the manual
258411: Revert the above 257830 (both merged to get .Dd bump in man-page)

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

10 years agoMFC r259054:
dteske [Wed, 15 Jan 2014 07:49:17 +0000 (07:49 +0000)]
MFC r259054:
Performance and debugging enhancements:
+ Remove UNAME_P=$(...) from startup/misc -- already supplied by common.subr
+ Use f_getvar instead of $(eval echo \$$var) -- f_getvar is sub-shell free
+ Add `-e' and `-k var' options to f_eval_catch -- increasing use-cases
+ Use f_eval_catch to display errors on failure -- reducing duplicated code
+ Use f_eval_catch when we need output from a command -- improving debugging
+ Optimize f_isinter of strings.subr for performance -- now sub-shell free
+ Improve error checking on pidfiles -- using f_eval_catch and f_isinteger
+ Use $var_to_set arg of f_ifconfig_{inet,netmask} -- eliminate sub-shells
+ Use f_sprintf instead of $(printf ...) -- consolidate sub-shells
+ Use $var_to_set arg of f_route_get_default -- eliminate sub-shells
+ Add f_count to replace $(set -- ...;echo $#) -- eliminate sub-shells
+ Add f_count_ifs to replace $(IFS=x;set -- ...;echo $#) -- no sub-shells
+ Replace var="$var${var:+ }..." in loops with var="$var ..." with a follow-
  up var="${var# }" to trim leading whitespace -- optimize loops
+ Use $var_to_set arg of f_resolv_conf_nameservers -- eliminate sub-shells
+ Comments for the f_eval_catch function
+ Remove a duplicate `local ... desc ...' in f_device_get_all of device.subr
+ Use $var_to_set arg of f_device_capacity -- eliminate sub-shells
+ Whitespace fixes in f_dialog_init of dialog.subr
+ Optimize f_inet_atoi of media/tcpip.subr for performance -- sub-shell free
+ In several cases, send stderr to /dev/null -- clean up runtime execution
+ Change f_err of common.subr to go to program stderr not terminal stderr,
  allowing redirection of output from functions that use f_err
+ Disable debugging when using f_getvar to get variable argument to
  f_startup_rcconf_map_expand of startup/rcconf.subr
+ Use f_replace_all instead of $(echo ... | tr | sed) -- performance
+ Add a $var_to_set option to f_index_{file,menusel_{command,keyword}} of
  common.subr -- centralize sub-shells

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

10 years agoMFC missing mergeinfo for r258854.
dteske [Wed, 15 Jan 2014 07:47:13 +0000 (07:47 +0000)]
MFC missing mergeinfo for r258854.

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

10 years agoMFC r258458:
dteske [Wed, 15 Jan 2014 07:42:31 +0000 (07:42 +0000)]
MFC r258458:
Improve network device scanning in the netdev module. First, make it use the
`device.subr' framework (improving performane and reducing sub-shells). Next
improve the `device.subr' framework itself. Make use of the `flags' device
struct member for network interfaces to indicate if an interface is Active,
Wired Ethernet, or 802.11 Wireless. Functions have been added to make checks
against the `flags' bit-field quick and efficient. Last, add function for
rescanning the network to update the device registers. Remove an unnecessary
local (ifn) while we're here (use already provided local `if').

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

10 years agoMFC r258355,258360,258400-258401,258406-258407,258418,258430,258439,258589-
dteske [Wed, 15 Jan 2014 07:36:34 +0000 (07:36 +0000)]
MFC r258355,258360,258400-258401,258406-258407,258418,258430,258439,258589-
258590,258592,258727-258728,258785, with the following descriptions:

Revisions 258400-258401,258406-258407,258590,258727-258728,258785:
+ Add a new `includes' module (see: bsdconfig includes -h) for exploring
  the bsdconfig(8) API

Remaining revisions:
258592: Sort all the messages.subr files
258355: Fix typo in a comment in networking/device.subr
258360: Whitespace, style, and other changes in networking/device.subr
258418: Quote interface names for good measure in networking/device.subr
258430: Remove an unused line in networking/device.subr
258439: Minor bugfix to f_die() function in common.subr
258589: Minor bugfix to syscons_ttys module

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

10 years agoMFC r259284,r259287
jhibbits [Wed, 15 Jan 2014 06:17:15 +0000 (06:17 +0000)]
MFC r259284,r259287

Add PMU-based CPU frequency scalling.  This is used on most Titanium
PowerBooks.

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

10 years agoMFC r259082
jhibbits [Wed, 15 Jan 2014 05:52:06 +0000 (05:52 +0000)]
MFC r259082

Make some unsigned ints signed.

Found by: clang (powerpc64)

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

10 years agoMFC r257941,r258119
jhibbits [Wed, 15 Jan 2014 05:41:28 +0000 (05:41 +0000)]
MFC r257941,r258119

Add the necessary bits for dumps on ppc64.

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

10 years agoMFC r258362
jhibbits [Wed, 15 Jan 2014 05:30:05 +0000 (05:30 +0000)]
MFC r258362

Use 'int' to store the return value of getopt(), rather than char.

On some architectures (powerpc), char is unsigned by default, which means
comparisons against -1 always fail, so the programs get stuck in an
infinite loop.

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

10 years agoMFC r256543,r259245,r259421,r259668,r259674
jhibbits [Wed, 15 Jan 2014 05:19:37 +0000 (05:19 +0000)]
MFC r256543,r259245,r259421,r259668,r259674

r256543:

Add fasttrap for PowerPC.  This is the last piece of the DTrace/ppc puzzle.
It's incomplete, it doesn't contain full instruction emulation, but it should be
sufficient for most cases.

r259245,r259421: (FBT)

FBT now does work fully on PowerPC.

Save r3 before using it for the trap check, else we end up saving the new r3,
containing the trap instruction encoding (0x7c810808), and restoring it back
with the frame on return.  This caused it to panic on my ppc32 machine.

r259668,r259674:
Fix a typo in the FBT code.

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

10 years agoMFC r259394,r259395,r259699
jhibbits [Wed, 15 Jan 2014 04:44:52 +0000 (04:44 +0000)]
MFC r259394,r259395,r259699

r259394:
Rebase the PMC indices at 1, since PMC_SOFT is at 0.

r259395,r259699:
Add userland PMC backtracing, and use the PMC trapframe macros for kernel
backtraces.

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

10 years agoMFC r256542,r256581
jhibbits [Wed, 15 Jan 2014 04:16:45 +0000 (04:16 +0000)]
MFC r256542,r256581

Move the PMC handling to the first level interrupt handler where it belongs.
Also add the pmc_hook use, to handle callchain tracing.

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

10 years agoRemove a non-applicable sentence.
hrs [Wed, 15 Jan 2014 00:12:19 +0000 (00:12 +0000)]
Remove a non-applicable sentence.

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

10 years agoFix release numbers and branch names.
hrs [Wed, 15 Jan 2014 00:11:09 +0000 (00:11 +0000)]
Fix release numbers and branch names.

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

10 years ago- MFC 260653,260655:
hrs [Tue, 14 Jan 2014 23:15:53 +0000 (23:15 +0000)]
- MFC 260653,260655:

* Purge old translations.
* Add missing footer due to DSSSL->XSLT migration and use XML catalog to
  resolve URI.
* Add missing arch= and revision= support.

- Update release.ent and fix release number in Errata.

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

10 years agoMFC r260637:
delphij [Tue, 14 Jan 2014 19:04:33 +0000 (19:04 +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/10@260639 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260636:
delphij [Tue, 14 Jan 2014 19:02:14 +0000 (19:02 +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/10@260638 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260545:
pfg [Tue, 14 Jan 2014 15:20:33 +0000 (15:20 +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.

PR: kern/185448

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

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

Clean up -Wtautological-compare -Wformat warnings.

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

10 years agoMFC r260541, r260547:
mav [Tue, 14 Jan 2014 12:01:36 +0000 (12:01 +0000)]
MFC r260541, r260547:
Take additional reference on SCSI probe periph to cover its freeze count.

Otherwise periph may be invalidated and freed before single-stepping freeze
is dropped, causing use after free panic.

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

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

Provide the manual page for aio_fsync(2).

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

10 years agoMFC r259811:
delphij [Tue, 14 Jan 2014 01:28:08 +0000 (01:28 +0000)]
MFC r259811:

MFV r258373:

4168 ztest assertion failure in dbuf_undirty

4169 verbatim import causes zdb to segfa
4170 zhack leaves pool in ACTIVE state

illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132

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

10 years agoMFC r260605:
bdrewery [Mon, 13 Jan 2014 22:07:36 +0000 (22:07 +0000)]
MFC r260605:

  Remove scary comment about this being a test key.

  There has been no need to regenerate the signing key.

Early MFC as it is just a comment and needs to get into releng/10.0.

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r260110:
delphij [Mon, 13 Jan 2014 19:34:23 +0000 (19:34 +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/10@260603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260336,r260355: find: Fix -lname and -ilname:
jilles [Sun, 12 Jan 2014 23:17:56 +0000 (23:17 +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/10@260579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260491: Use .cpp as the extension for temporary C++ files.
jmmv [Sun, 12 Jan 2014 22:17:56 +0000 (22:17 +0000)]
MFC r260491: Use .cpp as the extension for temporary C++ files.

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

10 years agoMFC r260310:
pfg [Sun, 12 Jan 2014 21:16:26 +0000 (21:16 +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/10@260573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259920:
pfg [Sun, 12 Jan 2014 20:09:17 +0000 (20:09 +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/10@260568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260494:
dim [Sun, 12 Jan 2014 14:37:39 +0000 (14:37 +0000)]
MFC r260494:

Fix a braino with r259730: we cannot currently use CFLAGS.gcc or
CFLAGS.clang in sys/conf/Makefile.arm, since the main kernel build does
not use <bsd.sys.mk>.  So revert that particular change for now.

Pointy hat to: me
Noticed by: zbb

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

10 years agoMFC r260446
remko [Sat, 11 Jan 2014 23:10:59 +0000 (23:10 +0000)]
MFC r260446

  virtio-block does not exist, the correct name is virtio-blk.

  PR:     185573
  Submitted by:    Allan Jude
  Facilitated by: Snow B.V.

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

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

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

10 years agoMFC r260361:
pfg [Sat, 11 Jan 2014 01:44:22 +0000 (01:44 +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/10@260528 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 259339
asomers [Fri, 10 Jan 2014 17:56:23 +0000 (17:56 +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.

MFC 259362
    sbin/devd/devd.cc
        Promoting the SIGINFO handler's log message from LOG_INFO to
        LOG_NOTICE, and promoting the "Processing event ..." message from
        LOG_DEBUG to LOG_INFO.  Setting the logfile to LOG_NOTICE with this
        change will have the same result as setting it to LOG_INFO without
        this change.  Setting it to LOG_INFO with this change will include
        the useful "Processing event ..." messages that were previously at
        LOG_DEBUG, without including useless messages like "Pushing table".

        The intent of this change is that one can log "Processing event ..."
        without logging "Pushing table" and related messages that are sent
        for every event.  The number of lines actually logged is reduced by
        about 75% by making this change and setting syslog to LOG_INFO vs
        setting syslog to LOG_DEBUG.

    etc/syslog.conf
        Changing the recommended loglevel to notice instead of info.

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

10 years agoMFC 259240
asomers [Fri, 10 Jan 2014 16:56:59 +0000 (16:56 +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/10@260517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260151 (by adrian):
ae [Fri, 10 Jan 2014 09:45:28 +0000 (09:45 +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/10@260504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r259634:
ae [Fri, 10 Jan 2014 07:48:36 +0000 (07:48 +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/10@260503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r258357:
ae [Fri, 10 Jan 2014 07:43:40 +0000 (07:43 +0000)]
MFC r258357:
  Add "resize" verb to gmirror(8) and such functionality to geom_mirror(4).
  Now it is easy to expand the size of the mirror when all its components
  are replaced. Also add g_resize method to geom_mirror class. It will write
  updated metadata to new last sector, when parent provider is resized.

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

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

Fix a cut and paste error.

git-svn-id: svn://svn.freebsd.org/base/stable/10@260498 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/10@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/10@260495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257064:
loos [Thu, 9 Jan 2014 18:28:58 +0000 (18:28 +0000)]
MFC r257064:

Add an OFW SPI compatible bus.  Fix the spibus probe to return
BUS_PROBE_GENERIC and not BUS_PROBE_SPECIFIC (0) so the OFW SPI bus can
attach when enabled.  Export the spibus devclass_t and driver_t
declarations.

Submitted by: ray
Approved by: adrian (mentor)

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

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

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

10 years agoMFC r258220, r258251:
mav [Thu, 9 Jan 2014 11:11:47 +0000 (11:11 +0000)]
MFC r258220, r258251:
Implement automatic live resize support for GEOM MULTIPATH class.

In "manual" mode just automatically resize provider in any direction.
In "automatic" mode allow growth (with new metadata write); in case of
shrinking check if there is already valid metadata found at the new
location.  This should allow easy transparent recovery if first resize
was done by mistake.

While there, unify metadata write code and fix minor memory leak.

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

10 years agoMFC r257946:
mav [Thu, 9 Jan 2014 10:59:31 +0000 (10:59 +0000)]
MFC r257946:
Introduce seperate mutex lock to protect protect CTL I/O pools, slightly
reducing global CTL lock scope and congestion.

While there, simplify CTL I/O pools KPI, hiding implementation details.

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

10 years agoMFC r256995:
mav [Thu, 9 Jan 2014 10:50:20 +0000 (10:50 +0000)]
MFC r256995:
Remove 128KB bzero() call done for every block I/O data buffer.

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