Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge with upstream #3

Merged
merged 135 commits into from
Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
4a21ec0
ZTS: Fix non-portable date format
Apr 6, 2020
2a15c6a
libzfs_pool: Remove unused check for ENOTBLK
spaghetti- Apr 7, 2020
7e3df9d
Finish refactoring for ZFS_MODULE_PARAM_CALL
Apr 7, 2020
01c4f2b
Use vn_io_fault_uiomove on FreeBSD to avoid potential deadlock
mattmacy Apr 8, 2020
68dde63
Linux 5.7 compat: blk_alloc_queue()
behlendorf Apr 9, 2020
8b27e08
Add separate field for indicating that spa is in middle of split
mattmacy Apr 9, 2020
36a6e23
Don't ignore zfs_arc_max below allmem/32
Apr 9, 2020
77f6826
Persistent L2ARC
gamanakis Apr 10, 2020
c618f87
Add `zstream redup` command to convert deduplicated send streams
ahrens Apr 10, 2020
8080848
Minor `zstream redup` command fixes
behlendorf Apr 11, 2020
20f2878
zvol_write() can use dmu_tx_hold_write_by_dnode()
ahrens Apr 11, 2020
c602b35
ZTS: Fix and change testcase cache_010_neg
spaghetti- Apr 13, 2020
791e480
Disable user space reference tracking
behlendorf Apr 13, 2020
75c6201
Fix allocation errors, detected using ASAN
dioni21 Apr 13, 2020
9f0a21e
Add FreeBSD support to OpenZFS
mattmacy Apr 14, 2020
6b1139e
sys/mnttab.h: include sys/stat.h for stat64
alaviss Apr 14, 2020
813c856
Fix SC2086 note in zpool.d/smart
Apr 14, 2020
af99094
Don't delete freebsd.run in distclean
Apr 15, 2020
a7929f3
Update FreeBSD tunables
Apr 15, 2020
9249f12
Persistent L2ARC minor fixes
gamanakis Apr 17, 2020
c614fd6
Use new FreeBSD API to largely eliminate object locking
mattmacy Apr 17, 2020
1f043c8
Fix zfs send progress reporting
ahrens Apr 20, 2020
a84c92f
Don't attempt trimming "hole" vdevs
haasn Apr 21, 2020
32d805c
Use a struct to organize metaslab-group-allocator fields
ahrens Apr 22, 2020
70e5ad3
Fix more leaks detected by ASAN
dioni21 Apr 22, 2020
196bee4
Remove deduplicated send/receive code
ahrens Apr 23, 2020
5d4ed96
change libspl list member names to match kernel
ahrens Apr 23, 2020
6de3e59
Fix unitialized variable in `zstream redup` command
behlendorf Apr 23, 2020
aa64632
Fix missing ivset guid with resumed raw base recv
Apr 25, 2020
47c9299
zfs_create: round up volume size to multiple of bs
spaghetti- Apr 25, 2020
a808518
Fix zlib leak on FreeBSD
Apr 28, 2020
fa25460
Add missing zfs_refcount_destroy() in key_mapping_rele()
gamanakis Apr 28, 2020
89a6610
Add more sanity testing for zdb input args
Apr 28, 2020
c14ca14
Support custom URI schemes for the keylocation property
jasonbking Apr 28, 2020
ab16c87
Add longjmp support for Thumb-2
behlendorf Apr 30, 2020
d7d4678
Fix regression caused by c14ca14
adamdmoss Apr 30, 2020
a1af567
OpenZFS 742 - Resurrect the ZFS "aclmode" property OpenZFS 664 - Umas…
pbhenson Dec 5, 2019
7bf3e1f
OpenZFS 3254 - add support in zfs for aclmode=restricted
pbhenson Dec 5, 2019
5a2f527
OpenZFS 6764 - zfs issues with inheritance flags during chmod(2)
pbhenson Dec 5, 2019
99495ba
OpenZFS 8984 - fix for 6764 breaks ACL inheritance
pbhenson Dec 5, 2019
235a856
OpenZFS 6762 - POSIX write should imply DELETE_CHILD on directories
pbhenson Dec 6, 2019
0aeb0be
OpenZFS 6765 - zfs_zaccess_delete() comments do not accurately
pbhenson Dec 6, 2019
154e48e
zdb: Fix ignored zfs_arc_max tuning
May 1, 2020
6ed4391
ZTS: Count CKSUM for all vdevs in verify_pool
May 1, 2020
639dfeb
Update FreeBSD SPL atomics
May 4, 2020
6f3e1a4
Avoid the GEOM topology lock recursion when autoexpanding a pool
May 4, 2020
3e5d41d
config/kernel-inode-times: initialize timespec
alaviss May 4, 2020
ddc7a2d
taskq: Don't leak system_delay_taskq on FreeBSD
May 5, 2020
1b66495
Enable splitting mirrors with indirect vdevs
gamanakis May 6, 2020
a36bad1
Fix column width calculation issue with certain terminal widths
ppokorny May 7, 2020
108a454
Add support for boot environment data to be stored in the label
pcd1193182 May 7, 2020
657fd33
Improvements on persistent L2ARC
gamanakis May 7, 2020
4cfd339
Cleanup contrib/initramfs automake
rlaager May 2, 2020
746d22e
Rework README.initramfs.markdown
rlaager May 2, 2020
1cc635a
Unlock encrypted root partition over SSH
terem42 May 3, 2020
d775c86
ZTS: refreserv_005_pos.ksh
behlendorf May 8, 2020
bd95f00
Fixed LDADD library links in Makefiles for cross compilation builds
pkoutoupis May 9, 2020
fc551d7
Combine OS-independent ABD Code into Common Source File
bwatkinson May 10, 2020
7fcf824
Change zfsunlock for better busybox compatibility
rlaager May 10, 2020
2b21da4
Fix inconsistent capitalization in `arcstat -v`
strugee May 7, 2020
ac806a2
Import the arcstat(1m) manpage from illumos
strugee May 4, 2020
5a04b17
Fix up arcstat(1) to match our version
strugee May 4, 2020
b29e31d
Fix outdated comment header
strugee May 4, 2020
41035a0
Resilver restarts unnecessarily when it encounters errors
jwpoduska May 13, 2020
e1fcd94
ZTS: zpool_split_indirect deletes zfstest log file
jwk404 May 14, 2020
c87f958
flake8 E741 variable name warning
behlendorf May 14, 2020
8b240f1
remove unneeded member drc_err of dmu_recv_cookie_t
ahrens May 14, 2020
eeb8fae
Upstream: add missing thread_exit()
lundman May 14, 2020
2ade659
Fix abd_enter/exit_critical wrappers
behlendorf May 15, 2020
cdcce2f
Fix VN_OPEN_INVFS typo
yparitcher May 15, 2020
1b9cd1a
Fix error handling in receive_writer_thread()
ahrens May 15, 2020
4d6043f
RPM: Remove old versions of DKMS on upgrade
ColMelvin May 15, 2020
d2782af
Fix ZVOL_DIR
May 16, 2020
5b090d5
freebsd: return EISDIR for read(2) on directories
kevans91 May 16, 2020
7cd723e
Fix gcc 10.1 stringop-truncation error
gamanakis May 19, 2020
7b0e390
freebsd: Correct the order of arguments to copyin() for Q_SETQUOTA
May 19, 2020
de4f06c
Small program that converts a dataset id and an object id to a path
pcd1193182 May 20, 2020
57434ab
Use boot_ncpus in place of max_ncpus in taskq_create
DeHackEd May 20, 2020
501a151
mount: use the mount syscall directly
felixdoerre May 21, 2020
fb82226
Gang ABD Type
bwatkinson May 21, 2020
c946d5a
ZTS: Fix zfs_mount.kshlib cleanup
behlendorf May 24, 2020
ce98ed2
Fix dead links http://list.zfsonlinux.org
mschilli87 May 26, 2020
d1b84da
Revert "Let zfs mount all tolerate in-progress mounts"
behlendorf May 26, 2020
70a5fc0
Memory leak in dsl_destroy_snapshots_nvl error case
lundman May 26, 2020
4f8b235
ZTS: Retry export/destroy when busy in zpool_import_012
May 28, 2020
40f96f4
etc/zfs/Makefile.am: set initconfdir
gyakovlev May 28, 2020
50ff632
Rework error handling in zpool_trim()
May 28, 2020
6059f3a
Correctly handle the x32 ABI
nabijaczleweli May 17, 2020
a1ba120
Always use "%lld" for formatting time_ts
nabijaczleweli May 21, 2020
4d829ad
Update zfs-functions.in
allen-4 May 29, 2020
3d93161
ztest: Fix ztest_run_zdb() failure
behlendorf May 30, 2020
9052e3d
Add bootfs.snapshot and bootfs.rollback kernel parameters
gregory-lee-bartholomew May 30, 2020
3bf3b16
Fix crypto build on FreeBSD HEAD
mattmacy May 30, 2020
081de9a
Restore avl_update() calls and related functions
lundman Jun 3, 2020
a9dcfac
Periodically update ARC kstats
Jun 3, 2020
c0eb5c3
FreeBSD: Simplify zvol and fix locking
Jun 3, 2020
7da304b
zfsvfs_setup(): zap_stats_t may have undefined content when accessed
Jun 3, 2020
52998c7
Update wiki links with new address
gmelikov Jun 4, 2020
99b281f
Fix double mutex_init bug in send code
pcd1193182 Jun 4, 2020
4547fc4
Connect dataset_kstats for FreeBSD
allanjude Jun 6, 2020
63761a8
zfsvfs_setup(): zap_stats_t may have undefined content when accessed …
behlendorf Jun 6, 2020
13dd63f
mkfile: include missing headers
alaviss Jun 6, 2020
c1f3de1
ztest: Fix spa_open() ENOENT failures
behlendorf Jun 6, 2020
6026507
Improve compatibility with C++ consumers
Jun 6, 2020
c9e319f
Replace sprintf()->snprintf() and strcpy()->strlcpy()
lundman Jun 7, 2020
b2f3709
Don't erase final byte of envblock
pcd1193182 Jun 8, 2020
77b998f
Remove redundant includes
pjd Jun 8, 2020
529246d
Restore support for in-kernel ZFS ioctls
pjd Jun 8, 2020
080102a
Linux 5.8 compat: __vmalloc()
c0d3z3r0 Jun 8, 2020
32f26ea
Move GFP flags kernel compatibility code
c0d3z3r0 Jun 8, 2020
b7654bd
Trim L2ARC
gamanakis Jun 9, 2020
6722be2
ZTS: Fix add-o_ashift.ksh
ikozhukhov Jun 9, 2020
7bcb7f0
File incorrectly zeroed when receiving incremental stream that toggle…
ahrens Jun 9, 2020
dd4bc56
Fix typos
Gelma Jun 10, 2020
7150427
Cleanup linux module kbuild files
nivedita76 Jun 7, 2020
66786f7
Fix VPATH builds for user config
nivedita76 Jun 7, 2020
feff3f6
Fixup "Avoid the GEOM topology lock recursion when autoexpanding a pool"
Jun 10, 2020
f664342
Remove unnecessary references to slavery
ahrens Jun 11, 2020
2bc07c6
bash_completion: add missing attributes
ggzengel Jun 11, 2020
059f7c2
man.8: Add bookmark to list of types
ggzengel Jun 11, 2020
e08b993
Removing ZERO_PAGE abd_alloc_zero_scatter
bwatkinson Jun 11, 2020
499dccd
FreeBSD: Don't require zeroing new locks before init
Jun 13, 2020
f2edc00
Fix gcc10.1 truncation error
gamanakis Jun 13, 2020
4f73576
Upstream: zil_commit_waiter() can stall forever
lundman Jun 14, 2020
883a40f
Add convenience wrappers for common uio usage
lundman Jun 14, 2020
c13facb
Fix FreeBSD condvar semantics
Jun 16, 2020
0a03495
Fixing ABD struct allocation for FreeBSD
bwatkinson Jun 16, 2020
ba54b18
Remove refences to blacklist/whitelist
ahrens Jun 16, 2020
d366c8f
Make struct vdev_disk_t be platform private
lundman Jun 16, 2020
86a0f49
FreeBSD: Kernel module should depend on xdr not krpc after 1300092
Jun 16, 2020
cd07d7c
drr_begin: can't forward declare untagged struct
lundman Jun 16, 2020
fccaea4
Merge bash_completions changes from upstream
dioni21 Jun 16, 2020
17ca301
Set initial arc_c to arc_c_min instead of arc_c_max
amotin Jun 17, 2020
4458157
zfs_ioctl: saved_poolname can be truncated
lundman Jun 17, 2020
107b024
Merge branch 'master' into pullrequest
stuartmaybee Jun 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 15 additions & 14 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ started?](#what-should-i-know-before-i-get-started)

Helpful resources

* [ZFS on Linux wiki](https://github.com/zfsonlinux/zfs/wiki)
* [OpenZFS Documentation](http://open-zfs.org/wiki/Developer_resources)
* [Git and GitHub for beginners](https://github.com/zfsonlinux/zfs/wiki/Git-and-GitHub-for-beginners)
* [OpenZFS Documentation](https://openzfs.github.io/openzfs-docs/)
* [OpenZFS Developer Resources](http://open-zfs.org/wiki/Developer_resources)
* [Git and GitHub for beginners](https://openzfs.github.io/openzfs-docs/Developer%20Resources/Git%20and%20GitHub%20for%20beginners.html)

## What should I know before I get started?

### Get ZFS
You can build zfs packages by following [these
instructions](https://github.com/zfsonlinux/zfs/wiki/Building-ZFS),
instructions](https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html),
or install stable packages from [your distribution's
repository](https://github.com/zfsonlinux/zfs/wiki/Getting-Started).
repository](https://openzfs.github.io/openzfs-docs/Getting%20Started/index.html).

### Debug ZFS
A variety of methods and tools are available to aid ZFS developers.
Expand All @@ -52,20 +52,21 @@ checks and all the ASSERTs to help quickly catch potential issues.

In addition, there are numerous utilities and debugging files which
provide visibility into the inner workings of ZFS. The most useful
of these tools are discussed in detail on the [debugging ZFS wiki
page](https://github.com/zfsonlinux/zfs/wiki/Debugging).
of these tools are discussed in detail on the [Troubleshooting
page](https://openzfs.github.io/openzfs-docs/Basic%20Concepts/Troubleshooting.html).

### Where can I ask for help?
[The zfs-discuss mailing list or IRC](http://list.zfsonlinux.org)
are the best places to ask for help. Please do not file support requests
on the GitHub issue tracker.
The [zfs-discuss mailing
list](https://openzfs.github.io/openzfs-docs/Project%20and%20Community/Mailing%20Lists.html)
or IRC are the best places to ask for help. Please do not file
support requests on the GitHub issue tracker.

## How Can I Contribute?

### Reporting Bugs
*Please* contact us via the [zfs-discuss mailing
list or IRC](http://list.zfsonlinux.org) if you aren't
certain that you are experiencing a bug.
list](https://openzfs.github.io/openzfs-docs/Project%20and%20Community/Mailing%20Lists.html)
or IRC if you aren't certain that you are experiencing a bug.

If you run into an issue, please search our [issue
tracker](https://github.com/zfsonlinux/zfs/issues) *first* to ensure the
Expand Down Expand Up @@ -143,7 +144,7 @@ Any required reviews can then be finalized and the pull request merged.

#### Tests and Benchmarks
* Every pull request will by tested by the buildbot on multiple platforms by running the [zfs-tests.sh and zloop.sh](
https://github.com/zfsonlinux/zfs/wiki/Building-ZFS#running-zloopsh-and-zfs-testssh) test suites.
https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html#running-zloop-sh-and-zfs-tests-sh) test suites.
* To verify your changes conform to the [style guidelines](
https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#style-guides
), please run `make checkstyle` and resolve any warnings.
Expand All @@ -156,7 +157,7 @@ Buildbot](http://build.zfsonlinux.org/) builders before
being accepted. If you are experiencing intermittent TEST
builder failures, you may be experiencing a [test suite
issue](https://github.com/zfsonlinux/zfs/issues?q=is%3Aissue+is%3Aopen+label%3A%22Test+Suite%22).
There are also various [buildbot options](https://github.com/zfsonlinux/zfs/wiki/Buildbot-Options)
There are also various [buildbot options](https://openzfs.github.io/openzfs-docs/Developer%20Resources/Buildbot%20Options.html)
to control how changes are tested.

### Testing
Expand Down
35 changes: 15 additions & 20 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,37 @@
<!--
Thank you for reporting an issue.

*IMPORTANT* - Please search our issue tracker *before* making a new issue.
If you cannot find a similar issue, then create a new issue.
https://github.com/zfsonlinux/zfs/issues

*IMPORTANT* - This issue tracker is for *bugs* and *issues* only.
Please search the wiki and the mailing list archives before asking
questions on the mailing list.
https://github.com/zfsonlinux/zfs/wiki/Mailing-Lists
*IMPORTANT* - Please check our issue tracker before opening a new issue.
Additional valuable information can be found in the OpenZFS documentation
and mailing list archives.

Please fill in as much of the template as possible.
-->

### System information
<!-- add version after "|" character -->
Type | Version/Name
--- | ---
Distribution Name |
Distribution Version |
Linux Kernel |
Architecture |
ZFS Version |
SPL Version |
<!--
--- | ---
Distribution Name |
Distribution Version |
Linux Kernel |
Architecture |
ZFS Version |
SPL Version |
<!--
Commands to find ZFS/SPL versions:
modinfo zfs | grep -iw version
modinfo spl | grep -iw version
modinfo spl | grep -iw version
-->

### Describe the problem you're observing

### Describe how to reproduce the problem

### Include any warning/errors/backtraces from the system logs
<!--
*IMPORTANT* - Please mark logs and text output from terminal commands
or else Github will not display them correctly.
<!--
*IMPORTANT* - Please mark logs and text output from terminal commands
or else Github will not display them correctly.
An example is provided below.

Example:
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<!---
Documentation on ZFS Buildbot options can be found at
https://github.com/zfsonlinux/zfs/wiki/Buildbot-Options
https://openzfs.github.io/openzfs-docs/Developer%20Resources/Buildbot%20Options.html
-->

### Motivation and Context
Expand Down
5 changes: 4 additions & 1 deletion .github/suppressions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
preprocessorErrorDirective:./module/zfs/vdev_raidz_math_avx512f.c:243
preprocessorErrorDirective:./module/zfs/vdev_raidz_math_sse2.c:266

uninitvar:module/os/freebsd/zfs/vdev_geom.c
uninitvar:module/os/freebsd/zfs/zfs_vfsops.c
uninitvar:module/os/freebsd/spl/spl_zone.c
uninitvar:lib/libzutil/os/freebsd/zutil_import_os.c
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ cscope.*
*.patch
*.orig
*.log
*.tmp
venv

*.so
*.so.debug
*.so.full
8 changes: 4 additions & 4 deletions COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ notable exceptions and their respective licenses include:
* AES Implementation: module/icp/asm-x86_64/aes/THIRDPARTYLICENSE.openssl
* PBKDF2 Implementation: lib/libzfs/THIRDPARTYLICENSE.openssl
* SPL Implementation: module/os/linux/spl/THIRDPARTYLICENSE.gplv2
* GCM Implementaion: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.cryptogams
* GCM Implementaion: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.openssl
* GHASH Implementaion: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.cryptogams
* GHASH Implementaion: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.openssl
* GCM Implementation: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.cryptogams
* GCM Implementation: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.openssl
* GHASH Implementation: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.cryptogams
* GHASH Implementation: module/icp/asm-x86_64/modes/THIRDPARTYLICENSE.openssl

This product includes software developed by the OpenSSL Project for use
in the OpenSSL Toolkit (http://www.openssl.org/)
Expand Down
2 changes: 1 addition & 1 deletion META
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Release: 1
Release-Tags: relext
License: CDDL
Author: OpenZFS on Linux
Linux-Maximum: 5.4
Linux-Maximum: 5.6
Linux-Minimum: 3.10
5 changes: 3 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ commitcheck:
fi

cstyle:
@find ${top_srcdir} -name build -prune -o -name '*.[hc]' \
! -name 'zfs_config.*' ! -name '*.mod.c' -type f \
@find ${top_srcdir} -name build -prune -o -type f -name '*.[hc]' \
! -name 'zfs_config.*' ! -name '*.mod.c' \
! -name 'opt_global.h' ! -name '*_if*.h' \
-exec ${top_srcdir}/scripts/cstyle.pl -cpP {} \+

filter_executable = -exec test -x '{}' \; -print
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![img](https://github.com/openzfs/zfs/wiki/img/480px-Open-ZFS-Secondary-Logo-Colour-halfsize.png)
![img](https://openzfs.github.io/openzfs-docs/_static/img/logo/480px-Open-ZFS-Secondary-Logo-Colour-halfsize.png)

OpenZFS is an advanced file system and volume manager which was originally
developed for Solaris and is now maintained by the OpenZFS community.
Expand All @@ -9,18 +9,16 @@ This repository contains the code for running OpenZFS on Linux and FreeBSD.

# Official Resources

* [Wiki](https://github.com/openzfs/zfs/wiki) - for using and developing this repo
* [Documentation](https://openzfs.github.io/openzfs-docs/) - for using and developing this repo
* [ZoL Site](https://zfsonlinux.org) - Linux release info & links
* [Mailing lists](https://github.com/openzfs/zfs/wiki/Mailing-Lists)
* [Mailing lists](https://openzfs.github.io/openzfs-docs/Project%20and%20Community/Mailing%20Lists.html)
* [OpenZFS site](http://open-zfs.org/) - for conference videos and info on other platforms (illumos, OSX, Windows, etc)

# Installation

Full documentation for installing OpenZFS on your favorite Linux distribution can
be found at the [ZoL Site](https://zfsonlinux.org/).

FreeBSD support is a work in progress. See the [PR](https://github.com/openzfs/zfs/pull/8987).

# Contribute & Develop

We have a separate document with [contribution guidelines](./.github/CONTRIBUTING.md).
Expand All @@ -34,3 +32,4 @@ For more details see the NOTICE, LICENSE and COPYRIGHT files; `UCRL-CODE-235197`

# Supported Kernels
* The `META` file contains the officially recognized supported Linux kernel versions.
* Supported FreeBSD versions are 12-STABLE and 13-CURRENT.
8 changes: 4 additions & 4 deletions cmd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
SUBDIRS = zfs zpool zdb zhack zinject zstreamdump ztest
SUBDIRS = zfs zpool zdb zhack zinject zstream zstreamdump ztest
# BUGBUG raidz expansion no raidz_test for now
#SUBDIRS += fsck_zfs vdev_id raidz_test zgenhostid
SUBDIRS += fsck_zfs vdev_id zgenhostid
#SUBDIRS += fsck_zfs vdev_id raidz_test zfs_ids_to_path
SUBDIRS += fsck_zfs vdev_id zfs_ids_to_path
# BUGBUG raidz expansion end

if USING_PYTHON
SUBDIRS += arcstat arc_summary dbufstat
endif

if BUILD_LINUX
SUBDIRS += mount_zfs zed zvol_id zvol_wait
SUBDIRS += mount_zfs zed zgenhostid zvol_id zvol_wait
endif
43 changes: 24 additions & 19 deletions cmd/arcstat/arcstat
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
#!/usr/bin/env python3
#
# Print out ZFS ARC Statistics exported via kstat(1)
# For a definition of fields, or usage, use arctstat.pl -v
# For a definition of fields, or usage, use arcstat -v
#
# This script is a fork of the original arcstat.pl (0.1) by
# Neelakanth Nadgir, originally published on his Sun blog on
# This script was originally a fork of the original arcstat.pl (0.1)
# by Neelakanth Nadgir, originally published on his Sun blog on
# 09/18/2007
# http://blogs.sun.com/realneel/entry/zfs_arc_statistics
#
# This version aims to improve upon the original by adding features
# and fixing bugs as needed. This version is maintained by
# Mike Harsch and is hosted in a public open source repository:
# A new version aimed to improve upon the original by adding features
# and fixing bugs as needed. This version was maintained by Mike
# Harsch and was hosted in a public open source repository:
# http://github.com/mharsch/arcstat
#
# Comments, Questions, or Suggestions are always welcome.
# Contact the maintainer at ( mike at harschsystems dot com )
# but has since moved to the illumos-gate repository.
#
# This Python port was written by John Hixson for FreeNAS, introduced
# in commit e2c29f:
# https://github.com/freenas/freenas
#
# and has been improved by many people since.
#
# CDDL HEADER START
#
Expand Down Expand Up @@ -60,7 +65,7 @@ cols = {
"hits": [4, 1000, "ARC reads per second"],
"miss": [4, 1000, "ARC misses per second"],
"read": [4, 1000, "Total ARC accesses per second"],
"hit%": [4, 100, "ARC Hit percentage"],
"hit%": [4, 100, "ARC hit percentage"],
"miss%": [5, 100, "ARC miss percentage"],
"dhit": [4, 1000, "Demand hits per second"],
"dmis": [4, 1000, "Demand misses per second"],
Expand All @@ -75,12 +80,12 @@ cols = {
"mread": [5, 1000, "Metadata accesses per second"],
"mh%": [3, 100, "Metadata hit percentage"],
"mm%": [3, 100, "Metadata miss percentage"],
"arcsz": [5, 1024, "ARC Size"],
"c": [4, 1024, "ARC Target Size"],
"mfu": [4, 1000, "MFU List hits per second"],
"mru": [4, 1000, "MRU List hits per second"],
"mfug": [4, 1000, "MFU Ghost List hits per second"],
"mrug": [4, 1000, "MRU Ghost List hits per second"],
"arcsz": [5, 1024, "ARC size"],
"c": [4, 1024, "ARC target size"],
"mfu": [4, 1000, "MFU list hits per second"],
"mru": [4, 1000, "MRU list hits per second"],
"mfug": [4, 1000, "MFU ghost list hits per second"],
"mrug": [4, 1000, "MRU ghost list hits per second"],
"eskip": [5, 1000, "evict_skip per second"],
"mtxmis": [6, 1000, "mutex_miss per second"],
"dread": [5, 1000, "Demand accesses per second"],
Expand All @@ -92,10 +97,10 @@ cols = {
"l2miss%": [7, 100, "L2ARC access miss percentage"],
"l2asize": [7, 1024, "Actual (compressed) size of the L2ARC"],
"l2size": [6, 1024, "Size of the L2ARC"],
"l2bytes": [7, 1024, "bytes read per second from the L2ARC"],
"grow": [4, 1000, "ARC Grow disabled"],
"need": [4, 1024, "ARC Reclaim need"],
"free": [4, 1024, "ARC Free memory"],
"l2bytes": [7, 1024, "Bytes read per second from the L2ARC"],
"grow": [4, 1000, "ARC grow disabled"],
"need": [4, 1024, "ARC reclaim need"],
"free": [4, 1024, "ARC free memory"],
}

v = {}
Expand Down
1 change: 1 addition & 0 deletions cmd/mount_zfs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ mount_zfs_SOURCES = \

mount_zfs_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
$(top_builddir)/lib/libzfs/libzfs.la
Loading