]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
8 years agoMFC r287827:
trasz [Sun, 18 Oct 2015 15:02:07 +0000 (15:02 +0000)]
MFC r287827:

Add a way to specify stripesize and stripeoffset to gnop(8). This makes
it possible to "simulate" 4K media, to eg test alignment handling.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287951:
trasz [Sun, 18 Oct 2015 14:59:38 +0000 (14:59 +0000)]
MFC r287951:

The "automount" rc script should depend on "automountd", not the other
way around.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 287397:
trasz [Sun, 18 Oct 2015 14:57:42 +0000 (14:57 +0000)]
MFC 287397:

Fix markup.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286360:
trasz [Sun, 18 Oct 2015 14:55:09 +0000 (14:55 +0000)]
MFC r286360:

Tweak mdconfig(8) manual page, in particular revise the EXAMPLES
section.  This removes stuff that doesn't really belong there,
and simplifies examples for the basic operations.

MFC r286361:

Whoops, wrong flag.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r258909:
trasz [Sun, 18 Oct 2015 14:52:31 +0000 (14:52 +0000)]
MFC r258909:

Tweak mdconfig(8) manual page, in particular revise the EXAMPLES
section.  This removes stuff that doesn't really belong there,
and simplifies examples for the basic operations.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r257182 (by jmg@):
trasz [Sun, 18 Oct 2015 14:47:19 +0000 (14:47 +0000)]
MFC r257182 (by jmg@):

bump date forgotten in r257165

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r257165 (by jmg@):
trasz [Sun, 18 Oct 2015 14:46:12 +0000 (14:46 +0000)]
MFC r257165 (by jmg@):

Document that -a will output the device name when -u is not specified..
when -u is specified it is not...

update the docs to say that you can use full device names w/ -u, and
update the examples...

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r287033:
trasz [Sun, 18 Oct 2015 14:41:38 +0000 (14:41 +0000)]
MFC r287033:

After r286237 it should be fine to call vgone(9) on a busy GEOM vnode;
remove KASSERT that would prevent forced devfs unmount from working.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286283:
trasz [Sun, 18 Oct 2015 14:36:04 +0000 (14:36 +0000)]
MFC r286283:

Fix panic triggered by code like this:
open("/dev/md0", O_EXEC);

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286237:
trasz [Sun, 18 Oct 2015 14:34:13 +0000 (14:34 +0000)]
MFC r286237:

Fix panic that would happen on forcibly unmounting devfs (note that
as it is now, devfs ignores MNT_FORCE anyway, so it needs to be modified
to trigger the panic) with consumers still opened.

Note that this still results in a leak of r/w/e counters.  It seems
to be harmless, though.  If anyone knows a better way to approach
this - please tell.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286281:
trasz [Sun, 18 Oct 2015 14:31:54 +0000 (14:31 +0000)]
MFC r286281:

Mark vgonel() as static.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r286226:
trasz [Sun, 18 Oct 2015 14:25:04 +0000 (14:25 +0000)]
MFC r286226:

Rework the way iSCSI initiator handles system shutdown. This fixes
hangs on shutdown with LUNs with mounted filesystems over a disconnected
iSCSI session.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285881:
trasz [Sun, 18 Oct 2015 14:20:11 +0000 (14:20 +0000)]
MFC r285881:

Add md_root example to defaults/loader.conf.

Note that this doesn't quite work yet - the preloaded image
gets loaded twice for some reason.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285870:
trasz [Sun, 18 Oct 2015 14:17:30 +0000 (14:17 +0000)]
MFC r285870:

Document md_root in loader(8). The md(4) manual page mentions it,
but it's hard to find and easy to miss.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r285847:
trasz [Sun, 18 Oct 2015 14:16:01 +0000 (14:16 +0000)]
MFC r285847:

Add missing SIGUSR1 description.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r281726:
trasz [Sun, 18 Oct 2015 14:01:20 +0000 (14:01 +0000)]
MFC r281726:

Optimize the O_NOCTTY handling hack in linux_common_open().

MFC r281728:

Add back fdrop() missed in r281726.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r281689:
trasz [Sun, 18 Oct 2015 13:58:17 +0000 (13:58 +0000)]
MFC r281689:

Remove unused code from linux_mount(), and make it possible to mount
any kind of filesystem instead of harcoded three.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r280981:
trasz [Sun, 18 Oct 2015 13:52:53 +0000 (13:52 +0000)]
MFC r280981:

Remove unused code.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r289136: Remove lock upgrade attempt from ctl_be_block_open_file().
mav [Sun, 18 Oct 2015 06:53:31 +0000 (06:53 +0000)]
MFC r289136: Remove lock upgrade attempt from ctl_be_block_open_file().

I am not sure what for it was done.  Now open routine should automatically
fall back to read-only if open for writing is impossible.  In such case
attempt to upgrade to write sounds strange.

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

8 years agoMFC r272455:
markj [Sat, 17 Oct 2015 20:38:40 +0000 (20:38 +0000)]
MFC r272455:
Have dtrace(1) handle SIGPIPE, and handle signals when in list mode (-l).
In particular, make sure to detach from child processes before exiting.

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

8 years agoMFC 289067:
wblock [Sat, 17 Oct 2015 02:49:19 +0000 (02:49 +0000)]
MFC 289067:
Fix a repeated typo: rootir -> rootdir.

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

8 years agoMFC r289026:
kib [Fri, 16 Oct 2015 20:51:25 +0000 (20:51 +0000)]
MFC r289026:
Enforce the maxproc limitation before allocating struct proc.

In collaboration with: pho

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

8 years agoFix build with options DIAGNOSTIC.
pho [Fri, 16 Oct 2015 12:16:35 +0000 (12:16 +0000)]
Fix build with options DIAGNOSTIC.

Sponsored by: EMC / Isilon storage division
In collaboration with:  kib

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

8 years agoMFC r289070: Add .gnu.versym VERSYM_HIDDEN flag and related mask
emaste [Fri, 16 Oct 2015 01:31:38 +0000 (01:31 +0000)]
MFC r289070: Add .gnu.versym VERSYM_HIDDEN flag and related mask

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r289065: Add --currently-running <release> option to freebsd-update.
cperciva [Fri, 16 Oct 2015 01:23:41 +0000 (01:23 +0000)]
MFC r289065: Add --currently-running <release> option to freebsd-update.

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

8 years agoif_lem: Bring over the missing pieces from -HEAD to make NIC_PARAVIRT work.
adrian [Thu, 15 Oct 2015 20:37:30 +0000 (20:37 +0000)]
if_lem: Bring over the missing pieces from -HEAD to make NIC_PARAVIRT work.

The paravirt support for the driver and netmap code was already MFCed,
but the adapter and ifnet API bits weren't.

This was backported from -HEAD by Eric Melville <eric@freebsd.org>.

Submitted by: eric
Sponsored by: Norse Corp, Inc.

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

8 years agoAdd the paravirt.h support from -HEAD.
adrian [Thu, 15 Oct 2015 20:36:04 +0000 (20:36 +0000)]
Add the paravirt.h support from -HEAD.

Submitted by: eric
Sponsored by: Norse Corp, Inc.

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

8 years agoMFC r265164: Small cleanup: mostly whitespace vs. tabs.
emaste [Thu, 15 Oct 2015 16:07:15 +0000 (16:07 +0000)]
MFC r265164: Small cleanup: mostly whitespace vs. tabs.

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

8 years agoMFC r264889: newfs_msdos: Correct min/max cluster counts for FAT12/16/32
emaste [Thu, 15 Oct 2015 16:06:10 +0000 (16:06 +0000)]
MFC r264889: newfs_msdos: Correct min/max cluster counts for FAT12/16/32

FAT12      1..4084
FAT16   4085..65524
FAT32  65525..

This is required for interoperability with other FAT implementations,
and in particular UEFI.

Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r289017: Add missing vnode lock in case of file modify request.
mav [Thu, 15 Oct 2015 08:49:52 +0000 (08:49 +0000)]
MFC r289017: Add missing vnode lock in case of file modify request.

Submitted by: Richard Kojedzinszky

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

8 years agoMFC 289031: Teach gptldr to handle >64k boot2.
cperciva [Thu, 15 Oct 2015 03:48:03 +0000 (03:48 +0000)]
MFC 289031: Teach gptldr to handle >64k boot2.

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

8 years agoMFC r261994, r275905, r275951, r276106, r283128, r285678: MMC driver fixes...
ian [Wed, 14 Oct 2015 23:41:41 +0000 (23:41 +0000)]
MFC r261994, r275905, r275951, r276106, r283128, r285678: MMC driver fixes...

  If no compatible cards were found after probing the bus, say so.

  Don't deselect the card too soon. To set the block size or switch the
  function parameters, the card has to be in transfer state. If it is in
  the idle state, the commands are ignored. This caused us not to set
  the proper parameters that we later assume to be present, leading to
  downstream failures of the card / interface as our state machine
  mismatches the card's.

  Log mmc and sd command failures.  Reporting of routine expected errors,
  such as timeouts while probing a bus or testing for a feature, is
  squelched.  Also, error reporting is limited to 5 events per second,
  because when an sdcard goes bad on a low-end embedded board, flooding
  the console at high speed isn't helpful.

  Always select the card before we do the 4.x specific stuff and
  deselect it after setting the block size. This is a similar bug that
  was fixed elsewhere, but not here. This makes sure that we leave the
  card deselected at the end of the loop, and we don't send any commands
  to the card without it selected.

  Re-select the SD card before getting the SD status. On a couple Atmel
  boards, this prevents some error messages during enumeration and also
  gives us the correct erase block size. They appear to be harmless
  elsewhere.

  Deselect the sd card before re-selecting it when working around a problem
  with some cards that causes them to become deselected after probing for
  switch capabilities.  The old workaround fixes the behavior with some cards,
  but causes problems with the cards the behave correctly and don't become
  deselected.  Forcing a deselect then reselect appears to work correctly
  with all cards in initial testing.

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

8 years agoMFC 288833:
jgh [Wed, 14 Oct 2015 17:00:35 +0000 (17:00 +0000)]
MFC 288833:
PR: 203440 (based on)
Submitted by: ceratv@rpi.edu
Approved by: wblock@ (mentor)
Differential Revision: https://reviews.freebsd.org/D3813

- address grammar

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

8 years agoMFC: 288984
bapt [Wed, 14 Oct 2015 06:31:49 +0000 (06:31 +0000)]
MFC: 288984

Only print the errno string in case sysctl(3) does not file with ENOENT
This reduces the noise in error reporing from sysctl(8):

Before:
$ sysctl bla=something
sysctl: unknown oid 'bla': No such file or directory

After:
$ sysctl bla=something
sysctl: unknown oid 'bla'

Sponsored by: Gandi.net

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

8 years agoTrim spaces at the end of the buffer before trying to convert it to an oid
bapt [Wed, 14 Oct 2015 06:26:55 +0000 (06:26 +0000)]
Trim spaces at the end of the buffer before trying to convert it to an oid

This allows to write entries in sysctl.conf with spaces before the '=' like
kern.ipc.shmmax = 9663676416

Sponsored by: Gandi.net

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

8 years agoHook sesutil(8) to the build (forgotten in previous MFC)
bapt [Wed, 14 Oct 2015 06:24:01 +0000 (06:24 +0000)]
Hook sesutil(8) to the build (forgotten in previous MFC)

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

8 years agoMFC r288914
hiren [Wed, 14 Oct 2015 05:29:33 +0000 (05:29 +0000)]
MFC r288914
Add a comment specifying how we implement rfc3042.

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

8 years agoMFC r288266:
bdrewery [Tue, 13 Oct 2015 18:56:50 +0000 (18:56 +0000)]
MFC r288266:

  Add more SUBDIR_PARALLEL.

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

8 years agoMFC r288390:
bdrewery [Tue, 13 Oct 2015 18:46:11 +0000 (18:46 +0000)]
MFC r288390:

  When stopping ugidfw, it is not enough to just try unloading the module.  If
  the module is built-in to the kernel then the kldunload will fail.  Rather
  than do this just check if there are rules and then remove them all.

Relnotes: yes

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

8 years agoMFC r288391:
bdrewery [Tue, 13 Oct 2015 18:44:55 +0000 (18:44 +0000)]
MFC r288391:

  Fix the .MAKE added in r251750 to properly support the historical -n -n.

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

8 years agoMFC r288249:
bdrewery [Tue, 13 Oct 2015 18:43:49 +0000 (18:43 +0000)]
MFC r288249:

  Add SUBDIR_PARALLEL.

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

8 years agoMFC r288248:
bdrewery [Tue, 13 Oct 2015 18:40:46 +0000 (18:40 +0000)]
MFC r288248:

  Remove disconnected directories.

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

8 years agoMFC r287983,r288075:
bdrewery [Tue, 13 Oct 2015 18:32:47 +0000 (18:32 +0000)]
MFC r287983,r288075:

  r287983:
    Replace afterinstall: hack with FILES mechanism.
  r288075:
    Use SHAREOWN/SHAREMODE/SHAREGRP rather than LIB* as these are plain ASCII
    scripts that the linker can load rather than binary library objects.

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

8 years agoMFC r288230,r288233:
bdrewery [Tue, 13 Oct 2015 18:31:23 +0000 (18:31 +0000)]
MFC r288230,r288233:

  r288230:
    Fix emulation ldscripts not being installed since r131832.
  r288233:
    Fix subdir -j build after r287983 by adding missing dependencies.

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

8 years agoMFC r288335:
hselasky [Tue, 13 Oct 2015 08:21:15 +0000 (08:21 +0000)]
MFC r288335:
Store PID after becoming a daemon() and not before to ensure the
correct PID gets written to the PID file.

PR: 203252

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

8 years agoMFC r287592 and r287616:
hselasky [Tue, 13 Oct 2015 08:14:36 +0000 (08:14 +0000)]
MFC r287592 and r287616:
Add new USB ID.

PR: 202968

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

8 years agoMFC r288273:
hselasky [Tue, 13 Oct 2015 08:09:16 +0000 (08:09 +0000)]
MFC r288273:
Fix spelling.

PR: 203249

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

8 years agoMFC r288910: On some interfaces, ipfilter drops UDP packets with zero
cy [Tue, 13 Oct 2015 04:19:49 +0000 (04:19 +0000)]
MFC r288910: On some interfaces, ipfilter drops UDP packets with zero
checkum. This commit fixes that.

PR: 166372
Submitted by: mk@neon1.net
Reviewed by: Darren Reed <darrenr@reed.wattle.id.au>

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

8 years agoMFC of r288447. Only the Marvell driver has been updated as there is no
andrew [Mon, 12 Oct 2015 13:20:17 +0000 (13:20 +0000)]
MFC of r288447. Only the Marvell driver has been updated as there is no
support for Raspbetty Pi 2 in stable/10.

An IPI must be cleared before it is handled otherwise next IPI could be
missed. In other words, if a new request for an IPI is sent while the
previous request is being handled but the IPI is not cleared yet, the
clearing of the previous IPI request also clears the new one and the
handling is missed.

There are only three MP interrupt controllers in ARM now. Two of them are
fixed by this change, the third one is correct, probably only just by
accident. The fix is minimalistic as new interrupt framework is awaited.

It was debugged on RPi2 where missing IPI handling together with SCHED_ULE
led to situation in which tdq_ipipending was not cleared and so IPI_PREEMPT
was stopped to be sent. Various odditys were found related to slow system
response time like various events timed out, and slow console response.

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

8 years agoMFC r288528:
ae [Mon, 12 Oct 2015 07:50:27 +0000 (07:50 +0000)]
MFC r288528:
  Fix possible segmentation fault.

  PR: 203494

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

8 years agoMFC r288529:
ae [Mon, 12 Oct 2015 07:49:07 +0000 (07:49 +0000)]
MFC r288529:
  Always detach encap handler when reconfiguring tunnel.

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

8 years agoMFC: r269851,r272076,r274884,r282328,r285644,r286503,r286504,r286505,
peter [Mon, 12 Oct 2015 04:57:36 +0000 (04:57 +0000)]
MFC: r269851,r272076,r274884,r282328,r285644,r286503,r286504,r286505,
     r286506,r286510,r286561,r286562,r287034

Update svnlite from 1.8.10 to 1.8.14, and the support components:
serf->1.3.8, apr->1.5.2, apr-util->1.5.4, sqlite3->3.8.11.1

This includes syncing the developer templates with head.

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

8 years agoMFC r289030:
kevlo [Mon, 12 Oct 2015 03:21:44 +0000 (03:21 +0000)]
MFC r289030:

Add support for Fresco Logic USB 3.0 host controller.

Fresco Logic hosts advertise MSI, but fail to actually generate MSI
interrupts.  We have to disable MSI use.

Reviewed by: hselasky

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

8 years agoMFC 288829
ian [Sun, 11 Oct 2015 17:59:20 +0000 (17:59 +0000)]
MFC 288829

  The latest version of lex requires the latest m4 to build, add a dependency
  when running the build-tools stage.

  The requirement is due to the -P flag used when running m4 from usr.bin/lex
  Makefile to generate skel.c.  With the old m4 that fails and the failure is
  ignored, resulting in an empty(-ish) skel.c, which leads to later build
  failures when the misconfigured new lex tool is run.

  This enables building -current (and 10-stable after MFC) on a stable-8
  system again.

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

8 years agoMFC r288258:
kib [Sat, 10 Oct 2015 05:50:42 +0000 (05:50 +0000)]
MFC r288258:
Make the __bitcount*() functions unconditionally available.

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

8 years agoMFC r288204: MFV r288063:
delphij [Sat, 10 Oct 2015 00:17:51 +0000 (00:17 +0000)]
MFC r288204: MFV r288063:

make dataset property de-registration operation O(1)

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

8 years agoMFC r288953:
dim [Fri, 9 Oct 2015 19:38:53 +0000 (19:38 +0000)]
MFC r288953:

Stop linking libc++.so verbosely, there is no need to.

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

8 years agoMFC r288099:
dim [Fri, 9 Oct 2015 19:36:06 +0000 (19:36 +0000)]
MFC r288099:

In binutils' arm-dis.c, avoid left-shifting a negative number.

Submitted by: dan.mcgregor_usask.ca (Dan McGregor)
Differential Revision: https://reviews.freebsd.org/D3376

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

8 years agoThe fmake fix in r289049 was wrong. Need to use a real variable for
bdrewery [Fri, 9 Oct 2015 19:18:02 +0000 (19:18 +0000)]
The fmake fix in r289049 was wrong.  Need to use a real variable for
.if checks rather than the iteration variable.  Tested this pattern
more (rather than just looking for error) and found the right behavior.

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

8 years agoRevert r289043.
bdrewery [Thu, 8 Oct 2015 20:32:44 +0000 (20:32 +0000)]
Revert r289043.

r284408 was marked for MFC but is not safe for stable/10 yet due to failing
in bin/sh/tests.

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

8 years agoMFC r288201:
bdrewery [Thu, 8 Oct 2015 19:21:14 +0000 (19:21 +0000)]
MFC r288201:

  Don't recurse with cleanobj.

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

8 years agoMFC r288160:
bdrewery [Thu, 8 Oct 2015 19:19:56 +0000 (19:19 +0000)]
MFC r288160:

  Document bsd.progs.mk and add more variables overrides.

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

8 years agoMFC r288158:
bdrewery [Thu, 8 Oct 2015 19:13:36 +0000 (19:13 +0000)]
MFC r288158:

  Fix most cases of bsd.progs.mk running duplicate or missing commands.

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

8 years agoDirect commit to fix usage with fmake.
bdrewery [Thu, 8 Oct 2015 19:10:51 +0000 (19:10 +0000)]
Direct commit to fix usage with fmake.

fmake does not have :tW, so use some clever :Q tricks to achieve the
same result.  This won't work if PATH actually contains spaces, but
it's better than not working at all.

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

8 years agoDirect commit to fix warnings with fmake when building from top-level.
bdrewery [Thu, 8 Oct 2015 18:33:47 +0000 (18:33 +0000)]
Direct commit to fix warnings with fmake when building from top-level.

The top-level Makefile.inc1 uses 'make -C release -V' to lookup revision
information, which causes Makefile.vm and Makefile.vagrant to be included.

fmake has 2 issues here:

  1. It doesn't like the empty result of .if ${VAR:Mfoo}
  2. It doesn't like .if ${loop_item} ==

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

8 years agoMFC r288238:
bdrewery [Thu, 8 Oct 2015 18:02:43 +0000 (18:02 +0000)]
MFC r288238:

  MFV c3ccd112: Correct off-by-ones in free_exception of emergency buffer

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

8 years agoMFC r288271:
bdrewery [Thu, 8 Oct 2015 18:01:14 +0000 (18:01 +0000)]
MFC r288271:

  Document bus_get_resource(9).

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

8 years agoMFC r284408:
bdrewery [Thu, 8 Oct 2015 17:55:53 +0000 (17:55 +0000)]
MFC r284408:

  Ensure TESTSDIR is defined before bsd.test.mk is .include'd

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

8 years agoMFC r288198,r288200:
bdrewery [Thu, 8 Oct 2015 17:49:14 +0000 (17:49 +0000)]
MFC r288198,r288200:

  r288198:
    Remove unneeded dependency line.
  r288200:
    Remove unneeded dependency of '.o: .h' that bsd.prog.mk already handles.

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

8 years agoMFC r288179:
bdrewery [Thu, 8 Oct 2015 17:45:03 +0000 (17:45 +0000)]
MFC r288179:

  Fix running make in src directories without a Makefile giving confusing
  errors.

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

8 years agoMFC r288446: Disable suspend during shutdown.
cperciva [Thu, 8 Oct 2015 15:48:44 +0000 (15:48 +0000)]
MFC r288446: Disable suspend during shutdown.

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

8 years agoMFC r287775:
hselasky [Thu, 8 Oct 2015 08:30:40 +0000 (08:30 +0000)]
MFC r287775:
Update TSO limits to include all headers.

To make driver programming easier the TSO limits are changed to
reflect the values used in the BUSDMA tag a network adapter driver is
using. The TCP/IP network stack will subtract space for all linklevel
and protocol level headers and ensure that the full mbuf chain passed
to the network adapter fits within the given limits. See r287775
for a more detailed description.

Differential Revision: https://reviews.freebsd.org/D3477
Reviewed by: rmacklem

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

8 years agoMFC r284915:
hselasky [Thu, 8 Oct 2015 07:50:50 +0000 (07:50 +0000)]
MFC r284915:
Make the system queue header file fully usable within C++ programs by
adding macros to define class lists.

This change is backwards compatible for all use within C and C++
programs. Only C++ programs will have added support to use the queue
macros within classes. Previously the queue macros could only be used
within structures.

The queue.3 manual page has been updated to describe the new
functionality and some alphabetic sorting has been done while
at it.

Differential Revision: https://reviews.freebsd.org/D2745
PR: 200827 (exp-run)

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

8 years agoMFC r287321:
hselasky [Thu, 8 Oct 2015 07:31:05 +0000 (07:31 +0000)]
MFC r287321:
Add new USB quirk.

PR: 202783

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

8 years agoMFC r287355, r287772 and r287825:
hselasky [Thu, 8 Oct 2015 07:24:54 +0000 (07:24 +0000)]
MFC r287355, r287772 and r287825:
Add new USB PCI IDs.

PR: 202807
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3665

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

8 years agoMFC r288180:
hselasky [Thu, 8 Oct 2015 07:17:35 +0000 (07:17 +0000)]
MFC r288180:
Implement support for reading USB quirks from the kernel environment.
Refer to the usb_quirk(4) manual page for more details on how to use
this new feature.

Submitted by: Maxime Soule <btik-fbsd@scoubidou.com>
PR: 203249

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

8 years agoBelately bump __FreeBSD_version after r288572 which makes a change to
delphij [Thu, 8 Oct 2015 06:34:12 +0000 (06:34 +0000)]
Belately bump __FreeBSD_version after r288572 which makes a change to
zfeature_info.

This is a direct commit to stable/10.

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

8 years agoMFC r287698: Fixing a memory leak on module unloading.
avatar [Wed, 7 Oct 2015 09:29:42 +0000 (09:29 +0000)]
MFC r287698: Fixing a memory leak on module unloading.

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

8 years agoRefine the r287037 entry based on feedback from jilles@.
gjb [Wed, 7 Oct 2015 02:13:02 +0000 (02:13 +0000)]
Refine the r287037 entry based on feedback from jilles@.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 287870:
jhb [Wed, 7 Oct 2015 00:50:26 +0000 (00:50 +0000)]
MFC 287870:
Always clear TDB_USERWR before fetching system call arguments.  The
TDB_USERWR flag may still be set after a debugger detaches from a
process via PT_DETACH.  Previously the flag would never be cleared
forcing a double fetch of the system call arguments for each system
call.  Note that the flag cannot be cleared at PT_DETACH time in case
one of the threads in the process is currently stopped in
syscallenter() and the debugger has modified the arguments for that
pending system call before detaching.

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

8 years agoMFC 287864:
jhb [Wed, 7 Oct 2015 00:33:44 +0000 (00:33 +0000)]
MFC 287864:
When a process group leader exits, all of the processes in the group are
sent SIGHUP and SIGCONT if any of the processes are stopped.  Currently this
behavior is triggered for any type of process stop including ptrace() stops
and transient stops for single threading during exit() and execve().
Thus, if a debugger is attached to a process in a group when the leader
exits, the entire group can be HUPed.  Instead, only send the signals if a
process in the group is stopped due to SIGSTOP.

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

8 years agoMFC 287833:
jhb [Tue, 6 Oct 2015 22:28:28 +0000 (22:28 +0000)]
MFC 287833:
Threads holding a read lock of a sleepable rm lock are not permitted
to sleep.  The rmlock implementation enforces this by disabling
sleeping when a read lock is acquired. To simplify the implementation,
sleeping is disabled for most of the duration of rm_rlock.  However,
it doesn't need to be disabled until the lock is acquired.  If a
sleepable rm lock is contested, then rm_rlock may need to acquire the
backing sx lock.  This tripped the overly-broad assertion.  Fix by
relaxing the assertion around the call to sx_xlock().

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

8 years agoDocument r286751, tzdata 2015f.
gjb [Tue, 6 Oct 2015 18:51:41 +0000 (18:51 +0000)]
Document r286751, tzdata 2015f.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r288710, sesutil(8) addition.
gjb [Tue, 6 Oct 2015 17:42:37 +0000 (17:42 +0000)]
Document r288710, sesutil(8) addition.
Add Gandi.net to sponsor.ent.

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC r288120: Fix crash on parsing some inf files
amdmi3 [Tue, 6 Oct 2015 15:30:41 +0000 (15:30 +0000)]
MFC r288120: Fix crash on parsing some inf files

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

8 years agoMFC r287821: Document NGM_PPPOE_SETMAXP.
mav [Tue, 6 Oct 2015 13:49:28 +0000 (13:49 +0000)]
MFC r287821: Document NGM_PPPOE_SETMAXP.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>

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

8 years agoMFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).
mav [Tue, 6 Oct 2015 13:10:21 +0000 (13:10 +0000)]
MFC r287654: Add support for PPP-Max-Payload PPPoE tag (RFC4638).

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>

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

8 years agoDocument r288810, ctl(4) updated to support CD-ROMs and other
gjb [Mon, 5 Oct 2015 20:15:18 +0000 (20:15 +0000)]
Document r288810, ctl(4) updated to support CD-ROMs and other
removable devices.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r288167, fix kqueue write events for files > 2GB
gjb [Mon, 5 Oct 2015 20:15:16 +0000 (20:15 +0000)]
Document r288167, fix kqueue write events for files > 2GB

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r288732, CTL HA reimplementation.
gjb [Mon, 5 Oct 2015 20:15:13 +0000 (20:15 +0000)]
Document r288732, CTL HA reimplementation.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r287746, pciconf(8) prefer pciids from ports database,
gjb [Mon, 5 Oct 2015 20:15:11 +0000 (20:15 +0000)]
Document r287746, pciconf(8) prefer pciids from ports database,
if present.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r287665, account for ashift when gathering buffers to
gjb [Mon, 5 Oct 2015 20:15:08 +0000 (20:15 +0000)]
Document r287665, account for ashift when gathering buffers to
be written to l2arc device.
Add ClusterHQ to sponsor.ent.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r287037, uart(4) PPS runtime-tunable.
gjb [Mon, 5 Oct 2015 20:15:06 +0000 (20:15 +0000)]
Document r287037, uart(4) PPS runtime-tunable.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r287802, xen(4) blkif indirect segment I/O support.
gjb [Mon, 5 Oct 2015 20:15:04 +0000 (20:15 +0000)]
Document r287802, xen(4) blkif indirect segment I/O support.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r288202, ar(1) '-D' option enabled by default.
gjb [Mon, 5 Oct 2015 20:15:01 +0000 (20:15 +0000)]
Document r288202, ar(1) '-D' option enabled by default.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r286082, libarchive(3) bugfix for sparse files in tar(1)
gjb [Mon, 5 Oct 2015 20:14:59 +0000 (20:14 +0000)]
Document r286082, libarchive(3) bugfix for sparse files in tar(1)
archives.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r286064, jail(8) -l flag and default shell execution when
gjb [Mon, 5 Oct 2015 20:14:57 +0000 (20:14 +0000)]
Document r286064, jail(8) -l flag and default shell execution when
no commands are specified.

Sponsored by: The FreeBSD Foundation

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

8 years agoDocument r287122, NTFS support in mkimg(1).
gjb [Mon, 5 Oct 2015 20:14:55 +0000 (20:14 +0000)]
Document r287122, NTFS support in mkimg(1).

Sponsored by: The FreeBSD Foundation

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

8 years agoMFC 288272
jpaetzel [Mon, 5 Oct 2015 17:15:04 +0000 (17:15 +0000)]
MFC 288272

Increase group limit for kerberized NFSv4

PR: 202659
Submitted by: matthew.l.dailey@dartmouth.edu
Reviewed by: rmacklem dfr
Sponsored by: iXsystems

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

8 years agoMFC r288579: Restore original array_rd_sz semantics.
mav [Mon, 5 Oct 2015 13:33:02 +0000 (13:33 +0000)]
MFC r288579: Restore original array_rd_sz semantics.

Before r278702 prefetch was blocked for I/Os > 1MB, after -- >= 1MB.
1MB I/Os are used for bulk operations in CTL (XCOPY, VERIFY), and disabling
prefetch for them reduced the performance.

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