| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
This makes it easier to see TX and RX buffer latencies.
|
| | |
|
| |
| |
| |
| |
| |
| | |
already, so uncomment them.
Sponsored by: The FreeBSD Foundation
|
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
|
| |
| |
| |
| |
| |
| |
| |
| | |
There are uncommon cases where fts_safe_changedir() may be called with a
non-NULL name that is not "..". Do not block or worse if an attacker put (a
(symlink to) a fifo or device where a directory used to be.
MFC after: 1 week
|
| |
| |
| |
| |
| |
| |
| | |
done by the call to trans_prot() function a line before.
Discussed with: Oliver Pinter <oliver.pntr@gmail.com>
MFC after: 1 week
|
| |
| |
| |
| |
| |
| | |
consistently. While there, make variable names consistent.
MFC after: 3 days
|
| |
| |
| |
| |
| | |
Submitted by: Christoph Mallon
MFC after: 2 weeks
|
| |
| |
| |
| | |
This allows bar sizes greater than or equal to 4GB to be displayed correctly.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Import vendor bugfixes
Illumos ZFS issues:
3422 zpool create/syseventd race yield non-importable pool
3425 first write to a new zvol can fail with EFBIG
References:
https://www.illumos.org/issues/3422
https://www.illumos.org/issues/3425
MFC after: 2 weeks
|
| |
| |
| |
| |
| | |
Tested by: dchagin
MFC after: 1 week
|
| |
| |
| |
| | |
MFC after: 3 days
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fts(3) can run (albeit more slowly and imposing the {PATH_MAX} limit) when
the current directory cannot be opened. Therefore, do not make a failure to
open the current directory (for returning to it later in -exec) fatal.
If -execdir or -delete are used, the expectation is that fts(3) will use
chdir to avoid race conditions (except for -execdir with -L). Do not break
this expectation any more than it already is by still failing if the current
directory cannot be opened.
|
| |
| |
| |
| |
| |
| | |
string by undefining __DATE__, since (unlike gcc) clang doesn't allow us
to do that. Instead, define NO_VERSION_DATE, which was helpfully added
to the named source code for exactly this purpose.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Illumos ZFS issues:
3380 zfs man page: documentation for zfs allow is confusing
References:
https://www.illumos.org/issues/3380
MFC after: 2 weeks
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Noticed by: Nathan Rich <Nathan.Rich dynastysystems com>
MFC after: 3 days
|
| |
| |
| |
| |
| |
| |
| | |
This is inefficient but ensures that -execdir ... {} + does not mix files
from different directories in one invocation; the command could not access
some files. Files from the same directory should really be handled in one
invocation but this is somewhat more complicated.
|
| |
| |
| |
| | |
MFC after: 3 days
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
so that simultaneous access cannot happen. Protect scratch area using
the enumeration lock. Also reduce stack usage in usbd_transfer_setup()
by moving some big stack members to the scratch area. This saves around
200 bytes of stack.
- Fix a whitespace.
MFC after: 1 week
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
freed memory cannot be used during detach.
- Remove all panic() calls from the urtw driver because
panic() is not appropriate here.
- Remove redundant checks for device detached in
device detach callbacks.
- Use DEVMETHOD_END to mark end of device methods.
MFC after: 2 weeks
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
function, implementing the sysctl vfs.ffs.set_bufoutput (not used in
the tree yet).
- The current directory vnode dereference is unsafe since fd_cdir
could be changed and unreferenced, lock the filedesc around and vref
the fd_cdir.
- The VTOI() conversion of the fd_cdir is unsafe without first
checking that the vnode is indeed from an FFS mount, otherwise
the code dereferences a random memory.
- The cdir could be reclaimed from under us, lock it around the
checks.
- The type of the fp vnode might be not a disk, or it might have
changed while the thread was in flight, check the type.
Reviewed and tested by: mckusick
MFC after: 2 weeks
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
tmpfs_mapped{read, write}() functions:
- tmpfs_mapped{read, write}() are only called within VOP_{READ, WRITE}(),
which check before-hand to work only on valid VREG vnodes. Also the
vnode is locked for the duration of the work, making vnode reclaiming
impossible, during the operation. Hence, vobj can never be NULL.
- Currently check on resident pages and cached pages without vm object
lock held is racy and can do even more harm than good, as a page could
be transitioning between these 2 pools and then be skipped entirely.
Skip the checks as lookups on empty splay trees are very cheap.
Discussed with: alc
Tested by: flo
MFC after: 2 weeks
|
| |
| |
| |
| |
| |
| |
| | |
the BOOTSTRAPPING variable. The previous test was wrong because
BOOTSTRAPPING is 0 in most cases.
Tested by: db
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
only the supported address types. While there, do some whitespace
cleanups.
MFC after: 1 week
|
| |
| |
| |
| |
| |
| |
| |
| | |
program.
PR: docs/173664
Submitted by: wkoszek
Approved by: bcr (mentor)
|
| |
| |
| |
| |
| |
| | |
PR: docs/174966
Submitted by: Christian Ullrich <chris+freebsd@chrullrich.net>
Approved by: bcr (mentor)
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
SHUTDOWN_ACK_SENT state. While there, make the corresponding
code consistent.
MFC after: 1 week
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Illumos zfs issue #3035 [1] LZ4 compression support in ZFS.
LZ4 is a new high-speed BSD-licensed compression algorithm created
by Yann Collet that delivers very high compression and decompression
performance compared to lzjb (>50% faster on compression, >80% faster
on decompression and around 3x faster on compression of incompressible
data), while giving better compression ratio [1].
This version of LZ4 corresponds to upstream's [2] revision 85.
Please note that for obvious reasons this is not backward read
compatible. This means once a pool have LZ4 compressed data, these
data can no longer be read by older ZFS implementations.
Local changes:
- On-stack hash table disabled and using kernel slab allocator
instead, at this time. This requires larger kernel thread stack
for zio workers. This may change in the future should we adjusted
the zio workers' thread stack size.
- likely and unlikely will be undefined if they are already defined,
this is required for i386 XEN build.
- Removed De Bruijn sequence based __builtin_ctz family of builtins
in favor of the latter. Both GCC and clang supports these builtins.
- Changed the way the LZ4 code detects endianness.
- Manual pages modifications to mention the feature based on Illumos
counterpart.
- Boot loader changes to make it support LZ4 decompression.
[1] https://www.illumos.org/issues/3035
[2] http://code.google.com/p/lz4/source/list
Obtained from: Illumos (13921:9d721847e469)
Tested on: FreeBSD/amd64
MFC after: 1 month
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13921:9d721847e469
(illumos zfs issue #3035 LZ4 compression support in ZFS and GRUB)
|
| | |
| | |
| | |
| | |
| | | |
13910:f3454e0a097c
(illumos zfs issue #3447: improve the comment in txg.c)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13889:a67716f16746
(illumos zfs issue #3254)
|
| | |
| | |
| | |
| | | |
(bugix for illumos zfs issue #3236)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13887:196932ec9e6a
(illumos zfs issue #3236)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13886:e3261d03efbf
(illumos zfs issue #3349)
|
| | |
| | |
| | |
| | | |
(illumos ZFS issues #3329, #3330, #3331, #3335)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13871:a9c12c2c1647
(zfs changes, illumos issues #3306, #3321)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13869:921a99998bb4
(illumos ZFS issue #3246 ZFS I/O deadman thread)
Note: illumos disables deadman logic by default on vmware and sparc
|
| | |
| | |
| | |
| | | |
(no FreeBSD-relevant changes - illumos issue #3301)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13849:3468a95b27cd
(illumos ZFS issues #3145, #3212, #3258)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13836:37bf491c434c
(illumos ZFS issues #2678, #2811, #3139, #3189, #3208)
|
| | |
| | |
| | |
| | |
| | | |
to illumos-gate 13805:e3a9ae14a119
(zfs changes, illumos issues #1884, #3006)
|