mirror_zfs/scripts
Brian Behlendorf 46364cb2f3 Add libtpool (thread pools)
OpenZFS provides a library called tpool which implements thread
pools for user space applications.  Porting this library means
the zpool utility no longer needs to borrow the kernel mutex and
taskq interfaces from libzpool.  This code was updated to use
the tpool library which behaves in a very similar fashion.

Porting libtpool was relatively straight forward and minimal
modifications were needed.  The core changes were:

* Fully convert the library to use pthreads.
* Updated signal handling.
* lmalloc/lfree converted to calloc/free
* Implemented portable pthread_attr_clone() function.

Finally, update the build system such that libzpool.so is no
longer linked in to zfs(8), zpool(8), etc.  All that is required
is libzfs to which the zcommon soures were added (which is the way
it always should have been).  Removing the libzpool dependency
resulted in several build issues which needed to be resolved.

* Moved zfeature support to module/zcommon/zfeature_common.c
* Moved ratelimiting to to module/zfs/zfs_ratelimit.c
* Moved get_system_hostid() to lib/libspl/gethostid.c
* Removed use of cmn_err() in zcommon source
* Removed dprintf_setup() call from zpool_main.c and zfs_main.c
* Removed highbit() and lowbit()
* Removed unnecessary library dependencies from Makefiles
* Removed fletcher-4 kstat in user space
* Added sha2 support explicitly to libzfs
* Added highbit64() and lowbit64() to zpool_util.c

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6442
2017-08-09 15:31:08 -07:00
..
zfs-images@3331601f6d Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
zpios-profile Fix spelling 2017-01-03 11:31:18 -06:00
zpios-test Replace libexecdir with datadir 2013-03-06 15:46:40 -08:00
zpool-config zpool-create.sh: allow features to be disabled 2014-07-25 11:58:31 -07:00
.gitignore Remove autotools products 2012-08-27 11:47:44 -07:00
commitcheck.sh Prevent commitcheck.sh from running twice 2017-04-03 14:20:01 -07:00
common.sh.in Enable shellcheck to run for select scripts 2017-03-09 10:20:15 -08:00
cstyle.pl OpenZFS 7348 - cstyle can't handle ellipsis on continuation line 2017-01-26 12:40:22 -08:00
dkms.mkconf Add icp kernel module to dkms build 2016-10-06 10:31:42 -07:00
dkms.postbuild Install header during post-build rather than post-install. 2014-10-09 12:03:50 -07:00
kmodtool Set LANG to a reasonable default (C) 2014-06-10 16:46:21 -07:00
Makefile.am Retire zconfig.sh 2017-05-22 12:34:42 -04:00
paxcheck.sh Enable shellcheck to run for select scripts 2017-03-09 10:20:15 -08:00
smb.sh Implemented sharing datasets via SMB using libshare 2012-12-03 09:42:15 -08:00
zfs2zol-patch.sed Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00
zfs-helpers.sh zpool iostat/status -c improvements 2017-06-05 10:52:15 -07:00
zfs-tests.sh Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00
zfs.sh Enable shellcheck to run for select scripts 2017-03-09 10:20:15 -08:00
zimport.sh Fix spelling 2017-01-03 11:31:18 -06:00
zloop.sh Enable shellcheck to run for select scripts 2017-03-09 10:20:15 -08:00
zol2zfs-patch.sed Add a script to change file names when upstreaming to OpenZFS/illumos 2016-09-29 21:01:50 -07:00
zpios-sanity.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zpios-survey.sh Retire zio_bulk_flags 2015-02-10 16:08:49 -08:00
zpios.sh build: resolve orthographic and other grammatical errors 2013-04-02 10:44:52 -07:00
zpool-create.sh zpool-create.sh: allow features to be disabled 2014-07-25 11:58:31 -07:00