]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
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

10 years agoMFC r256148: Initialize and free the DTrace taskqueue in the dtrace
avg [Mon, 17 Feb 2014 13:33:42 +0000 (13:33 +0000)]
MFC r256148: Initialize and free the DTrace taskqueue in the dtrace
module load/unload handlers

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

10 years agoMFC r252850: Hide references to mod_lock
avg [Mon, 17 Feb 2014 13:29:48 +0000 (13:29 +0000)]
MFC r252850: Hide references to mod_lock

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

10 years agoMFC r258291: change the ioctl definition so that the fasttrap ioctl
avg [Mon, 17 Feb 2014 13:11:27 +0000 (13:11 +0000)]
MFC r258291: change the ioctl definition so that the fasttrap ioctl
handler is responsible for copying in userland data

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

10 years agoMFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap
avg [Mon, 17 Feb 2014 13:08:07 +0000 (13:08 +0000)]
MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap

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

10 years agoMFC r257417: Remove references to an unused fasttrap probe hook
avg [Mon, 17 Feb 2014 12:57:53 +0000 (12:57 +0000)]
MFC r257417:  Remove references to an unused fasttrap probe hook

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

10 years agoMFC r257152: Do some cleanup of the SDT code
avg [Mon, 17 Feb 2014 12:48:19 +0000 (12:48 +0000)]
MFC r257152: Do some cleanup of the SDT code

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

10 years agoMFC r254813,259587: Rename the kld_unload event handler to kld_unload_try
avg [Mon, 17 Feb 2014 12:42:57 +0000 (12:42 +0000)]
MFC r254813,259587: Rename the kld_unload event handler to kld_unload_try

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

10 years agoMFC r254266,254309: Add event handlers for module load and unload events
avg [Mon, 17 Feb 2014 12:37:26 +0000 (12:37 +0000)]
MFC r254266,254309: Add event handlers for module load and unload events

This is just a merge of EVENTHANDLER.9, the actual code chnage was merged earlier.

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

10 years agoMFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push
avg [Mon, 17 Feb 2014 12:27:02 +0000 (12:27 +0000)]
MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push
%rbp" instruction

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

10 years agoMFC r255777: Omit "__restrict" when generating syscall argument strings
avg [Mon, 17 Feb 2014 12:24:05 +0000 (12:24 +0000)]
MFC r255777: Omit "__restrict" when generating syscall argument strings

syscall argument strings are also regenerated as part of this commit

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

10 years agoMFC r255776: Give argtype struct names a different prefix than probe
avg [Mon, 17 Feb 2014 12:14:50 +0000 (12:14 +0000)]
MFC r255776: Give argtype struct names a different prefix than probe
struct names

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

10 years agoMFC r254811: call linker_file_lookup_set() with the shared lock held
avg [Mon, 17 Feb 2014 12:12:32 +0000 (12:12 +0000)]
MFC r254811: call linker_file_lookup_set() with the shared lock held

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

10 years agoMFC r254810: Remove the kld lock macros and just use the sx(9) API
avg [Mon, 17 Feb 2014 11:44:58 +0000 (11:44 +0000)]
MFC r254810: Remove the kld lock macros and just use the sx(9) API

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

10 years agoMFC r254468,r254469: Add a "translated type" argument to SDT_PROBE_ARGTYPE()
avg [Mon, 17 Feb 2014 11:36:30 +0000 (11:36 +0000)]
MFC r254468,r254469: Add a "translated type" argument to SDT_PROBE_ARGTYPE()

Note: this breaks ABI compatibility with older modules with SDT probes.

My opinion is that benefits outweigh downsides, because I am not aware
of any thirdparty binary-only modules with SDT probes.

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

10 years agoMFC r253720: Use kern_ioctl() rather than ioctl() for testing the FBT provider
avg [Mon, 17 Feb 2014 11:28:16 +0000 (11:28 +0000)]
MFC r253720: Use kern_ioctl() rather than ioctl() for testing the FBT provider

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

10 years agoMFC r252895: Add a man page for the SDT_* macros
avg [Mon, 17 Feb 2014 11:22:59 +0000 (11:22 +0000)]
MFC r252895: Add a man page for the SDT_* macros

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

10 years agoMFC r261719:
mav [Mon, 17 Feb 2014 09:37:01 +0000 (09:37 +0000)]
MFC r261719:
Fix wrong device name in example.

PR:             docs/185602
Submitted by:   koitsu

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

10 years agoMFC r260043:
markj [Mon, 17 Feb 2014 05:07:09 +0000 (05:07 +0000)]
MFC r260043:
The arguments to sched:::off-cpu are the thread and associated process of
the thread selected to run, not the currently running thread.

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

10 years agoDirect commit to stable/9 to note that the nve(4) driver has been
brueffer [Sun, 16 Feb 2014 19:41:44 +0000 (19:41 +0000)]
Direct commit to stable/9 to note that the nve(4) driver has been
deprecated.

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

10 years agoMFC: r261838
brueffer [Sun, 16 Feb 2014 11:14:36 +0000 (11:14 +0000)]
MFC: r261838

Add a deprecation notice to nve.4 and Xref nfe.4.

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

10 years agoMFC: r261655
brueffer [Sun, 16 Feb 2014 10:28:18 +0000 (10:28 +0000)]
MFC: r261655

Refer newfs and growfs users to fsck_ffs instead of
fsck, the latter does not accept the referred to "-b" flag.

The part of the change pertaining newfs has already been merged
to stable/9 in r237505, so only record that part of the merge.

PR: 82720
Submitted by: David D.W. Downey

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

10 years agoMFC r242482: kdump: Also decode fcntl commands containing underscores and
jilles [Sat, 15 Feb 2014 23:23:13 +0000 (23:23 +0000)]
MFC r242482: kdump: Also decode fcntl commands containing underscores and
digits.

The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not
decoded.

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

10 years agoMFC r255238:
kevlo [Sat, 15 Feb 2014 14:55:35 +0000 (14:55 +0000)]
MFC r255238:

Add support for DLINK DWA-127 Wireless Adapter.

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