]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
10 years agoAdd Solaris's common/zfs to include search path.
delphij [Thu, 20 Mar 2014 00:46:25 +0000 (00:46 +0000)]
Add Solaris's common/zfs to include search path.

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

10 years agoMFC r260183:
delphij [Thu, 20 Mar 2014 00:38:46 +0000 (00:38 +0000)]
MFC r260183:

MFV r260154 + 260182:

4369 implement zfs bookmarks
4368 zfs send filesystems from readonly pools

Illumos/illumos-gate@78f171005391b928aaf1642b3206c534ed644332

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

10 years agoMFC r254755: MFV r254748:
delphij [Thu, 20 Mar 2014 00:32:26 +0000 (00:32 +0000)]
MFC r254755: MFV r254748:

Fix memory leak in libzfs's iter_dependents_cb().

Illumos ZFS issues:
  4061 libzfs: memory leak in iter_dependents_cb()

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

10 years agoMFC r259850: MFV r258384:
delphij [Thu, 20 Mar 2014 00:25:40 +0000 (00:25 +0000)]
MFC r259850: MFV r258384:

2583 Add -p (parsable) option to zfs list

illumos/illumos-gate@43d68d68c1ce08fb35026bebfb141af422e7082e

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

10 years agoMFC r256999 (smh):
delphij [Thu, 20 Mar 2014 00:14:45 +0000 (00:14 +0000)]
MFC r256999 (smh):

Added support for the 'zfs list -t snap' and 'zfs snap' aliases which are
available under Oracle Solaris 11.

This includes an update to the ZFS(8) man page to reflect all the
available alias (snap, umount, and recv).

Initial changes obtained from ZFS On Linux + fixes for man page and cmd
help:
https://github.com/zfsonlinux/zfs/commit/10b75496bb0cb7a7b8146c263164adc37f1d176a
https://github.com/zfsonlinux/zfs/commit/cf81b00a73fe47fdb21586ac1cc179b734540973

Obtained from:  https://github.com/zfsonlinux/zfs

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

10 years agoMFC r260181:
delphij [Thu, 20 Mar 2014 00:06:16 +0000 (00:06 +0000)]
MFC r260181:

Fix build on platforms where atomic_swap_64 is not available.

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

10 years agoMFC r260157: MFV r260153:
delphij [Thu, 20 Mar 2014 00:02:14 +0000 (00:02 +0000)]
MFC r260157: MFV r260153:

4121 vdev_label_init should treat request as succeeded when pool
     is read only

illumos/illumos-gate@973c78e94bf9634782164382c9e291bf81161fa5

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

10 years agoMFC r260150: MFV r259170:
delphij [Wed, 19 Mar 2014 23:58:05 +0000 (23:58 +0000)]
MFC r260150: MFV r259170:

4370 avoid transmitting holes during zfs send

4371 DMU code clean up

illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f

NOTE: Make sure the boot code is updated if a zpool upgrade is
done on boot zpool.

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

10 years agoMFC r260141: MFV r258385:
delphij [Wed, 19 Mar 2014 23:51:29 +0000 (23:51 +0000)]
MFC r260141: MFV r258385:

(Note: this change is not applicable to FreeBSD and the file
is not included in build.  It's integrated for completeness).

4128 disks in zpools never go away when pulled

illumos/illumos-gate@39cddb10a31c1c2e66aed69e6871d09caa4c8147

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

10 years agoMFC r260138: MFV r242733:
delphij [Wed, 19 Mar 2014 23:46:59 +0000 (23:46 +0000)]
MFC r260138: MFV r242733:

3306 zdb should be able to issue reads in parallel
3321 'zpool reopen' command should be documented in the man page
and help message

illumos/illumos-gate@31d7e8fa33fae995f558673adb22641b5aa8b6e1

FreeBSD porting notes: the kernel part of this changeset depends
on Solaris buf(9S) interfaces and are not really applicable for
our use.  vdev_disk.c is patched as-is to reduce diverge from
upstream, but vdev_file.c is left intact.

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

10 years agoMFC r259813 + r259816: MFV r258374:
delphij [Wed, 19 Mar 2014 23:40:08 +0000 (23:40 +0000)]
MFC r259813 + r259816: MFV r258374:

4171 clean up spa_feature_*() interfaces

4172 implement extensible_dataset feature for use by other zpool
features

illumos/illumos-gate@2acef22db7808606888f8f92715629ff3ba555b9

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

10 years agoMFC r259811: MFV r258373:
delphij [Wed, 19 Mar 2014 23:31:47 +0000 (23:31 +0000)]
MFC r259811: MFV r258373:

4168 ztest assertion failure in dbuf_undirty

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

illumos/illumos-gate@7fdd916c474ea52896c671bbe7b56ba34a1ca132

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

10 years agoMFC r254587: MFV r254421:
delphij [Wed, 19 Mar 2014 23:22:25 +0000 (23:22 +0000)]
MFC r254587: MFV r254421:

Illumos ZFS issues:
  3996 want a libzfs_core API to rollback to latest snapshot

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

10 years agoMake it possible to call VOP_PUTPAGES with shared vnode lock instead
delphij [Wed, 19 Mar 2014 19:33:55 +0000 (19:33 +0000)]
Make it possible to call  VOP_PUTPAGES with shared vnode lock instead
of insisting an exclusive lock.

When VFS_LOCK_DEBUG is enabled and when the underlying file system is
capable of MNT_SHARED_WRITES,  a failed assertion may lead to a panic
because when calling fsync(2),  a.k.a.  sys_fsync() over a vnode with
mmap'ed page,  it will grab a shared lock when underlying file system
is capable,  then call vm_object_page_clean that eventually proceeded
to  vnode_pager_putpages()   that  tries  to do  VOP_PUTPAGES,  where
VOP_PUTPAGES_APV  generated from the declaration asserts the vnode is
always exclusively locked by caller.

This is a direct commit to stable/8 because a majority portion of the
original changeset 257899 (kib), which main goal was an optimization,
was omitted.   We saw the panic independently in a FreeNAS bug ticket
(#4578).

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

10 years agoMFC r257847, r260243: Update aacraid to version 3.2.5.
achim [Wed, 19 Mar 2014 10:20:13 +0000 (10:20 +0000)]
MFC r257847, r260243: Update aacraid to version 3.2.5.

Approved by: emaste (co-mentor)

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

10 years agoMFC r263021:
bdrewery [Wed, 19 Mar 2014 00:55:12 +0000 (00:55 +0000)]
MFC r263021:

  Support Last-Modified behind proxies which return UTC instead of GMT.

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

10 years agoMFC r249562:
delphij [Tue, 18 Mar 2014 20:05:55 +0000 (20:05 +0000)]
MFC r249562:

Fix incomplete printf.

PR: kern/177889
Submitted by: Sven-Thorsten Dietrich <sven vyatta com>

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

10 years agoMFC r249559:
delphij [Tue, 18 Mar 2014 20:01:46 +0000 (20:01 +0000)]
MFC r249559:

Don't leak lock when returning.

PR:  kern/177888
Submitted by: Sven-Thorsten Dietrich <sven vyatta com>

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

10 years agoIncrement fi_wgen before awakening threads polling the read socket of a
jhb [Tue, 18 Mar 2014 17:17:42 +0000 (17:17 +0000)]
Increment fi_wgen before awakening threads polling the read socket of a
FIFO.  Previously, a thread sleeping in poll() could be awakened and
re-poll the FIFO with the old value of fi_wgen (and thus improperly
setting POLLINIGNEOF) before a thread closing a writable fifo descriptor
bumped fi_wgen.  The end result was that the reading thread in poll()
would never see POLLHUP but could block forever (or until a timeout).

This is a direct commit to 8 and 9 since the FIFO code is implemented
differently in 10.x and later.  The pipe-backed FIFOs in 10 do not have
this bug.

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

10 years agoMFC r262676:
delphij [Mon, 17 Mar 2014 19:09:39 +0000 (19:09 +0000)]
MFC r262676:

All callers of static method load_nvlist() in spa.c handles error case,
so there is no reason to assert that we won't hit an error.  Instead,
just return that error to caller and have the upper layer handle it.

Obtained from: FreeNAS
Reported by: rodrigc
Reviewed by: Matthew Ahrens

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

10 years agoMFC r227751, r238766, r241553, r242748, r244047, r245947, r246021, r247255,
hselasky [Fri, 14 Mar 2014 10:30:17 +0000 (10:30 +0000)]
MFC r227751, r238766, r241553, r242748, r244047, r245947, r246021, r247255,
    r249039, r249204, r250848, r251351, r252295, r252498, r255123, r255238,
    r256782, r257132, r257390 and r259675:
- Add various new USB ID's and quirks.
- Make sure the usbdevs mergeinfo gets recorded on the sys directory.

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

10 years agoMFC r262886:
mav [Fri, 14 Mar 2014 07:58:11 +0000 (07:58 +0000)]
MFC r262886:
Fix support for increased logical sector size (4K-native drives).

- Logical sector size is measured in words, not bytes.
- If physical sector is not bigger then logical sector, it does not mean
it should be set equal to 512 bytes, but set to logical sector.

PR:             misc/187269
Submitted by:   Ravi Pokala <rpokala@panasas.com>

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

10 years agoMFC r262577: MFV r262570:
delphij [Fri, 14 Mar 2014 01:10:54 +0000 (01:10 +0000)]
MFC r262577: MFV r262570:

4626 libzfs memleak in zpool_in_use()

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

10 years agoMFC r262572:
delphij [Fri, 14 Mar 2014 01:05:32 +0000 (01:05 +0000)]
MFC r262572:

Get rid of the 'chan' from softc structure and use the latter
directly as sleep channel.

PR: kern/174684
Submitted by: jmg

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

10 years agoMFC r262220:
bdrewery [Thu, 13 Mar 2014 01:16:51 +0000 (01:16 +0000)]
MFC r262220:

  Add missing Save Cursor support for VT520

PR: conf/174937

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

10 years agoMFC r262417, r262439, r262454, r262455 and r262478:
hselasky [Wed, 12 Mar 2014 08:04:08 +0000 (08:04 +0000)]
MFC r262417, r262439, r262454, r262455 and r262478:
- Several updates and improvements to ATP driver.
- Start effort merging WSP and ATP driver.

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

10 years agoMFC
hselasky [Wed, 12 Mar 2014 08:00:20 +0000 (08:00 +0000)]
MFC
Sync usbdevs file to head branch.

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

10 years agoMFC of 263041, tzdata2014a:
edwin [Tue, 11 Mar 2014 20:35:24 +0000 (20:35 +0000)]
MFC of 263041, tzdata2014a:

- Fix historical info about asia/Zion, Ukraine
- Fiji starts DST at 02:00 instead of 03:00
- Turkey will move to DST at 31 March this year.

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

10 years agoMFC: r262746, r262748, r262750, r262752
jkim [Mon, 10 Mar 2014 20:47:24 +0000 (20:47 +0000)]
MFC: r262746, r262748, r262750, r262752

Move fpusave() wrapper for suspend hander to sys/amd64/amd64/fpu.c.

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

10 years agoMFC: r262333
brueffer [Sat, 8 Mar 2014 12:26:17 +0000 (12:26 +0000)]
MFC: r262333

Simplify the way the end of a singly linked list is followed (for adding
items), so it is more obvious that we aren't going to indirect through
a NULL pointer.

PR:             144723
Submitted by:   Garrett Cooper <yaneurabeya at gmail.com>
Obtained from:  NetBSD r1.19

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

10 years agoMFC: r253983-253984
erwin [Mon, 3 Mar 2014 09:57:04 +0000 (09:57 +0000)]
MFC: r253983-253984
MFV: r262443

Update BIND to 9.8.7

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/8@262707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Add tws(4) to the hardware notes.

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

10 years agoMFC: r262296
brueffer [Fri, 28 Feb 2014 00:45:55 +0000 (00:45 +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/8@262590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r261773
brueffer [Tue, 25 Feb 2014 07:59:33 +0000 (07:59 +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/8@262476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261774 by feld:
eadler [Mon, 24 Feb 2014 17:03:02 +0000 (17:03 +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/8@262450 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261872:
hselasky [Sun, 23 Feb 2014 13:39:15 +0000 (13:39 +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/8@262372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261981:
hselasky [Sun, 23 Feb 2014 13:28:37 +0000 (13:28 +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/8@262366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r261795:
hselasky [Sun, 23 Feb 2014 13:13:59 +0000 (13:13 +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/8@262361 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/8@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/8@262319 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r261900
brueffer [Fri, 21 Feb 2014 09:27:48 +0000 (09:27 +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/8@262289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r261885
brueffer [Fri, 21 Feb 2014 09:22:37 +0000 (09:22 +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/8@262286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r261858
brueffer [Thu, 20 Feb 2014 09:00:13 +0000 (09:00 +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/8@262241 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r257883:
eadler [Wed, 19 Feb 2014 19:47:08 +0000 (19:47 +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/8@262232 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/8@262229 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 261524:
jhb [Wed, 19 Feb 2014 18:35:22 +0000 (18:35 +0000)]
MFC 261524:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@262226 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/8@262221 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/8@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:15 +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/8@262181 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262178 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:30:11 +0000 (15:30 +0000)]
MFC r258294: Fix ZFS deadlock when sending a snapshot which is mounted

git-svn-id: svn://svn.freebsd.org/base/stable/8@262176 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:59 +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/8@262174 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262169 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:19 +0000 (14:11 +0000)]
MFC r253820: MFV r253782: 3888 zfs recv -F should destroy any snapshots
created since the incremental source

git-svn-id: svn://svn.freebsd.org/base/stable/8@262161 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:59 +0000 (14:06 +0000)]
MFC r253819: MFV r253781 + r253871: 3894 zfs should not allow snapshot of inconsistent dataset

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

10 years agoMFC r250149: In case ZFS doesn't use UMA for buffers there's no need to
avg [Tue, 18 Feb 2014 13:59:06 +0000 (13:59 +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/8@262157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

10 years agoMFC r260185: MFV r260155: 4391 panic system rather than corrupting pool
avg [Mon, 17 Feb 2014 18:24:37 +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/8@262119 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r260835: MFV r260834: Fix memory leak of compressed buffers in
avg [Mon, 17 Feb 2014 18:16:50 +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/8@262117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262109 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:49:03 +0000 (17:49 +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/8@262106 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262103 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:42:33 +0000 (17:42 +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/8@262099 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:19 +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/8@262098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262095 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:01:41 +0000 (17:01 +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/8@262090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262088 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:58 +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/8@262085 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:42 +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/8@262083 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:01 +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

Note: on this branch the commit is adjusted for absence of U64
type support in sysctl infrastructure.

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

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

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

10 years agoMFC r261401:
bdrewery [Mon, 17 Feb 2014 16:18:04 +0000 (16:18 +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/8@262078 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

MFC slacker: pjd

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@262072 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:36 +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/8@262069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

10 years agoMFC r214019: Update links for taskqueue(9) functions
avg [Mon, 17 Feb 2014 15:20:03 +0000 (15:20 +0000)]
MFC r214019: Update links for taskqueue(9) functions

git-svn-id: svn://svn.freebsd.org/base/stable/8@262062 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:27 +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/8@262024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

10 years agoMFC r249514 (by gnn):
markj [Mon, 17 Feb 2014 05:06:43 +0000 (05:06 +0000)]
MFC r249514 (by gnn):
Point args[0] not at the thread that is ending but at the one that
is starting.  This is in line with practice in OpenSolaris.

Note that this change is only in ULE and not in the 4BSD scheduler.
Once this change settles in (MFC timeout has expired) we'll try it out
on 4BSD as well.

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/8@262012 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

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

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

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

10 years agoMFC: r261584
brueffer [Fri, 14 Feb 2014 08:26:05 +0000 (08:26 +0000)]
MFC: r261584

In IPv6 code examples, use the correct v6 socket.

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

10 years agoMFC r257600:
markj [Thu, 13 Feb 2014 04:55:46 +0000 (04:55 +0000)]
MFC r257600:
Initialize the struct tm before handing it to strptime(3).

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

10 years agoMFC r256557 - kernel and userland osreldate helpers.
peter [Tue, 11 Feb 2014 17:07:28 +0000 (17:07 +0000)]
MFC r256557 - kernel and userland osreldate helpers.

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

10 years agoMFC r244535, r245995, r261505 and r258961:
hselasky [Fri, 7 Feb 2014 07:34:47 +0000 (07:34 +0000)]
MFC r244535, r245995, r261505 and r258961:
- Use a boundary of zero, hence a PAGE_SIZE boundary
is implied by all memory allocations.
- Fix an external compiler warning about write-only
assigned variable.

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

10 years agoMFC: r233049 by rmh
brueffer [Thu, 6 Feb 2014 07:59:05 +0000 (07:59 +0000)]
MFC: r233049 by rmh

Remove gratuitous DEBUG_FLAGS="-g" setting (this is already the default
option with GENERIC kernels).

PR: 179536
Submitted by: Alexey Markov

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

10 years agoMFC r260315:
hselasky [Tue, 4 Feb 2014 10:25:31 +0000 (10:25 +0000)]
MFC r260315:
Implement two new libusb API functions.

PR: usb/185454

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

10 years agoMFC r261228:
hselasky [Tue, 4 Feb 2014 09:03:14 +0000 (09:03 +0000)]
MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.

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

10 years agoMFC r261224:
hselasky [Tue, 4 Feb 2014 08:58:12 +0000 (08:58 +0000)]
MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

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

10 years agoMFC r261004, r261005 and r261033:
hselasky [Tue, 4 Feb 2014 08:52:08 +0000 (08:52 +0000)]
MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.

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

10 years agoMFC r261123:
hselasky [Tue, 4 Feb 2014 08:49:56 +0000 (08:49 +0000)]
MFC r261123:
Reduce dmesg verbosity.

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

10 years agoMFC: Note merge of sendmail 8.14.8.
gshapiro [Sun, 2 Feb 2014 00:08:52 +0000 (00:08 +0000)]
MFC: Note merge of sendmail 8.14.8.

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

10 years agoMFC: Minor changes to force commit these files so new freebsd*.cf files are
gshapiro [Sun, 2 Feb 2014 00:08:28 +0000 (00:08 +0000)]
MFC: Minor changes to force commit these files so new freebsd*.cf files are
     built to use the new sendmail-8.14.8/cf tree.

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

10 years agoMFC: Add missing svn:keywords property to new files
gshapiro [Sun, 2 Feb 2014 00:07:55 +0000 (00:07 +0000)]
MFC: Add missing svn:keywords property to new files

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

10 years agoMFC: Update for sendmail 8.14.8 import
gshapiro [Sun, 2 Feb 2014 00:07:16 +0000 (00:07 +0000)]
MFC: Update for sendmail 8.14.8 import

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