]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r261283:
dim [Wed, 5 Mar 2014 19:30:36 +0000 (19:30 +0000)]
MFC r261283:

Import libc++ 3.4 release.  This contains a lot of bugfixes, and some
preliminary support for C++1y.

MFC r261604:

HEAD is not buildable for the past day.  Commit a 'quick fix' in order to permit
buildworld to complete.

Reviewed by: theraven

MFC r261608:

Apply a cleaner solution for the sign warnings that can occur when
compiling libc++'s <locale> header with -Wsystem-headers on.

This has also been submitted upstream.

Reported by: asomers

MFC r261801:

An ABI incompatibility crept into the libc++ 3.4 import in r261283.  It
was caused by upstream libc++ commit r194536, which aimed to make the
headers more standards-compliant, by making std::pair's copy constructor
trivial.  Unfortunately, this could cause certain C++ applications using
shared libraries built against the previous version of libc++ to crash.

Fix the ABI incompatibility by making std::pair's copy constructor
non-trivial again.

Please note: Any C++ applications or shared libraries built with libc++
between r261283 and this revision should be recompiled.

Reported by: stefanf

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

10 years agoMFC r262513:
gjb [Wed, 5 Mar 2014 17:23:38 +0000 (17:23 +0000)]
MFC r262513:
 Update release/release.conf.sample to reflect changes in r262509.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r262494
brueffer [Wed, 5 Mar 2014 13:28:02 +0000 (13:28 +0000)]
MFC: r262494

Rough cleanup (new sentence -> new line, grammar, spelling, mdoc).
This could use more work.

PR:             187035 (in part)
Submitted by:   Bjorn Heidotting

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

10 years agoMFC r262678;
pfg [Wed, 5 Mar 2014 04:27:15 +0000 (04:27 +0000)]
MFC r262678;
ufs: small formatting fixes.

Cleanup some extra space.
Use of tabs vs. spaces.
No functional change.

Reviewed by: mckusick

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

10 years agoMFC r262499, r262505, r262507, r262509:
gjb [Wed, 5 Mar 2014 00:48:11 +0000 (00:48 +0000)]
MFC r262499, r262505, r262507, r262509:

r262499:
  release.sh:
  - Add a VCSCMD variable that defaults to 'svn checkout',
    and update places 'svn co' is used directly.
  - After sourcing a configuration file, prefix SRCBRANCH,
    PORTBRANCH, and DOCBRANCH with the SVNROOT.
  - Properly capitalize 'FreeBSD.org' in the default SVNROOT.
  - Update Copyright.

  release.conf.sample:
  - Add an example to use git instead of svn, by nullifying
    SVNROOT, and setting SRCBRANCH, DOCBRANCH, and PORTBRANCH
    to the URL fo a git repository.

  release.7:
  - Document VCSCMD.

r262505:
  In release/Makefile, remove exclusion of CVS directories in the
  src/ and ports/ distributions.

  While I am thinking about it, exclude .git directories for src/
  and ports/, as somewhat of a followup to r262499.

r262507:
  Chase r262505, and remove CVS exclusion from picobsd builds.

r262509:
  Rework how WORLD_FLAGS and KERNEL_FLAGS are set, to remove an
  unnecessary expr(1) call.

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r254379:
dumbbell [Tue, 4 Mar 2014 20:21:43 +0000 (20:21 +0000)]
MFC r254379:

Avoid potential redefinition of the macro.

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

10 years agoMFC r232365:
dumbbell [Tue, 4 Mar 2014 18:27:00 +0000 (18:27 +0000)]
MFC r232365:

Provide pre/post transfer method callbacks for icbbb
clients.

These are helful when making certain drivers work on both Linux
and FreeBSD without changing the code flow too much.

Reviewed by: kib, wlosh
Approved by: kan@

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

10 years agoMFC r262623, r262667:
pfg [Tue, 4 Mar 2014 03:14:09 +0000 (03:14 +0000)]
MFC r262623, r262667:

ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.

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

10 years agoMFV 262445:
erwin [Mon, 3 Mar 2014 09:18:19 +0000 (09:18 +0000)]
MFV 262445:
Update BIND to 9.9.5

Release note:
https://lists.isc.org/pipermail/bind-announce/2013-September/000871.html
https://lists.isc.org/pipermail/bind-announce/2014-January/000896.html

Note this is a commit straight to stable as BIND no longer exists in head.

Sponsored by: DK Hostmaster A/S

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

10 years agoMFC: r262574
brueffer [Sun, 2 Mar 2014 12:13:54 +0000 (12:13 +0000)]
MFC: r262574

Add tws(4) to the hardware notes.

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

10 years agoMFC r261068
jhibbits [Sun, 2 Mar 2014 00:20:00 +0000 (00:20 +0000)]
MFC r261068

Properly sort the arguments to mtx_init(9).

PR: misc/186020
Submitted by: alfred

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

10 years agoMFC r262472:
dim [Fri, 28 Feb 2014 20:31:07 +0000 (20:31 +0000)]
MFC r262472:

Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed.

Reviewed by: marius

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

10 years agoMFC r262471:
dim [Fri, 28 Feb 2014 20:22:48 +0000 (20:22 +0000)]
MFC r262471:

In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by
casting to the appropriate type.  (Note this fix cannot be done in
sys/sparc64/sparc64/spitfire.c, since that file is also included by
assembly source files.)

Reviewed by: marius

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

10 years agoMFC r262465:
kevlo [Fri, 28 Feb 2014 16:11:43 +0000 (16:11 +0000)]
MFC r262465:

Add a flag to run's device list which uses a standard scsi eject.
The flag indicates that the mcu doesn't need to load firmware.

Tested by: Alex Deiter <alex dot deiter at gmail.com>, myself
Tested on: ASUS USB-N66

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

10 years agoMFC r262142:
rodrigc [Fri, 28 Feb 2014 01:35:24 +0000 (01:35 +0000)]
MFC r262142:

   In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach().
   Before this patch, curvnet was NULL.
   When the VIMAGE kernel option is enabled, this eliminates
   kernel panics when USB ethernet devices are plugged in.

PR: 183835
Submitted by: Hiroo Oono <hiroo.ono at gmail dot com>

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

10 years agoMFC: r262296
brueffer [Fri, 28 Feb 2014 00:44:41 +0000 (00:44 +0000)]
MFC: r262296

Match the correct variable to the variable description.

PR: 121173
Submitted by: Thomas Mueller <tmueller at sysgo.com>

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

10 years agoMFC r257472
hiren [Thu, 27 Feb 2014 22:36:16 +0000 (22:36 +0000)]
MFC r257472

Rate limit (to once per minute) "Listen queue overflow" message in
sonewconn().

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

10 years agoMFC r262346:
pfg [Thu, 27 Feb 2014 16:07:12 +0000 (16:07 +0000)]
MFC r262346:
ext2fs: fully enable ext4 read-only support.

The ext4 developers tend to tag Ext4-specific flags as
"incompatible" even when such features are not relevant for
read-only support.  This is a consequence of the process
though which this filesystem is implemented without design
and the fact that some new features are not extensible to
ext2/3.

Organize the features according to what we support and sort
them so that we can now read-only mount filesystems with
some features that may be found in newly formatted ext4 fs.

Submitted by: Zheng Liu

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

10 years agoMFC r262277:
davidxu [Thu, 27 Feb 2014 02:41:41 +0000 (02:41 +0000)]
MFC r262277:

malloc_aligned() may not leave enough space for pointer to allocated memory,
saving the pointer will overwrite bytes belongs to another memory block
unexpectly, to fix the problem, use (allocated address + sizeof(void *)) as
initial value, and slip to next aligned address, so maximum extra bytes is
sizeof(void *) + align - 1.

Tested by: Andre Albsmeier < mail at ma17 dot ata dot myota dot orgndre >

MFC r262334:

Increase alignment to size of pointer if the alignment is too small.
Some modules do not align data at least to size of pointer, they uses a
smaller alignment, but our pointer should be aligned to its native
boundary, otherwise on some platforms, hardware alignment checking
will cause bus error.

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

10 years agoMFC: r261773
brueffer [Tue, 25 Feb 2014 07:57:17 +0000 (07:57 +0000)]
MFC: r261773

In acline_init(), initialize ac_line to SRC_UNKNOWN.  Previously
this could lead to the -n option effectively being ignored (in case
ac_line happened to be 0 aka SRC_AC), or other undefined behaviour.

PR: 169779
Submitted by: Alex Gonzalez <loox at e-shell.com>
Reviewed by: jhb

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

10 years agoMFC r262467: sh: Add -h option to SYNOPSIS
daichi [Tue, 25 Feb 2014 04:19:15 +0000 (04:19 +0000)]
MFC r262467: sh: Add -h option to SYNOPSIS

Reviewed by: jilles

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

10 years agoMFC r262310:
dim [Mon, 24 Feb 2014 21:22:44 +0000 (21:22 +0000)]
MFC r262310:

Move the part in bsd.own.mk that sets -Wno-c++11-extensions for clang to
bsd.sys.mk, where it really belongs.  This also causes the flag to get
added when clang is *not* the default system compiler, but is still
used, e.g. by setting WITH_CLANG_IS_CC manually.

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

10 years agoMFC r262125:
dim [Mon, 24 Feb 2014 20:29:39 +0000 (20:29 +0000)]
MFC r262125:

In sys/dev/usb/controller/uss820dci.c, similar to r261977, fix a warning
about uss820dci_odevd being unused, by adding it to the part that
handles getting descriptors.

Reported by: loos
Reviewed by: hselasky

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

10 years agoMFC r261774 by feld:
eadler [Mon, 24 Feb 2014 17:01:06 +0000 (17:01 +0000)]
MFC r261774 by feld:

Add caveat to zpool manpage indicating that we do not automatically activate
hot spares. This should be MFC'd to all STABLE branches.

Upon the availability of zfsd, the zpool manpage on relevant branches should
be updated to remove this caveat and document hot spare's reliance on zfsd.

Requested by: feld

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

10 years agoMFC: r261531
marius [Sun, 23 Feb 2014 21:08:48 +0000 (21:08 +0000)]
MFC: r261531

- Implement the RX EARLYOFF and RXDV GATED bits as done by RealTek's Linux
  driver as of version 8.037.00 for RTL8168{E-VL,EP,F,G,GU} and RTL8411B.
  This makes reception of packets work with the RTL8168G (HW rev. 0x4c000000)
  in my Shuttle DS47.
- Consistently use RL_MSI_MESSAGES.
In joint forces with: yongari

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

10 years agoMFC: r261529
marius [Sun, 23 Feb 2014 21:03:32 +0000 (21:03 +0000)]
MFC: r261529

Try to make the style used here consistent.

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

10 years agoMFC: r261549
brueffer [Sun, 23 Feb 2014 20:14:38 +0000 (20:14 +0000)]
MFC: r261549

Add a manpage for the urndis driver.

Obtained from: OpenBSD

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

10 years agoMFC r261872:
hselasky [Sun, 23 Feb 2014 13:37:45 +0000 (13:37 +0000)]
MFC r261872:
Fix minor logical error in the XHCI driver. Set correct SETUP packet
direction value.

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

10 years agoMFC r261827:
hselasky [Sun, 23 Feb 2014 13:31:39 +0000 (13:31 +0000)]
MFC r261827:
- Remove not needed definitions from driver.
- Get USB input report length from HID descriptor.
- Use 1 finger TAP for devices which has no integrated button.
- Move data buffer to softc instead of allocating it.

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

10 years agoMFC r261981:
hselasky [Sun, 23 Feb 2014 13:27:19 +0000 (13:27 +0000)]
MFC r261981:
Add new PCI ID for hardware which needs port routing for USB 3.0.

PR: usb/186811

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

10 years agoMFC r261541, r261543 and r261544:
hselasky [Sun, 23 Feb 2014 13:20:08 +0000 (13:20 +0000)]
MFC r261541, r261543 and r261544:
Import USB RNDIS driver to FreeBSD from OpenBSD.
Useful for so-called USB tethering.
- Imported code from OpenBSD
- Adapted code to FreeBSD
- Removed some unused functions
- Fixed some buffer encoding and decoding issues
- Optimised data transport path a bit, by sending multiple packets at a time
- Increased receive buffer to 16K

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

10 years agoMFC r261795:
hselasky [Sun, 23 Feb 2014 13:08:18 +0000 (13:08 +0000)]
MFC r261795:
Issue doorbell twice before finally freeing the DMA descriptors. This
should fix DMA descriptor caching issues seen with the EHCI controller
found in Google Chromebook C720 during removal and insertion of USB
devices.

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

10 years agoMFC r261620: MFV r261619:
delphij [Sat, 22 Feb 2014 01:13:48 +0000 (01:13 +0000)]
MFC r261620: MFV r261619:

4574 get_clones_stat does not call zap_count in non-debug kernel

zap_count(...) is never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always
reached.  This means get_clones_stat function never makes up list
of clones for "clones" properties.

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

10 years agoMFC r261618:
delphij [Sat, 22 Feb 2014 00:41:03 +0000 (00:41 +0000)]
MFC r261618:

In g_eli_crypto_hmac_init(), zero out after using the ipad buffer,
k_ipad.

Note that the two consumers in geli(4) are not affected by this
issue because the way the code is constructed and as such, we
believe there is no security impact with or without this change
with geli(4)'s usage.

Reported by: Serge van den Boom <serge vdboom.org>
Reviewed by: pjd

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

10 years agoMFC r261538:
mav [Fri, 21 Feb 2014 18:33:54 +0000 (18:33 +0000)]
MFC r261538:
Make CTL block backend return proper error code for operations unsupposed
by the underlying device.

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

10 years agoMFC: r261900
brueffer [Fri, 21 Feb 2014 09:26:51 +0000 (09:26 +0000)]
MFC: r261900

In chat_UpdateSet(), initialize the input buffer to prevent stale data
from previous timed out commands.

PR: 186530
Submitted by: Alexander Zagrebin <alexz at visp.ru>
Reviewed by: brian

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

10 years agoMFC: r261885
brueffer [Fri, 21 Feb 2014 09:21:02 +0000 (09:21 +0000)]
MFC: r261885

In sgetpwnam(), save and free pw_class like all other char members
of struct passwd.  This fixes spurious "login_getclass: unknown class"
errors.

PR: 186439
Submitted by: UEMURA Tetsuya <t_uemura at macome.co.jp>

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

10 years agoMFC r261835:
ae [Thu, 20 Feb 2014 21:02:24 +0000 (21:02 +0000)]
MFC r261835:
  Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by: Yandex LLC

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

10 years agoMFC: r261858
brueffer [Thu, 20 Feb 2014 08:58:05 +0000 (08:58 +0000)]
MFC: r261858

Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR: 146588
Submitted by: Erwin Rol <erwin at erwinrol.com>
Reviewed by: marcel

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

10 years agomake this code compile with NOINET
luigi [Thu, 20 Feb 2014 04:50:13 +0000 (04:50 +0000)]
make this code compile with NOINET

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

10 years agoMFC r257883:
eadler [Wed, 19 Feb 2014 19:46:44 +0000 (19:46 +0000)]
MFC r257883:

Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR: kern/182217

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

10 years agoMFC 261512,261514:
jhb [Wed, 19 Feb 2014 19:28:49 +0000 (19:28 +0000)]
MFC 261512,261514:
- Partially revert r52493 and change client side interval statistics to
  report the actual number of RPCs issued, not the theoretical number
  that would be issued if all caching was disabled.
- Use the DELTA() macro to tidy the server-side interval stats code a bit.

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

10 years agoMFC 261780:
jhb [Wed, 19 Feb 2014 19:11:14 +0000 (19:11 +0000)]
MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.

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

10 years agoMFC 261524,261526,261527:
jhb [Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)]
MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.

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

10 years agoMFC 250691:
jhb [Wed, 19 Feb 2014 15:00:55 +0000 (15:00 +0000)]
MFC 250691:
Return one-based key so that user can check if the key is ever allocated
in the first place.

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

10 years agoMFC r261977:
dim [Wed, 19 Feb 2014 08:05:42 +0000 (08:05 +0000)]
MFC r261977:

In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by: hselasky

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

10 years agoMFC r261916:
dim [Wed, 19 Feb 2014 07:59:50 +0000 (07:59 +0000)]
MFC r261916:

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

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

10 years agoMFC r261915:
dim [Wed, 19 Feb 2014 07:51:58 +0000 (07:51 +0000)]
MFC r261915:

Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.

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

10 years agoMFC 261517,261520:
jhb [Tue, 18 Feb 2014 20:27:17 +0000 (20:27 +0000)]
MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.

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

10 years agoMFC 261518:
jhb [Tue, 18 Feb 2014 20:16:32 +0000 (20:16 +0000)]
MFC 261518:
- Update a few places to account for va_copy().
- Create a separate 'return values' section and move some statements about
  return values to that section.
- Note that each invocation of va_start() and va_copy() must be paired with
  va_end() in the same function.

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

10 years agoMFC r259576: MFV r258923: 4188 assertion failed in dmu_tx_hold_free():
avg [Tue, 18 Feb 2014 15:45:02 +0000 (15:45 +0000)]
MFC r259576: MFV r258923: 4188 assertion failed in dmu_tx_hold_free():
dn_datablkshift != 0

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

10 years agoMFC r259052: Expose spa_asize_inflation
avg [Tue, 18 Feb 2014 15:38:43 +0000 (15:38 +0000)]
MFC r259052: Expose spa_asize_inflation

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

10 years agoMFC r258294: Fix ZFS deadlock when sending a snapshot which is mounted
avg [Tue, 18 Feb 2014 15:29:53 +0000 (15:29 +0000)]
MFC r258294: Fix ZFS deadlock when sending a snapshot which is mounted

MFC slacker: smh

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

10 years agoMFC r256889: Use the vdev's ashift to calculate the supported min block
avg [Tue, 18 Feb 2014 15:24:49 +0000 (15:24 +0000)]
MFC r256889: Use the vdev's ashift to calculate the supported min block
size passed to zio_compress_data

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

10 years agoMFC r254757: MFV r254749: 4046 dsl_dataset_t ds_dir->dd_lock is highly contended
avg [Tue, 18 Feb 2014 15:18:08 +0000 (15:18 +0000)]
MFC r254757: MFV r254749: 4046 dsl_dataset_t ds_dir->dd_lock is highly contended

MFC slacker: delphij

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

10 years agoMFC r254608: Add kstat entries for ZFS compression statistics
avg [Tue, 18 Feb 2014 15:07:24 +0000 (15:07 +0000)]
MFC r254608: Add kstat entries for ZFS compression statistics

MFC slacker: gibbs

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

10 years agoMFC r260236:
mav [Tue, 18 Feb 2014 14:58:37 +0000 (14:58 +0000)]
MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.

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

10 years agoMFC r259168:
mav [Tue, 18 Feb 2014 14:53:36 +0000 (14:53 +0000)]
MFC r259168:
Don't even try to read vdev labels from devices smaller then SPA_MINDEVSIZE
(64MB).  Even if we would find one somehow, ZFS kernel code rejects such
devices.  It is funny to look on attempts to read 4 256K vdev labels from
1.44MB floppy, though it is not very practical and quite slow.

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

10 years agoMFC: r258137
mav [Tue, 18 Feb 2014 14:50:31 +0000 (14:50 +0000)]
MFC: r258137
Introduce allocation cache to store LZ4 compression contexts without kicking
VM subsystem twice for every written record.

Tests on 24-core system show double reduction of CPU time spent on copying
single large well-compressed file.

This patch is not really needed on illumos (while not harm either) since
their memory allocator by default uses caching for all requests up to 128K.

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

10 years agoMFC r253992:
mav [Tue, 18 Feb 2014 14:46:39 +0000 (14:46 +0000)]
MFC r253992:
Disable r252840 when ZFS TRIM is enabled (vfs.zfs.trim.enabled=1) and really
disable TRIM otherwise.

r252840 (illumos bug 3836) is based on assumption that zio_free_sync() has
no lock dependencies and should complete immediately. Unfortunately, with our
TRIM implementation that is not true due to ZIO_STAGE_VDEV_IO_START added
to the ZIO_FREE_PIPELINE, which, while not really accessing devices, still
acquires SCL_ZIO lock for read to be sure devices won't disappear.

When TRIM is disabled, this patch enables direct free execution from r252840
and removes ZIO_STAGE_VDEV_IO_START and ZIO_STAGE_VDEV_IO_ASSESS stages from
the pipeline to avoid lock acquisition.  Otherwise it queues free request as
it was before r252840.

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

10 years agoMFC r253820: MFV r253782: 3888 zfs recv -F should destroy any snapshots
avg [Tue, 18 Feb 2014 14:11:04 +0000 (14:11 +0000)]
MFC r253820: MFV r253782: 3888 zfs recv -F should destroy any snapshots
created since the incremental source

MFC slacker: delphij

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

10 years agoMFC r253819: MFV r253781 + r253871: 3894 zfs should not allow snapshot of inconsisten...
avg [Tue, 18 Feb 2014 14:06:41 +0000 (14:06 +0000)]
MFC r253819: MFV r253781 + r253871: 3894 zfs should not allow snapshot of inconsistent dataset

MFC slacker: delphij

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

10 years agoMFC r250149: In case ZFS doesn't use UMA for buffers there's no need to waste memory
avg [Tue, 18 Feb 2014 13:58:55 +0000 (13:58 +0000)]
MFC r250149: In case ZFS doesn't use UMA for buffers there's no need to waste memory

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

10 years agoMFC r240829: remove cache entries associated with the source and the target of rename()
avg [Tue, 18 Feb 2014 13:48:50 +0000 (13:48 +0000)]
MFC r240829: remove cache entries associated with the source and the target of rename()

MFC slacker: pjd

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

10 years agoMFH: sync the netmap code with the one in HEAD
luigi [Tue, 18 Feb 2014 05:58:36 +0000 (05:58 +0000)]
MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.

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

10 years agoMFC r261895:
wblock [Tue, 18 Feb 2014 03:42:49 +0000 (03:42 +0000)]
MFC r261895:

Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>.  Add xref to
pam_passwdqc(8), where that testing is now done.

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

10 years agoMFC r261800:
wblock [Tue, 18 Feb 2014 03:37:20 +0000 (03:37 +0000)]
MFC r261800:

Remove obsolete vnode(9) man page references.

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

10 years agoMFC r258036:
markj [Mon, 17 Feb 2014 22:43:07 +0000 (22:43 +0000)]
MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)

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

10 years agoMFC 260926:
jhb [Mon, 17 Feb 2014 22:19:49 +0000 (22:19 +0000)]
MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.

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

10 years agoMFC r261903:
dim [Mon, 17 Feb 2014 20:37:15 +0000 (20:37 +0000)]
MFC r261903:

Disable warning about unused static const variables for sys/pci/ncr.c.

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

10 years agoMFC r261902:
dim [Mon, 17 Feb 2014 20:31:54 +0000 (20:31 +0000)]
MFC r261902:

In r260111, in sys/conf/files, I disabled warning about unused functions
for the wrong mcg.c, the one in ofed/drivers/infiniband/hw/mlx4.
Disable the warning for ofed/drivers/net/mlx4/mcg.c instead.

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

10 years agoMFC r261899:
dim [Mon, 17 Feb 2014 20:19:34 +0000 (20:19 +0000)]
MFC r261899:

Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.

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

10 years agoMFC r260486:
mav [Mon, 17 Feb 2014 20:06:09 +0000 (20:06 +0000)]
MFC r260486:
Remove very low default limit of 4 nfsd threads.  nfsd's own default is
8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days.

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

10 years agoMFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit...
avg [Mon, 17 Feb 2014 18:24:25 +0000 (18:24 +0000)]
MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390

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

10 years agoMFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done
avg [Mon, 17 Feb 2014 18:16:36 +0000 (18:16 +0000)]
MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done

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

10 years agoMFC r260703: zinject must use ioctl(2) compatibility wrapper
avg [Mon, 17 Feb 2014 18:06:37 +0000 (18:06 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper

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

10 years agoMFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
avg [Mon, 17 Feb 2014 18:00:02 +0000 (18:00 +0000)]
MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
zfs transaction

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

10 years agoMFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT
avg [Mon, 17 Feb 2014 17:51:59 +0000 (17:51 +0000)]
MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT

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

10 years agoMFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags
avg [Mon, 17 Feb 2014 17:48:50 +0000 (17:48 +0000)]
MFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags

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

10 years agoMFC r260703: zinject must use ioctl(2) compatibility wrapper
avg [Mon, 17 Feb 2014 17:46:25 +0000 (17:46 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper

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

10 years agoMFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
avg [Mon, 17 Feb 2014 17:43:13 +0000 (17:43 +0000)]
MFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
logical and a physical minimum allocation size for devices

Missed userland bits.

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

10 years agoMFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove
avg [Mon, 17 Feb 2014 17:28:06 +0000 (17:28 +0000)]
MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove

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

10 years agoMFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
avg [Mon, 17 Feb 2014 17:11:58 +0000 (17:11 +0000)]
MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
fine-grained control

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

10 years agoMFC r255750: MFV r254750: Add support of Illumos dumps on zvol over RAID-Z.
avg [Mon, 17 Feb 2014 17:00:46 +0000 (17:00 +0000)]
MFC r255750: MFV r254750: Add support of Illumos dumps on zvol over RAID-Z.

Note that this only adds the features.  FreeBSD would
still need more work to support dumping on zvols.

MFC slacker: delphij

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

10 years agoMFC r254112: MFV r254079: multiple ZFS issues
avg [Mon, 17 Feb 2014 16:47:58 +0000 (16:47 +0000)]
MFC r254112: MFV r254079: multiple ZFS issues

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

10 years agoMFC r254112: MFV r254079: multiple ZFS issues
avg [Mon, 17 Feb 2014 16:46:23 +0000 (16:46 +0000)]
MFC r254112: MFV r254079: multiple ZFS issues

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

10 years agoMFC r254077: MFV r254071: Fix a regression introduced by fix for Illumos bug #3834
avg [Mon, 17 Feb 2014 16:41:45 +0000 (16:41 +0000)]
MFC r254077: MFV r254071: Fix a regression introduced by fix for Illumos bug #3834

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

10 years agoMFC r252840: 3836 zio_free() can be processed immediately in the common case
avg [Mon, 17 Feb 2014 16:33:17 +0000 (16:33 +0000)]
MFC r252840: 3836 zio_free() can be processed immediately in the common case

MFC slacker: mm

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

10 years agoMFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
avg [Mon, 17 Feb 2014 16:30:18 +0000 (16:30 +0000)]
MFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
logical and a physical minimum allocation size for devices

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

10 years agoMFC r253441: Manually merge part of vendor import r238583 from Illumos
avg [Mon, 17 Feb 2014 16:17:56 +0000 (16:17 +0000)]
MFC r253441: Manually merge part of vendor import r238583 from Illumos

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

10 years agoMFC r261401:
bdrewery [Mon, 17 Feb 2014 16:07:58 +0000 (16:07 +0000)]
MFC r261401:

  Fix newsyslog(8) to use the size of the file instead of the blocks it
  takes on disk, as advertised in newsyslog.conf(5).

Approved by: bapt (mentor, implicit)

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

10 years agoMFC r255226: Add sysctl/tunables for various metaslab variables
avg [Mon, 17 Feb 2014 15:50:40 +0000 (15:50 +0000)]
MFC r255226: Add sysctl/tunables for various metaslab variables

MFC slacker: pjd

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

10 years agoMFC r258715: opensolaris compat: add taskq_wait emulation
avg [Mon, 17 Feb 2014 15:38:27 +0000 (15:38 +0000)]
MFC r258715: opensolaris compat: add taskq_wait emulation

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

10 years agoMFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
avg [Mon, 17 Feb 2014 15:35:24 +0000 (15:35 +0000)]
MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc

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

10 years agoMFC r258713,262062: add taskqueue_drain_all
avg [Mon, 17 Feb 2014 15:29:46 +0000 (15:29 +0000)]
MFC r258713,262062: add taskqueue_drain_all

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

10 years agoMFC r260051:
markj [Mon, 17 Feb 2014 14:52:06 +0000 (14:52 +0000)]
MFC r260051:
When clearing relocations to __dtrace* symbols, handle both SHT_REL and
SHT_RELA sections properly instead of assuming that the relocation section
is of type SHT_REL.

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

10 years agoMFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros
avg [Mon, 17 Feb 2014 14:48:23 +0000 (14:48 +0000)]
MFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros

Note: in head KDTRACE_HOOKS is defined in opt_global.h and thus there is
no need to explicitly include any header to check that option.
In this branch we have to include opt_kdtrace.h and, so, this commit
carries additional changes to accomodate for that difference.

Sponsored by: HybridCluster

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

10 years agoMFC r258622,258675: dtrace sdt: remove the ugly sname parameter of
avg [Mon, 17 Feb 2014 13:58:50 +0000 (13:58 +0000)]
MFC r258622,258675: dtrace sdt: remove the ugly sname parameter of
SDT_PROBE_DEFINE

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

10 years agoMFC r255971: Fix some typos that were causing probe argument types to
avg [Mon, 17 Feb 2014 13:53:01 +0000 (13:53 +0000)]
MFC r255971: Fix some typos that were causing probe argument types to
show up as unknown

MFC slacker: markj

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

10 years agoMFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
avg [Mon, 17 Feb 2014 13:36:57 +0000 (13:36 +0000)]
MFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
handlers are registered

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