]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r282482: cp: Remove fts sorting.
jilles [Thu, 14 May 2015 10:46:20 +0000 (10:46 +0000)]
MFC r282482: cp: Remove fts sorting.

In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR: 53475
Reviewed by: bde (in 2004)

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

9 years agoMFC r281877:
yongari [Thu, 14 May 2015 05:10:42 +0000 (05:10 +0000)]
MFC r281877:
  Add another variant of BCM5708S controller to IBM HS21 workaround
  list.

  PR: 118238

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

9 years agoMFC r282772:
gjb [Thu, 14 May 2015 04:21:04 +0000 (04:21 +0000)]
MFC r282772:
  Fix virtual machine disk format creating by passing VMFORMAT
  to mkimg(1)

PR: 200068
Sponsored by: The FreeBSD Foundation

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

9 years agoDocument EN-15:04 and EN-15:05.
gjb [Thu, 14 May 2015 04:05:34 +0000 (04:05 +0000)]
Document EN-15:04 and EN-15:05.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r279571,281563 (allanjude):
delphij [Wed, 13 May 2015 22:36:00 +0000 (22:36 +0000)]
MFC r279571,281563 (allanjude):

Add a new safetly belt to freebsd-update to prevent a user doing a minor
update (-pX) while having an unfinished major upgrade (9.x to 9.y)
Safetly belt can be disabled with the -F flag

Additionally, add the --not-running-from-cron flag they bypasses the TTY
requirement, and allows freebsd-update to be invoked by orchestration
frameworks, scripts, or otherwise.

PR: 196760
Relnotes: yes
Sponsored by: ScaleEngine Inc.

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

9 years agoMFC r282565: Handle EDQUOT backend storage errors same as ENOSPC.
mav [Wed, 13 May 2015 15:23:53 +0000 (15:23 +0000)]
MFC r282565: Handle EDQUOT backend storage errors same as ENOSPC.

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

9 years agoMFC r282465:
ae [Wed, 13 May 2015 14:05:53 +0000 (14:05 +0000)]
MFC r282465:
  Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
  Sort DOSPTYP_* entries in diskmbr.h by value.
  Document these scheme-specific types in gpart(8).

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

9 years agoMFC r262781,r263336:
ngie [Wed, 13 May 2015 12:17:01 +0000 (12:17 +0000)]
MFC r262781,r263336:

r262781 (by pho):

Preserve naming consistency for test cases.

Pointed out by:  jmmv
Sponsored by: EMC / Isilon storage division

r263336 (by pho):

Added sysctl kern.maxfiles increase test, do not use /etc/passwd for tests
and use volatile sig_atomic_t for signal handler variable.

Reviewed by:  asomers (previous version)
Sponsored by: EMC / Isilon storage division

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

9 years agoMFC r282211,r282244:
ngie [Wed, 13 May 2015 12:13:18 +0000 (12:13 +0000)]
MFC r282211,r282244:

r282211:

ATF_REQUIRE_KERNEL_MODULE: use atf_skip, not ATF_REQUIRE_MSG so the testcase
no longer bombs out
PLAIN_REQUIRE_KERNEL_MODULE: use printf + _exit, no err so the testcase no
longer bombs out if it prints to stderr

r282244:

Fix typo. It should have been atf_tc_skip, not atf_skip

Reported by: many, Jenkins
Pointyhat to: ngie

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

9 years agoMFC r281593,r282071,r282074,r282133,r282134,r282135,r282136,r282137,r282138:
ngie [Wed, 13 May 2015 12:09:01 +0000 (12:09 +0000)]
MFC r281593,r282071,r282074,r282133,r282134,r282135,r282136,r282137,r282138:

r282071:

Integrate tools/regression/mqueue into the FreeBSD test suite as
tests/sys/mqueue

r282074:

Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the
FreeBSD test suite as tests/sys/aio

r282133:

Fill in the copyright boilerplate for the test program

r282134:

Add initial (unpolished) macros for interfacing with the FreeBSD test suite

This is very rough, but will be replaced/redesigned some time soon after I fix
the Jenkins breakage I introduced

r282135:

Use ATF_REQUIRE_KERNEL_MODULE instead of aio_available function

r282136:

- Use ATF_REQUIRE_KERNEL_MDOULE to require aio(4)
- Don't use /tmp as a basis for temporary files as it's outside of the ATF
  sandbox
- Don't override MAX macro in sys/param.h

r282137:

Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs"

r282138:

Adjust CFLAGS to find freebsd_test_suite/macros.h

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

9 years agoMFC r280894,r280895:
ngie [Wed, 13 May 2015 11:49:38 +0000 (11:49 +0000)]
MFC r280894,r280895:

r280894:

Minor cleanup before converting to ATF testcases

- Remove blank (tab-only) lines.
- Fix -Wunused warnings.
- Bump up to WARNS= 6

r280895:

- Fix -Wsign issue
- Bump up to WARNS=6

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

9 years agoMFC r282057,r282092,r282106:
ngie [Wed, 13 May 2015 11:32:55 +0000 (11:32 +0000)]
MFC r282057,r282092,r282106:

r282057:

Build/install libc, librt, libthr, and msun NetBSD test suites on all
architectures

r282092 (by andrew):

Correct the spelling of MACHINE_CPUARCH, MACHINE_CPU is not set on arm64.

r282106:

Remove per-architecture checks for enabling HAVE_FENV_H

The conditional came from NetBSD, where only select architectures have this
header/support

All architectures on FreeBSD have the necessary support though, so the
conditional's completely unnecessary

make tinderbox done on all architectures (including arm64, where the issue
occurred before) this time

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

9 years agoMFC r282076,r282104:
ngie [Wed, 13 May 2015 11:12:06 +0000 (11:12 +0000)]
MFC r282076,r282104:

r282076:

Integrate tools/regression/mmap into the FreeBSD test suite as
tests/sys/kern/mmap_test

r282104:

Move tests/sys/kern/mmap_test to tests/sys/vm/mmap_test

As jhb noted, the actual mmap(2) implementation is under sys/vm, not
sys/kern/, so the correct logical place is tests/sys/vm/, not
tests/sys/kern/

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

9 years agoMFC r282075:
ngie [Wed, 13 May 2015 11:06:12 +0000 (11:06 +0000)]
MFC r282075:

Convert this testcase over to a TAP format testcase

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

9 years agoMFC r262526,r262730:
ngie [Wed, 13 May 2015 11:01:48 +0000 (11:01 +0000)]
MFC r262526,r262730:

r262526 (by pho):

Added a regression test for r234131.

Discussed with:  asomers
Sponsored by: EMC / Isilon storage division

r262730 (by pho):

Changed name of test case to a more descriptive one and moved
comment to the "descr" property.

Suggested by:  jmmv
Sponsored by: EMC / Isilon storage division

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

9 years agoMFC r281966:
ngie [Wed, 13 May 2015 10:56:35 +0000 (10:56 +0000)]
MFC r281966:

Add #include sys/types.h for register_t for mips

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

9 years agoMFC r281618,r281823:
ngie [Wed, 13 May 2015 10:53:16 +0000 (10:53 +0000)]
MFC r281618,r281823:

r281618:

Defeat race with MK_KERBEROS == yes introduced with bootstrap-tools
parallelization work done in r279197

- kerberos5/lib/libroken requires kerberos5/tools/make-roken to build
- kerberos5/tools/asn1_compile, kerberos5/tools/slc, and usr.bin/compile_et
  require kerberos5/lib/libroken and kerberos5/lib/libvers

This race is incredibly evident when cross-building sparc64 on
ref10-amd64.freebsd.org

Pointyhat to: ngie

r281823:

Serialize all of _kerberos5_bootstrap_tools to avoid build failures involving
make bootstrap-tools

On the plus side, this also greatly reduces complexity

Pointyhat to: ngie
Reported by: Willem Jan Withagen <wjw@digiware.nl>

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

9 years agoMFC r282364, r282429, r282524:
mav [Wed, 13 May 2015 10:35:34 +0000 (10:35 +0000)]
MFC r282364, r282429, r282524:
Implement BSY reporting and in-order execution of non-NCQ commands.

Block command queue on BSY or DRQ bits set or device error reported.
This can be a performance penalization for non-NCQ commands, but it is
required for proper error recovery and standard compliance.

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

9 years agoMFC r282345: Initialize PxCMD on reset and make its read-only bits such.
mav [Wed, 13 May 2015 10:30:53 +0000 (10:30 +0000)]
MFC r282345: Initialize PxCMD on reset and make its read-only bits such.

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

9 years agoMFC r282344: Handle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().
mav [Wed, 13 May 2015 10:29:45 +0000 (10:29 +0000)]
MFC r282344: Handle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().

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

9 years agoMFC r282073:
ngie [Wed, 13 May 2015 10:29:02 +0000 (10:29 +0000)]
MFC r282073:

- Fix style(9) a bit
-- Fix whitespace
-- Use err/errx
-- Remove superfluous braces
- Be a bit more defensive with input from the end-user
- Don't throw a floating point exception by dividing by 0 when processing a
  zero-byte file

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

9 years agoMFC r282067:
ngie [Wed, 13 May 2015 10:24:23 +0000 (10:24 +0000)]
MFC r282067:

Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifo
and tools/regression/file into the FreeBSD test suite as tests/sys/file

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

9 years agoMFC r282063:
ngie [Wed, 13 May 2015 10:21:13 +0000 (10:21 +0000)]
MFC r282063:

Integrate tools/regression/kqueue into the FreeBSD test suite as
tests/sys/kqueue

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

9 years agoMFC r281766, r281767:
mav [Wed, 13 May 2015 10:21:00 +0000 (10:21 +0000)]
MFC r281766, r281767:
Report link as up only if we managed to open tap device.

It would be cool to report tap device status, but it has no such API.

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

9 years agoMFC r281764, r282563: Disable RX/TX queues notifications when not needed.
mav [Wed, 13 May 2015 10:18:44 +0000 (10:18 +0000)]
MFC r281764, r282563: Disable RX/TX queues notifications when not needed.

This reduces CPU load and doubles iperf throughput, reaching 2-3Gbit/s.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r282062:
ngie [Wed, 13 May 2015 10:15:26 +0000 (10:15 +0000)]
MFC r282062:

Fix -Wformat warnings by using proper format string qualifiers for
long and unsigned[ long] types

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

9 years agoMFC r282056:
ngie [Wed, 13 May 2015 10:12:16 +0000 (10:12 +0000)]
MFC r282056:

The fmodl compat shims on arm/mips/powerpc aren't complete

Disable the test code for now on those architectures

PR: 199422

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

9 years agoMFC r282054:
ngie [Wed, 13 May 2015 10:07:50 +0000 (10:07 +0000)]
MFC r282054:

ath3kfw, bcmfw, bthidcontrol, bthidd all require usb(4); build them
conditionally if MK_USB != no

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

9 years agoMFC r281967:
ngie [Wed, 13 May 2015 10:03:21 +0000 (10:03 +0000)]
MFC r281967:

Assuming a system has /bin/csh on it is a bad idea (especially it being
optional on FreeBSD). Look for /bin/cat instead

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

9 years agoConvert space to tabs in the bits that I changed in my last commit.
araujo [Wed, 13 May 2015 08:58:06 +0000 (08:58 +0000)]
Convert space to tabs in the bits that I changed in my last commit.
No functional change.

Reported by: jmallet@

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

9 years agoMFC r281984:
hiren [Wed, 13 May 2015 08:04:50 +0000 (08:04 +0000)]
MFC r281984:

Currently there is no easy way to specify net.isr.maxthreads = all cpus. We need
to specify exact number of cpus in loader.conf which get annoying when you have
mix of machines which don't have equal number of total cpus. I propose "-1" as
that value. When loader.conf has net.isr.maxthreads = -1, netisr will use all
available cpus.

Sponsored by: Limelight Networks

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

9 years agoPartial MFC r281838:
hiren [Wed, 13 May 2015 07:39:16 +0000 (07:39 +0000)]
Partial MFC r281838:

For igb(4), when we are doing multiqueue, we are all setup to have full 32bit
RSS hash from the card. Expose that so others like lagg(4) can use that and
avoid hashing the traffic by themselves. Setting hashtype as OPAQUE because
FreeBSD 10 doesn't have RSS support.

Sponsored by: Limelight Networks

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

9 years agoMFC: 282215
gnn [Wed, 13 May 2015 00:28:36 +0000 (00:28 +0000)]
MFC: 282215

Make it possible to statically link SIFTR into the kernel
as a new option.

Reviewed by: bz
Discussed with: lstewart

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

9 years agoMFC r281944: vt(4): Simplify mouse area detection
emaste [Tue, 12 May 2015 18:09:54 +0000 (18:09 +0000)]
MFC r281944: vt(4): Simplify mouse area detection

  vt_is_cursor_in_area needs to return true if any part of the mouse
  cursor is visible in the rectangle area. Replace the existing test with
  a simpler version of a test for overlapping rectangles.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r282247: vt: fix vt_fb_bitblt_bitmap mask corruption
emaste [Tue, 12 May 2015 18:08:07 +0000 (18:08 +0000)]
MFC r282247: vt: fix vt_fb_bitblt_bitmap mask corruption

  Previously the mask wrapped when one or more of the mask bytes extended
  past the right edge of the window. Simplify the logic and use the same
  byte offset and bit in both the pattern and mask.

PR: 199648
Sponsored by: The FreeBSD Foundation

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

9 years agoFix the media detected for copper cables NIC based on chipsest X540T.
araujo [Tue, 12 May 2015 16:36:54 +0000 (16:36 +0000)]
Fix the media detected for copper cables NIC based on chipsest X540T.

Requested by: hiren@
MFH: 279803

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

9 years agoMFC r282469:
garga [Tue, 12 May 2015 15:21:19 +0000 (15:21 +0000)]
MFC r282469:

Add support for Sierra MC7354 card

Author: Jeremy Porter <jporter@netgate.com>
Differential Revision: https://reviews.freebsd.org/D2444
Reviewed by: gnn, hselasky
Sponsored by: Netgate

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

9 years agofollowup to r282748: sys/modules/cyclic was not removed by svn merge
avg [Tue, 12 May 2015 09:35:50 +0000 (09:35 +0000)]
followup to r282748: sys/modules/cyclic was not removed by svn merge

This directory and its content were removed by the original commit
but somehow the merge did not remove the directory.

Spotted by: smh

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

9 years agofollowup to r282748: remove another instance of cyclic in sys/modules/Makefile
avg [Tue, 12 May 2015 09:30:29 +0000 (09:30 +0000)]
followup to r282748: remove another instance of cyclic in sys/modules/Makefile

Those lines were not present in head and thus were not removed by the
original commit and its merge.

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

9 years agoMFC r282205:
smh [Tue, 12 May 2015 09:25:16 +0000 (09:25 +0000)]
MFC r282205:

Fix misuse of input argument in traverse_visitbp

Obtained from: zfsonlinux (a585f2f844ed3d4270221fed88f5e494eb55d932
Sponsored by: Multiplay

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

9 years agoMFC r282680:
kib [Tue, 12 May 2015 08:52:50 +0000 (08:52 +0000)]
MFC r282680:
Remove unused define.

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

9 years agoMFC r274223 (by glebius):
hrs [Tue, 12 May 2015 03:49:18 +0000 (03:49 +0000)]
MFC r274223 (by glebius):

  Remove VNET_SYSCTL_ARG(). The generic sysctl(9) code handles that.

A panic could occur by "sysctl -a" when using VIMAGE-enabled stable/10
kernel after r262734 because of this missing MFC.

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

9 years agoFix r282781:
hiren [Tue, 12 May 2015 00:27:20 +0000 (00:27 +0000)]
Fix r282781:

We should return OPAQUE from M_HASHTYPE_GET() if M_FLOWID is there and rsstype
is not set.

Submitted by: hans

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

9 years agor281955 removed M_FLOWID which could cause problems for old drivers still using
hiren [Mon, 11 May 2015 20:26:35 +0000 (20:26 +0000)]
r281955 removed M_FLOWID which could cause problems for old drivers still using
the field. It cannot be removed from stable/10 so restore it.

Change M_HASHTYPE_GET() and M_HASHTYPE_SET() to do the right thing when M_FLOWID
exists.

Also bumping the FreeBSD version to note the fact that M_FLOWID is brought back
in stable/10.
(Just a note that M_FLOWID has been removed from -head.)

Spotted by: np
Suggested by: hans
Reviewed by: hans, tuexen (earlier version)
Helped by: jhb, delphij, gjb
Sponsored by: Limelight Networks

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

9 years agoMFC r282131: replace a comment about zfs recv -F corner case with a longer one
avg [Mon, 11 May 2015 09:43:03 +0000 (09:43 +0000)]
MFC r282131: replace a comment about zfs recv -F corner case with a longer one

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

9 years agoMFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT
avg [Mon, 11 May 2015 08:46:03 +0000 (08:46 +0000)]
MFC r282130: zfs_onexit_fd_hold: return EBADF even if devfs_get_cdevpriv gave ENOENT

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

9 years agoMFC r282127: dsl_dir_rename_check: return EXDEV on cross-pool rename attempt
avg [Mon, 11 May 2015 08:43:20 +0000 (08:43 +0000)]
MFC r282127: dsl_dir_rename_check: return EXDEV on cross-pool rename attempt

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

9 years agoMFC r282126: FV r282123: 5610 zfs clone from different source and target pools
avg [Mon, 11 May 2015 08:40:55 +0000 (08:40 +0000)]
MFC r282126: FV r282123: 5610 zfs clone from different source and target pools

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

9 years agoMFC r282125: MFV r282124: 5393 spurious failures from dsl_dataset_hold_obj()
avg [Mon, 11 May 2015 08:36:58 +0000 (08:36 +0000)]
MFC r282125: MFV r282124: 5393 spurious failures from dsl_dataset_hold_obj()

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

9 years agoMFC r282122: nvpair_type_is_array: DATA_TYPE_INT8_ARRAY was not recognized
avg [Mon, 11 May 2015 08:33:49 +0000 (08:33 +0000)]
MFC r282122: nvpair_type_is_array: DATA_TYPE_INT8_ARRAY was not recognized

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

9 years agoMFC r282121: dump_nvlist: handle DATA_TYPE_BOOLEAN_ARRAY
avg [Mon, 11 May 2015 08:30:57 +0000 (08:30 +0000)]
MFC r282121: dump_nvlist: handle DATA_TYPE_BOOLEAN_ARRAY

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

9 years agoMFC r277796: hook userland threads suspend + resume into acpi suspend code
avg [Mon, 11 May 2015 08:16:33 +0000 (08:16 +0000)]
MFC r277796: hook userland threads suspend + resume into acpi suspend code

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

9 years agoMFC r277795,278849: vt(4): Use power_{suspend,resume} event handlers
avg [Mon, 11 May 2015 08:00:16 +0000 (08:00 +0000)]
MFC r277795,278849: vt(4): Use power_{suspend,resume} event handlers

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

9 years agoMFC r275576: remove opensolaris cyclic code, replace with high-precision callouts
avg [Mon, 11 May 2015 07:54:39 +0000 (07:54 +0000)]
MFC r275576: remove opensolaris cyclic code, replace with high-precision callouts

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

9 years agoMFC r282434:
gjb [Mon, 11 May 2015 01:33:34 +0000 (01:33 +0000)]
MFC r282434:
  MFV r225523, r282431:
   r225523 (hrs):
    Import openresolv-3.4.4.

   r282431:
    Import openresolv-3.7.0.

PR: 199854
Submitted by: yuri@rawbw.com
Relnotes: yes
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r282041: hexdump: Don't use uninitialized struct stat.
jilles [Sun, 10 May 2015 21:26:07 +0000 (21:26 +0000)]
MFC r282041: hexdump: Don't use uninitialized struct stat.

PR: 196194

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

9 years agoMFC: 273293
gnn [Sat, 9 May 2015 22:59:11 +0000 (22:59 +0000)]
MFC: 273293

Update the TCP structure used by DTrace to show the smoothed RTT.
This will allow similar functionality to SIFTR to be built with DTrace.

Submitted by: Grenville Armitage

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

9 years agoMFC: 281558
gnn [Sat, 9 May 2015 19:43:48 +0000 (19:43 +0000)]
MFC: 281558

Minor change to the macros to make sure that if an AF is passed that is neither AF_INET6 nor AF_INET that we don't touch random bits of memory.

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

9 years agoMFC: 281529
gnn [Sat, 9 May 2015 19:36:30 +0000 (19:36 +0000)]
MFC: 281529

I can find no reason to allow packets with both SYN and FIN bits
set past this point in the code. The packet should be dropped and
not massaged as it is here.

Differential Revision:  https://reviews.freebsd.org/D2266
Submitted by: eri
Sponsored by: Rubicon Communications (Netgate)

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

9 years agoMFC r281840:
delphij [Fri, 8 May 2015 22:22:51 +0000 (22:22 +0000)]
MFC r281840:

Extend DA_Q_NO_RC16 to MXUB3* devices.

PR: kern/198647

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

9 years agoMFC r261708, r261847, r268525, r274316, r274347, r275593,
hiren [Fri, 8 May 2015 08:35:06 +0000 (08:35 +0000)]
MFC r261708, r261847, r268525, r274316, r274347, r275593,
    r276844, r276847, r279531, r279559, r279564, r279676

A bunch of IPv6 fixes by melifaro, hrs and ae

Major changes:
Simplify nd6_output_lle()
Add refcounting to DAD and fix races and other errors
Implement Enhanced DAD algorithm for IPv6

Suggested by:  ae
Tested by:  Jason Wolfe <j at nitrology.com>
Sponsored by: Limelight Networks

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

9 years agoMFC r282419, r282435:
gjb [Fri, 8 May 2015 02:21:29 +0000 (02:21 +0000)]
MFC r282419, r282435:
 r282419:
   Add logic to detect if the net/bsdec2-image-upload port needs
   to be installed. [1]

   For the cw-ec2-portinstall and ec2ami targets, touch the
   .TARGET file after completion to prevent duplicate invocations.

   Add cw-ec2-portinstall and ec2ami to CLEANFILES.

 r282435:
   Remove a debugging line that snuck in with the previous commit.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281860: Make AIO to not allocate pbufs for unmapped I/O like r281825.
mav [Wed, 6 May 2015 21:08:16 +0000 (21:08 +0000)]
MFC r281860: Make AIO to not allocate pbufs for unmapped I/O like r281825.

While there, make few more performance optimizations.

On 40-core system doing many 512-byte AIO reads from array of raw SSDs
this change removes lock congestions inside pbuf allocator and devfs,
and bottleneck on single AIO completion taskqueue thread.  It improves
peak AIO performance from ~600K to ~1.3M IOPS.

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

9 years agoMFC r281825: Rewrite physio() to not allocate pbufs for unmapped I/O.
mav [Wed, 6 May 2015 21:06:32 +0000 (21:06 +0000)]
MFC r281825: Rewrite physio() to not allocate pbufs for unmapped I/O.

pbufs is a limited resource, and their allocator is not SMP-scalable.
So instead of always allocating pbuf to immediately convert it to bio,
allocate bio just here.  If buffer needs kernel mapping, then pbuf is
still allocated, but used only as a source of KVA and storage for a list
of held pages.

On 40-core system doing many 512-byte reads from user level to array of
raw SSDs this change removes huge lock congestion inside pbuf allocator.
It improves peak performance from ~300K to ~1.2M IOPS.  On my previous
24-core system this problem also existed, but was less serious.

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

9 years agoMFC r282245:
kib [Wed, 6 May 2015 09:38:44 +0000 (09:38 +0000)]
MFC r282245:
Remove the #ifdef DEBUG code, which is not compilable on 64bit
architectures.

PR: 199767

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

9 years agoMFC r277396, r278681, r278865, r278924, r279205, r280208,
hselasky [Tue, 5 May 2015 20:58:12 +0000 (20:58 +0000)]
MFC r277396, r278681, r278865, r278924, r279205, r280208,
  r280210, r280764 and r280768:

Update the Linux compatibility layer:
- Add more functions.
- Add some missing includes which are needed when the header files
  are not included in a particular order.
- The kasprintf() function cannot be inlined due to using a variable
  number of arguments. Move it to a C-file.
- Fix problems about 32-bit ticks wraparound and unsigned long
  conversion. Jiffies or ticks in FreeBSD have integer type and are
  not long.
- Add missing "order_base_2()" macro.
- Fix BUILD_BUG_ON() macro.
- Declare a missing symbol which is needed when compiling without -O2
- Clean up header file inclusions in the linux/completion.h, linux/in.h
  and linux/fs.h header files.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r280597:
hselasky [Tue, 5 May 2015 20:04:01 +0000 (20:04 +0000)]
MFC r280597:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR: 198647

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

9 years agoMFC r280598:
hselasky [Tue, 5 May 2015 19:59:15 +0000 (19:59 +0000)]
MFC r280598:
Add definition of the ISOCHRONOUS endpoint usage bits.
Refer to the USB v2.0 specification for more information.

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

9 years agoMFC r281881:
hselasky [Tue, 5 May 2015 19:56:23 +0000 (19:56 +0000)]
MFC r281881:
Disable multi process interrupts, because the current code doesn't use
them. Else we can end up in an infinite interrupt loop in USB device
mode.

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

9 years agoMFC r282120:
hselasky [Tue, 5 May 2015 19:47:17 +0000 (19:47 +0000)]
MFC r282120:
The add_bounce_page() function can be called when loading physical
pages which pass a NULL virtual address. If the BUS_DMA_KEEP_PG_OFFSET
flag is set, use the physical address to compute the page offset
instead. The physical address should always be valid when adding
bounce pages and should contain the same page offset like the virtual
address.

Submitted by: Svatopluk Kraus <onwahe@gmail.com>
Reviewed by: jhb@

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

9 years agoUpdate the last svn rev marker.
gjb [Tue, 5 May 2015 15:48:25 +0000 (15:48 +0000)]
Update the last svn rev marker.

Sponsored by: The FreeBSD Foundation

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

9 years agoDocument r282278, wc(1) race when receiving SIGINFO fixed.
gjb [Tue, 5 May 2015 15:16:38 +0000 (15:16 +0000)]
Document r282278, wc(1) race when receiving SIGINFO fixed.

Sponsored by: The FreeBSD Foundation

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

9 years agoBackport some parts of r272200.
np [Tue, 5 May 2015 15:13:59 +0000 (15:13 +0000)]
Backport some parts of r272200.
- a lock to protect indirect register access
- put code that deals with stats in a separate cxgbe_refresh_stats.

This is a direct commit to stable/10.

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

9 years agoMFC r282128:
kib [Tue, 5 May 2015 08:12:24 +0000 (08:12 +0000)]
MFC r282128:
Do not sleep waiting for the MAP_ENTRY_IN_TRANSITION state ending with
the vnode locked.

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

9 years agoMFC r281483:
markj [Tue, 5 May 2015 03:17:32 +0000 (03:17 +0000)]
MFC r281483:
Fix a possible refcount leak in regen_tmpaddr().

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

9 years agoMFC 281701:
markj [Tue, 5 May 2015 03:13:02 +0000 (03:13 +0000)]
MFC 281701:
SDT(9): add a section on SDT providers, mentioning the "sdt" provider.
Add examples demonstrating how one can list available providers and the
DTrace probes provided by a provider.

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

9 years agoMFC r281765:
mav [Mon, 4 May 2015 19:33:51 +0000 (19:33 +0000)]
MFC r281765:
Activate write-only optimization if bpf device opened with O_WRONLY.

dhclient opens bpf as write-only to send packets. It never reads received
packets from that descriptor, but processing them in kernel takes time.
Especially much time takes packet timestamping on systems with expensive
timecounter, such as bhyve guest, where network speed dropped in half.

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r282109:
kib [Mon, 4 May 2015 08:19:12 +0000 (08:19 +0000)]
MFC r282109:
Always do token substitution, do not require -z origin to do it.

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

9 years agoMFC r282085:
kib [Mon, 4 May 2015 08:16:32 +0000 (08:16 +0000)]
MFC r282085:
Partially revert r255986: do not call VOP_FSYNC() when helping
bufdaemon in getnewbuf(), do use buf_flush().  The difference is that
bufdaemon uses TRYLOCK to get buffer locks, which allows calls to
getnewbuf() while another buffer is locked.

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

9 years agoMFC r282084:
kib [Mon, 4 May 2015 08:13:05 +0000 (08:13 +0000)]
MFC r282084:
Fix locking for oshmctl() and shmsys().

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

9 years agoMFC r281763:
kib [Mon, 4 May 2015 08:05:13 +0000 (08:05 +0000)]
MFC r281763:
Remove code to support the top of the stack layout for FreeBSD 1.x/2.x
kernel.

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

9 years agoMFC r272183:
np [Sun, 3 May 2015 18:54:17 +0000 (18:54 +0000)]
MFC r272183:

Make sure the adapter's management queue and the event queue are
available before any uppper layer driver (TOE, iWARP, or iSCSI)
registers with the base cxgbe(4) driver.

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

9 years agoMFC r281592, r281918, r282119, r282266:
kevlo [Sun, 3 May 2015 15:09:34 +0000 (15:09 +0000)]
MFC r281592, r281918, r282119, r282266:

- Fix the length of efuse content
- Disable usb aggregation mode by default since it boots performance

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

9 years agoMFC r272051:
np [Sun, 3 May 2015 08:17:37 +0000 (08:17 +0000)]
MFC r272051:

cxgbe(4):  Verify that the addresses in if_multiaddrs really are multicast
addresses.  (The chip doesn't really care, it's just that it needs to be
told explicitly if unicast DMACs are checked for "hits" in the hash that
is used after the TCAM entries are all used up).

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

9 years agoMFC r281738:
mav [Sun, 3 May 2015 07:16:47 +0000 (07:16 +0000)]
MFC r281738:
Change wcommitsize default from one empirical value to another.

The new value is more predictable with growing RAM size:

        hibufspace maxvnodes      old      new
i386:
  256MB   32980992     15800  2198732  2097152
    2GB   94027776    107677   878764  4194304
amd64:
  256MB   32980992     15800  2198732  2097152
    1GB  114114560     68062  1678155  4194304
    4GB  217055232    111807  1955452  4194304
   16GB 1717846016    337308  5097465 16777216
   64GB 1734918144   1164427  1490479 16777216
  256GB 1734918144   4426453   391983 16777216

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

9 years agoMFC r281026, r281108, r281109:
mav [Sun, 3 May 2015 07:13:14 +0000 (07:13 +0000)]
MFC r281026, r281108, r281109:
Make ZFS ARC track both KVA usage and fragmentation.

Even on Illumos, with its much larger KVA, ZFS ARC steps back if KVA usage
reaches certain threshold (3/4 on i386 or 16/17 otherwise).  FreeBSD has
even less KVA, but had no such limit on archs with direct map as amd64.
As result, on machines with a lot of RAM, during load with very small user-
space memory pressure, such as `zfs send`, it was possible to reach state,
when there is enough both physical RAM and KVA (I've seen up to 25-30%),
but no continuous KVA range to allocate even single 128KB I/O request.

Address this situation from two sides:
 - restore KVA usage limitations in a way the most close to Illumos;
 - introduce new requirement for KVA fragmentation, specifying that we
should have at least one sequential KVA range of zfs_max_recordsize bytes.

Experiments show that first limitation done alone is not sufficient.  On
machine with 64GB of RAM it is sometimes needed to drop up to half of ARC
size to get at leats one 1MB KVA chunk.  Statically limiting ARC to half
of KVA/RAM is too strict, so second limitation makes it to work in cycles:
accumulate trash up to certain critical mass, do massive spring-cleaning,
and then start littering again.

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

9 years agoMFC: r281962
rmacklem [Sat, 2 May 2015 12:18:28 +0000 (12:18 +0000)]
MFC: r281962
Fix the NFS server's handling of a bogus NFSv2 ROOT RPC.
The ROOT RPC is deprecated in the NFSv2 RFC, RFC-1094
and should never be used by a client.

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

9 years agoMFC r281923, r281924: Add link to mvs(4).
mav [Fri, 1 May 2015 17:35:10 +0000 (17:35 +0000)]
MFC r281923, r281924: Add link to mvs(4).

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

9 years agoMFC r281782: Don't set bits that should be zero for SATA devices.
mav [Fri, 1 May 2015 17:33:17 +0000 (17:33 +0000)]
MFC r281782: Don't set bits that should be zero for SATA devices.

Old value made Linux think that it is PATA device with SATA bridge.

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

9 years agoMFC r281700:
mav [Fri, 1 May 2015 17:30:59 +0000 (17:30 +0000)]
MFC r281700:
Workaround bhyve virtual disks operation on top of GEOM providers.

GEOM does not support scatter/gather lists in its I/Os.  Such requests
are cut in pieces by physio(), that may be problematic, if those pieces
are not multiple of provider's sector size.  If such case is detected,
move the data through temporary sequential buffer.

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

9 years agoMFC r281666: Make virtual AHCI more careful with I/O lengths.
mav [Fri, 1 May 2015 17:29:45 +0000 (17:29 +0000)]
MFC r281666: Make virtual AHCI more careful with I/O lengths.

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

9 years agoMFC r282148:
gjb [Fri, 1 May 2015 00:31:40 +0000 (00:31 +0000)]
MFC r282148:
  Fix CROCHETBRANCH.

PR: 199760
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r281617:
bdrewery [Thu, 30 Apr 2015 18:07:48 +0000 (18:07 +0000)]
MFC r281617:

  wc: Fix SIGINFO race causing final results to be lost to stderr.

Relnotes: yes

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

9 years agoMFC r275805:
tijl [Thu, 30 Apr 2015 16:08:47 +0000 (16:08 +0000)]
MFC r275805:

Fix incorrect type of "invalids" argument in __iconv() prototype.

MFC r281550,281591:

Remove the const qualifier from iconv(3) to comply with POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html

Adjust all code that calls iconv.

PR: 199099

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

9 years agoMFC: r281628
rmacklem [Thu, 30 Apr 2015 12:44:20 +0000 (12:44 +0000)]
MFC: r281628
mav@ has found that NFS servers exporting ZFS file systems
can perform better when using a 128K read/write data size.
This patch changes NFS_MAXDATA from 64K to 128K so that
clients can use 128K for NFS mounts to allow this.
The patch also renames NFS_MAXDATA to NFS_SRVMAXIO so
that it is clear that it applies to the NFS server side
only. It also avoids a name conflict with the NFS_MAXDATA
defined in rpcsvc/nfs_prot.h, that is used for userland RPC.

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

9 years agoMFC: r281562
rmacklem [Thu, 30 Apr 2015 12:39:24 +0000 (12:39 +0000)]
MFC: r281562
File systems that do not use the buffer cache (such as ZFS) must
use VOP_FSYNC() to perform the NFS server's Commit operation.
This patch adds a mnt_kern_flag called MNTK_USES_BCACHE which
is set by file systems that use the buffer cache. If this flag
is not set, the NFS server always does a VOP_FSYNC().
This should be ok for old file system modules that do not set
MNTK_USES_BCACHE, since calling VOP_FSYNC() is correct, although
it might not be optimal for file systems that use the buffer cache.

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

9 years agoMFC r282116:
gjb [Thu, 30 Apr 2015 00:35:45 +0000 (00:35 +0000)]
MFC r282116:
  Add the cw-ec2-portinstall target to always install the
  net/bsdec2-image-upload port.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r282112:
gjb [Thu, 30 Apr 2015 00:34:41 +0000 (00:34 +0000)]
MFC r282112:
  Fix a comment.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 280721:
jhb [Wed, 29 Apr 2015 18:57:19 +0000 (18:57 +0000)]
MFC 280721:
Allow additional flags to be passed to netstat -i in the daily status check.
In particular, this allows an administrator to specify "-h" for human
readable output if that is preferred.

The default setting passes "-d", so that can be excluded by using a custom
setting.

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

9 years agoDocument r282199, drm update to match Linux 3.8.13.
gjb [Wed, 29 Apr 2015 16:15:38 +0000 (16:15 +0000)]
Document r282199, drm update to match Linux 3.8.13.

Sponsored by: The FreeBSD Foundation

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