summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2008-12-11 11:26:43 -0800
committerBrian Behlendorf <[email protected]>2008-12-11 11:26:43 -0800
commitf07f82e93ab189c6fbb64f3d8ec6ae77f8da47af (patch)
tree97ff21d483a4966eb8db8748e09512465671988c
parent6921187bfe3503bb7b106a29544c26bad13705c8 (diff)
parentb453b61272db34cd097f8636f57033785b00d932 (diff)
Merge commit 'refs/top-bases/fix-pthreads' into fix-pthreads
-rw-r--r--ZFS.RELEASE1
-rw-r--r--cmd/zdb/zdb.c (renamed from zfs/zcmd/zdb/zdb.c)0
-rw-r--r--cmd/zdb/zdb_il.c (renamed from zfs/zcmd/zdb/zdb_il.c)0
-rw-r--r--cmd/zdump/zdump.c (renamed from zfs/zcmd/zdump/zdump.c)0
-rw-r--r--cmd/zfs/zfs_iter.c (renamed from zfs/zcmd/zfs/zfs_iter.c)0
-rw-r--r--cmd/zfs/zfs_iter.h (renamed from zfs/zcmd/zfs/zfs_iter.h)0
-rw-r--r--cmd/zfs/zfs_main.c (renamed from zfs/zcmd/zfs/zfs_main.c)0
-rw-r--r--cmd/zfs/zfs_util.h (renamed from zfs/zcmd/zfs/zfs_util.h)0
-rw-r--r--cmd/zinject/translate.c (renamed from zfs/zcmd/zinject/translate.c)0
-rw-r--r--cmd/zinject/zinject.c (renamed from zfs/zcmd/zinject/zinject.c)0
-rw-r--r--cmd/zinject/zinject.h (renamed from zfs/zcmd/zinject/zinject.h)0
-rw-r--r--cmd/zpool/zpool_iter.c (renamed from zfs/zcmd/zpool/zpool_iter.c)0
-rw-r--r--cmd/zpool/zpool_main.c (renamed from zfs/zcmd/zpool/zpool_main.c)0
-rw-r--r--cmd/zpool/zpool_util.c (renamed from zfs/zcmd/zpool/zpool_util.c)0
-rw-r--r--cmd/zpool/zpool_util.h (renamed from zfs/zcmd/zpool/zpool_util.h)0
-rw-r--r--cmd/zpool/zpool_vdev.c (renamed from zfs/zcmd/zpool/zpool_vdev.c)0
-rw-r--r--cmd/ztest/ztest.c (renamed from zfs/zcmd/ztest/ztest.c)0
-rw-r--r--lib/libspl/include/sys/list.h (renamed from zfs/lib/libspl/include/sys/list.h)0
-rw-r--r--lib/libspl/include/sys/list_impl.h (renamed from zfs/lib/libspl/include/sys/list_impl.h)0
-rw-r--r--lib/libspl/list.c (renamed from zfs/lib/libspl/list.c)0
-rw-r--r--lib/libspl/mkdirp.c (renamed from zfs/lib/libspl/mkdirp.c)0
-rw-r--r--lib/libspl/strlcat.c (renamed from zfs/lib/libspl/strlcat.c)0
-rw-r--r--lib/libspl/strlcpy.c (renamed from zfs/lib/libspl/strlcpy.c)0
-rw-r--r--lib/libspl/strnlen.c (renamed from zfs/lib/libspl/strnlen.c)0
-rw-r--r--lib/libspl/u8_textprep.c (renamed from zfs/lib/libspl/u8_textprep.c)0
-rw-r--r--lib/libuutil/include/libuutil.h (renamed from zfs/lib/libuutil/include/libuutil.h)0
-rw-r--r--lib/libuutil/include/libuutil_common.h (renamed from zfs/lib/libuutil/include/libuutil_common.h)0
-rw-r--r--lib/libuutil/include/libuutil_impl.h (renamed from zfs/lib/libuutil/include/libuutil_impl.h)0
-rw-r--r--lib/libuutil/uu_alloc.c (renamed from zfs/lib/libuutil/uu_alloc.c)0
-rw-r--r--lib/libuutil/uu_avl.c (renamed from zfs/lib/libuutil/uu_avl.c)0
-rw-r--r--lib/libuutil/uu_dprintf.c (renamed from zfs/lib/libuutil/uu_dprintf.c)0
-rw-r--r--lib/libuutil/uu_ident.c (renamed from zfs/lib/libuutil/uu_ident.c)0
-rw-r--r--lib/libuutil/uu_list.c (renamed from zfs/lib/libuutil/uu_list.c)0
-rw-r--r--lib/libuutil/uu_misc.c (renamed from zfs/lib/libuutil/uu_misc.c)0
-rw-r--r--lib/libuutil/uu_open.c (renamed from zfs/lib/libuutil/uu_open.c)0
-rw-r--r--lib/libuutil/uu_pname.c (renamed from zfs/lib/libuutil/uu_pname.c)0
-rw-r--r--lib/libuutil/uu_strtoint.c (renamed from zfs/lib/libuutil/uu_strtoint.c)0
-rw-r--r--lib/libzfs/include/libzfs.h (renamed from zfs/lib/libzfs/include/libzfs.h)0
-rw-r--r--lib/libzfs/include/libzfs_impl.h (renamed from zfs/lib/libzfs/include/libzfs_impl.h)0
-rw-r--r--lib/libzfs/libzfs_changelist.c (renamed from zfs/lib/libzfs/libzfs_changelist.c)0
-rw-r--r--lib/libzfs/libzfs_config.c (renamed from zfs/lib/libzfs/libzfs_config.c)0
-rw-r--r--lib/libzfs/libzfs_dataset.c (renamed from zfs/lib/libzfs/libzfs_dataset.c)0
-rw-r--r--lib/libzfs/libzfs_graph.c (renamed from zfs/lib/libzfs/libzfs_graph.c)0
-rw-r--r--lib/libzfs/libzfs_import.c (renamed from zfs/lib/libzfs/libzfs_import.c)0
-rw-r--r--lib/libzfs/libzfs_mount.c (renamed from zfs/lib/libzfs/libzfs_mount.c)0
-rw-r--r--lib/libzfs/libzfs_pool.c (renamed from zfs/lib/libzfs/libzfs_pool.c)0
-rw-r--r--lib/libzfs/libzfs_sendrecv.c (renamed from zfs/lib/libzfs/libzfs_sendrecv.c)0
-rw-r--r--lib/libzfs/libzfs_status.c (renamed from zfs/lib/libzfs/libzfs_status.c)0
-rw-r--r--lib/libzfs/libzfs_util.c (renamed from zfs/lib/libzfs/libzfs_util.c)0
-rw-r--r--lib/libzpool/include/sys/zfs_context.h547
-rw-r--r--lib/libzpool/kernel.c (renamed from zfs/lib/libzpool/kernel.c)0
-rw-r--r--lib/libzpool/taskq.c (renamed from zfs/lib/libzpool/taskq.c)0
-rw-r--r--lib/libzpool/util.c (renamed from zfs/lib/libzpool/util.c)0
-rw-r--r--module/avl/avl.c (renamed from zfs/lib/libavl/avl.c)0
-rw-r--r--module/avl/include/sys/avl.h (renamed from zfs/lib/libavl/include/sys/avl.h)0
-rw-r--r--module/avl/include/sys/avl_impl.h (renamed from zfs/lib/libavl/include/sys/avl_impl.h)0
-rw-r--r--module/nvpair/include/libnvpair.h (renamed from zfs/lib/libnvpair/include/libnvpair.h)0
-rw-r--r--module/nvpair/include/sys/nvpair.h (renamed from zfs/lib/libnvpair/include/sys/nvpair.h)0
-rw-r--r--module/nvpair/include/sys/nvpair_impl.h (renamed from zfs/lib/libnvpair/include/sys/nvpair_impl.h)0
-rw-r--r--module/nvpair/libnvpair.c (renamed from zfs/lib/libnvpair/libnvpair.c)0
-rw-r--r--module/nvpair/nvpair.c (renamed from zfs/lib/libnvpair/nvpair.c)0
-rw-r--r--module/nvpair/nvpair_alloc_fixed.c (renamed from zfs/lib/libnvpair/nvpair_alloc_fixed.c)0
-rw-r--r--module/nvpair/nvpair_alloc_system.c (renamed from zfs/lib/libnvpair/nvpair_alloc_system.c)0
-rw-r--r--module/zcommon/include/sys/fm/fs/zfs.h (renamed from zfs/lib/libzcommon/include/sys/fm/fs/zfs.h)0
-rw-r--r--module/zcommon/include/sys/fs/zfs.h (renamed from zfs/lib/libzcommon/include/sys/fs/zfs.h)0
-rw-r--r--module/zcommon/include/zfs_comutil.h (renamed from zfs/lib/libzcommon/include/zfs_comutil.h)0
-rw-r--r--module/zcommon/include/zfs_deleg.h (renamed from zfs/lib/libzcommon/include/zfs_deleg.h)0
-rw-r--r--module/zcommon/include/zfs_namecheck.h (renamed from zfs/lib/libzcommon/include/zfs_namecheck.h)0
-rw-r--r--module/zcommon/include/zfs_prop.h (renamed from zfs/lib/libzcommon/include/zfs_prop.h)0
-rw-r--r--module/zcommon/zfs_comutil.c (renamed from zfs/lib/libzcommon/zfs_comutil.c)0
-rw-r--r--module/zcommon/zfs_deleg.c (renamed from zfs/lib/libzcommon/zfs_deleg.c)0
-rw-r--r--module/zcommon/zfs_namecheck.c (renamed from zfs/lib/libzcommon/zfs_namecheck.c)0
-rw-r--r--module/zcommon/zfs_prop.c (renamed from zfs/lib/libzcommon/zfs_prop.c)0
-rw-r--r--module/zcommon/zpool_prop.c (renamed from zfs/lib/libzcommon/zpool_prop.c)0
-rw-r--r--module/zcommon/zprop_common.c (renamed from zfs/lib/libzcommon/zprop_common.c)0
-rw-r--r--module/zfs/arc.c (renamed from zfs/lib/libzpool/arc.c)0
-rw-r--r--module/zfs/bplist.c (renamed from zfs/lib/libzpool/bplist.c)0
-rw-r--r--module/zfs/dbuf.c (renamed from zfs/lib/libzpool/dbuf.c)0
-rw-r--r--module/zfs/dmu.c (renamed from zfs/lib/libzpool/dmu.c)0
-rw-r--r--module/zfs/dmu_object.c (renamed from zfs/lib/libzpool/dmu_object.c)0
-rw-r--r--module/zfs/dmu_objset.c (renamed from zfs/lib/libzpool/dmu_objset.c)0
-rw-r--r--module/zfs/dmu_send.c (renamed from zfs/lib/libzpool/dmu_send.c)0
-rw-r--r--module/zfs/dmu_traverse.c (renamed from zfs/lib/libzpool/dmu_traverse.c)0
-rw-r--r--module/zfs/dmu_tx.c (renamed from zfs/lib/libzpool/dmu_tx.c)0
-rw-r--r--module/zfs/dmu_zfetch.c (renamed from zfs/lib/libzpool/dmu_zfetch.c)0
-rw-r--r--module/zfs/dnode.c (renamed from zfs/lib/libzpool/dnode.c)0
-rw-r--r--module/zfs/dnode_sync.c (renamed from zfs/lib/libzpool/dnode_sync.c)0
-rw-r--r--module/zfs/dsl_dataset.c (renamed from zfs/lib/libzpool/dsl_dataset.c)0
-rw-r--r--module/zfs/dsl_deleg.c (renamed from zfs/lib/libzpool/dsl_deleg.c)0
-rw-r--r--module/zfs/dsl_dir.c (renamed from zfs/lib/libzpool/dsl_dir.c)0
-rw-r--r--module/zfs/dsl_pool.c (renamed from zfs/lib/libzpool/dsl_pool.c)0
-rw-r--r--module/zfs/dsl_prop.c (renamed from zfs/lib/libzpool/dsl_prop.c)0
-rw-r--r--module/zfs/dsl_scrub.c (renamed from zfs/lib/libzpool/dsl_scrub.c)0
-rw-r--r--module/zfs/dsl_synctask.c (renamed from zfs/lib/libzpool/dsl_synctask.c)0
-rw-r--r--module/zfs/fletcher.c (renamed from zfs/lib/libzpool/fletcher.c)0
-rw-r--r--module/zfs/gzip.c (renamed from zfs/lib/libzpool/gzip.c)0
-rw-r--r--module/zfs/include/sys/arc.h (renamed from zfs/lib/libzpool/include/sys/arc.h)0
-rw-r--r--module/zfs/include/sys/bplist.h (renamed from zfs/lib/libzpool/include/sys/bplist.h)0
-rw-r--r--module/zfs/include/sys/dbuf.h (renamed from zfs/lib/libzpool/include/sys/dbuf.h)0
-rw-r--r--module/zfs/include/sys/dmu.h (renamed from zfs/lib/libzpool/include/sys/dmu.h)0
-rw-r--r--module/zfs/include/sys/dmu_impl.h (renamed from zfs/lib/libzpool/include/sys/dmu_impl.h)0
-rw-r--r--module/zfs/include/sys/dmu_objset.h (renamed from zfs/lib/libzpool/include/sys/dmu_objset.h)0
-rw-r--r--module/zfs/include/sys/dmu_traverse.h (renamed from zfs/lib/libzpool/include/sys/dmu_traverse.h)0
-rw-r--r--module/zfs/include/sys/dmu_tx.h (renamed from zfs/lib/libzpool/include/sys/dmu_tx.h)0
-rw-r--r--module/zfs/include/sys/dmu_zfetch.h (renamed from zfs/lib/libzpool/include/sys/dmu_zfetch.h)0
-rw-r--r--module/zfs/include/sys/dnode.h (renamed from zfs/lib/libzpool/include/sys/dnode.h)0
-rw-r--r--module/zfs/include/sys/dsl_dataset.h (renamed from zfs/lib/libzpool/include/sys/dsl_dataset.h)0
-rw-r--r--module/zfs/include/sys/dsl_deleg.h (renamed from zfs/lib/libzpool/include/sys/dsl_deleg.h)0
-rw-r--r--module/zfs/include/sys/dsl_dir.h (renamed from zfs/lib/libzpool/include/sys/dsl_dir.h)0
-rw-r--r--module/zfs/include/sys/dsl_pool.h (renamed from zfs/lib/libzpool/include/sys/dsl_pool.h)0
-rw-r--r--module/zfs/include/sys/dsl_prop.h (renamed from zfs/lib/libzpool/include/sys/dsl_prop.h)0
-rw-r--r--module/zfs/include/sys/dsl_synctask.h (renamed from zfs/lib/libzpool/include/sys/dsl_synctask.h)0
-rw-r--r--module/zfs/include/sys/metaslab.h (renamed from zfs/lib/libzpool/include/sys/metaslab.h)0
-rw-r--r--module/zfs/include/sys/metaslab_impl.h (renamed from zfs/lib/libzpool/include/sys/metaslab_impl.h)0
-rw-r--r--module/zfs/include/sys/refcount.h (renamed from zfs/lib/libzpool/include/sys/refcount.h)0
-rw-r--r--module/zfs/include/sys/rrwlock.h (renamed from zfs/lib/libzpool/include/sys/rrwlock.h)0
-rw-r--r--module/zfs/include/sys/spa.h (renamed from zfs/lib/libzpool/include/sys/spa.h)0
-rw-r--r--module/zfs/include/sys/spa_boot.h (renamed from zfs/lib/libzpool/include/sys/spa_boot.h)0
-rw-r--r--module/zfs/include/sys/spa_impl.h (renamed from zfs/lib/libzpool/include/sys/spa_impl.h)0
-rw-r--r--module/zfs/include/sys/space_map.h (renamed from zfs/lib/libzpool/include/sys/space_map.h)0
-rw-r--r--module/zfs/include/sys/txg.h (renamed from zfs/lib/libzpool/include/sys/txg.h)0
-rw-r--r--module/zfs/include/sys/txg_impl.h (renamed from zfs/lib/libzpool/include/sys/txg_impl.h)0
-rw-r--r--module/zfs/include/sys/uberblock.h (renamed from zfs/lib/libzpool/include/sys/uberblock.h)0
-rw-r--r--module/zfs/include/sys/uberblock_impl.h (renamed from zfs/lib/libzpool/include/sys/uberblock_impl.h)0
-rw-r--r--module/zfs/include/sys/unique.h (renamed from zfs/lib/libzpool/include/sys/unique.h)0
-rw-r--r--module/zfs/include/sys/vdev.h (renamed from zfs/lib/libzpool/include/sys/vdev.h)0
-rw-r--r--module/zfs/include/sys/vdev_file.h (renamed from zfs/lib/libzpool/include/sys/vdev_file.h)0
-rw-r--r--module/zfs/include/sys/vdev_impl.h (renamed from zfs/lib/libzpool/include/sys/vdev_impl.h)0
-rw-r--r--module/zfs/include/sys/zap.h (renamed from zfs/lib/libzpool/include/sys/zap.h)0
-rw-r--r--module/zfs/include/sys/zap_impl.h (renamed from zfs/lib/libzpool/include/sys/zap_impl.h)0
-rw-r--r--module/zfs/include/sys/zap_leaf.h (renamed from zfs/lib/libzpool/include/sys/zap_leaf.h)0
-rw-r--r--module/zfs/include/sys/zfs_acl.h (renamed from zfs/lib/libzpool/include/sys/zfs_acl.h)0
-rw-r--r--module/zfs/include/sys/zfs_context.h (renamed from zfs/lib/libzpool/include/sys/zfs_context.h)0
-rw-r--r--module/zfs/include/sys/zfs_ctldir.h (renamed from zfs/lib/libzpool/include/sys/zfs_ctldir.h)0
-rw-r--r--module/zfs/include/sys/zfs_debug.h (renamed from zfs/lib/libzpool/include/sys/zfs_debug.h)0
-rw-r--r--module/zfs/include/sys/zfs_dir.h (renamed from zfs/lib/libzpool/include/sys/zfs_dir.h)0
-rw-r--r--module/zfs/include/sys/zfs_fuid.h (renamed from zfs/lib/libzpool/include/sys/zfs_fuid.h)0
-rw-r--r--module/zfs/include/sys/zfs_ioctl.h (renamed from zfs/lib/libzpool/include/sys/zfs_ioctl.h)0
-rw-r--r--module/zfs/include/sys/zfs_rlock.h (renamed from zfs/lib/libzpool/include/sys/zfs_rlock.h)0
-rw-r--r--module/zfs/include/sys/zfs_vfsops.h (renamed from zfs/lib/libzpool/include/sys/zfs_vfsops.h)0
-rw-r--r--module/zfs/include/sys/zfs_znode.h (renamed from zfs/lib/libzpool/include/sys/zfs_znode.h)0
-rw-r--r--module/zfs/include/sys/zil.h (renamed from zfs/lib/libzpool/include/sys/zil.h)0
-rw-r--r--module/zfs/include/sys/zil_impl.h (renamed from zfs/lib/libzpool/include/sys/zil_impl.h)0
-rw-r--r--module/zfs/include/sys/zio.h (renamed from zfs/lib/libzpool/include/sys/zio.h)0
-rw-r--r--module/zfs/include/sys/zio_checksum.h (renamed from zfs/lib/libzpool/include/sys/zio_checksum.h)0
-rw-r--r--module/zfs/include/sys/zio_compress.h (renamed from zfs/lib/libzpool/include/sys/zio_compress.h)0
-rw-r--r--module/zfs/include/sys/zio_impl.h (renamed from zfs/lib/libzpool/include/sys/zio_impl.h)0
-rw-r--r--module/zfs/include/sys/zvol.h (renamed from zfs/lib/libzpool/include/sys/zvol.h)0
-rw-r--r--module/zfs/lzjb.c (renamed from zfs/lib/libzpool/lzjb.c)0
-rw-r--r--module/zfs/metaslab.c (renamed from zfs/lib/libzpool/metaslab.c)0
-rw-r--r--module/zfs/refcount.c (renamed from zfs/lib/libzpool/refcount.c)0
-rw-r--r--module/zfs/rrwlock.c (renamed from zfs/lib/libzpool/rrwlock.c)0
-rw-r--r--module/zfs/sha256.c (renamed from zfs/lib/libzpool/sha256.c)0
-rw-r--r--module/zfs/spa.c (renamed from zfs/lib/libzpool/spa.c)0
-rw-r--r--module/zfs/spa_boot.c (renamed from zfs/lib/libzpool/spa_boot.c)0
-rw-r--r--module/zfs/spa_config.c (renamed from zfs/lib/libzpool/spa_config.c)0
-rw-r--r--module/zfs/spa_errlog.c (renamed from zfs/lib/libzpool/spa_errlog.c)0
-rw-r--r--module/zfs/spa_history.c (renamed from zfs/lib/libzpool/spa_history.c)0
-rw-r--r--module/zfs/spa_misc.c (renamed from zfs/lib/libzpool/spa_misc.c)0
-rw-r--r--module/zfs/space_map.c (renamed from zfs/lib/libzpool/space_map.c)0
-rw-r--r--module/zfs/txg.c (renamed from zfs/lib/libzpool/txg.c)0
-rw-r--r--module/zfs/uberblock.c (renamed from zfs/lib/libzpool/uberblock.c)0
-rw-r--r--module/zfs/unique.c (renamed from zfs/lib/libzpool/unique.c)0
-rw-r--r--module/zfs/vdev.c (renamed from zfs/lib/libzpool/vdev.c)0
-rw-r--r--module/zfs/vdev_cache.c (renamed from zfs/lib/libzpool/vdev_cache.c)0
-rw-r--r--module/zfs/vdev_file.c (renamed from zfs/lib/libzpool/vdev_file.c)0
-rw-r--r--module/zfs/vdev_label.c (renamed from zfs/lib/libzpool/vdev_label.c)0
-rw-r--r--module/zfs/vdev_mirror.c (renamed from zfs/lib/libzpool/vdev_mirror.c)0
-rw-r--r--module/zfs/vdev_missing.c (renamed from zfs/lib/libzpool/vdev_missing.c)0
-rw-r--r--module/zfs/vdev_queue.c (renamed from zfs/lib/libzpool/vdev_queue.c)0
-rw-r--r--module/zfs/vdev_raidz.c (renamed from zfs/lib/libzpool/vdev_raidz.c)0
-rw-r--r--module/zfs/vdev_root.c (renamed from zfs/lib/libzpool/vdev_root.c)0
-rw-r--r--module/zfs/zap.c (renamed from zfs/lib/libzpool/zap.c)0
-rw-r--r--module/zfs/zap_leaf.c (renamed from zfs/lib/libzpool/zap_leaf.c)0
-rw-r--r--module/zfs/zap_micro.c (renamed from zfs/lib/libzpool/zap_micro.c)0
-rw-r--r--module/zfs/zfs_acl.c (renamed from zfs/lib/libzpool/zfs_acl.c)0
-rw-r--r--module/zfs/zfs_byteswap.c (renamed from zfs/lib/libzpool/zfs_byteswap.c)0
-rw-r--r--module/zfs/zfs_ctldir.c (renamed from zfs/lib/libzpool/zfs_ctldir.c)0
-rw-r--r--module/zfs/zfs_dir.c (renamed from zfs/lib/libzpool/zfs_dir.c)0
-rw-r--r--module/zfs/zfs_fm.c (renamed from zfs/lib/libzpool/zfs_fm.c)0
-rw-r--r--module/zfs/zfs_fuid.c (renamed from zfs/lib/libzpool/zfs_fuid.c)0
-rw-r--r--module/zfs/zfs_ioctl.c (renamed from zfs/lib/libzpool/zfs_ioctl.c)0
-rw-r--r--module/zfs/zfs_log.c (renamed from zfs/lib/libzpool/zfs_log.c)0
-rw-r--r--module/zfs/zfs_replay.c (renamed from zfs/lib/libzpool/zfs_replay.c)0
-rw-r--r--module/zfs/zfs_rlock.c (renamed from zfs/lib/libzpool/zfs_rlock.c)0
-rw-r--r--module/zfs/zfs_vfsops.c (renamed from zfs/lib/libzpool/zfs_vfsops.c)0
-rw-r--r--module/zfs/zfs_vnops.c (renamed from zfs/lib/libzpool/zfs_vnops.c)0
-rw-r--r--module/zfs/zfs_znode.c (renamed from zfs/lib/libzpool/zfs_znode.c)0
-rw-r--r--module/zfs/zil.c (renamed from zfs/lib/libzpool/zil.c)0
-rw-r--r--module/zfs/zio.c (renamed from zfs/lib/libzpool/zio.c)0
-rw-r--r--module/zfs/zio_checksum.c (renamed from zfs/lib/libzpool/zio_checksum.c)0
-rw-r--r--module/zfs/zio_compress.c (renamed from zfs/lib/libzpool/zio_compress.c)0
-rw-r--r--module/zfs/zio_inject.c (renamed from zfs/lib/libzpool/zio_inject.c)0
-rw-r--r--module/zfs/zvol.c (renamed from zfs/lib/libzpool/zvol.c)0
-rwxr-xr-xscripts/update-zfs.sh100
195 files changed, 601 insertions, 47 deletions
diff --git a/ZFS.RELEASE b/ZFS.RELEASE
new file mode 100644
index 000000000..c00b98327
--- /dev/null
+++ b/ZFS.RELEASE
@@ -0,0 +1 @@
+http://dlc.sun.com/osol/on/downloads/b103/on-src.tar.bz2
diff --git a/zfs/zcmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 253a1346a..253a1346a 100644
--- a/zfs/zcmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
diff --git a/zfs/zcmd/zdb/zdb_il.c b/cmd/zdb/zdb_il.c
index 02d35a050..02d35a050 100644
--- a/zfs/zcmd/zdb/zdb_il.c
+++ b/cmd/zdb/zdb_il.c
diff --git a/zfs/zcmd/zdump/zdump.c b/cmd/zdump/zdump.c
index 45be5589d..45be5589d 100644
--- a/zfs/zcmd/zdump/zdump.c
+++ b/cmd/zdump/zdump.c
diff --git a/zfs/zcmd/zfs/zfs_iter.c b/cmd/zfs/zfs_iter.c
index a22370a02..a22370a02 100644
--- a/zfs/zcmd/zfs/zfs_iter.c
+++ b/cmd/zfs/zfs_iter.c
diff --git a/zfs/zcmd/zfs/zfs_iter.h b/cmd/zfs/zfs_iter.h
index 76a11085a..76a11085a 100644
--- a/zfs/zcmd/zfs/zfs_iter.h
+++ b/cmd/zfs/zfs_iter.h
diff --git a/zfs/zcmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index f9480ceba..f9480ceba 100644
--- a/zfs/zcmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
diff --git a/zfs/zcmd/zfs/zfs_util.h b/cmd/zfs/zfs_util.h
index c7f2f1618..c7f2f1618 100644
--- a/zfs/zcmd/zfs/zfs_util.h
+++ b/cmd/zfs/zfs_util.h
diff --git a/zfs/zcmd/zinject/translate.c b/cmd/zinject/translate.c
index c85e024b6..c85e024b6 100644
--- a/zfs/zcmd/zinject/translate.c
+++ b/cmd/zinject/translate.c
diff --git a/zfs/zcmd/zinject/zinject.c b/cmd/zinject/zinject.c
index 02dc18b9c..02dc18b9c 100644
--- a/zfs/zcmd/zinject/zinject.c
+++ b/cmd/zinject/zinject.c
diff --git a/zfs/zcmd/zinject/zinject.h b/cmd/zinject/zinject.h
index adc3efe80..adc3efe80 100644
--- a/zfs/zcmd/zinject/zinject.h
+++ b/cmd/zinject/zinject.h
diff --git a/zfs/zcmd/zpool/zpool_iter.c b/cmd/zpool/zpool_iter.c
index 2f0daefd5..2f0daefd5 100644
--- a/zfs/zcmd/zpool/zpool_iter.c
+++ b/cmd/zpool/zpool_iter.c
diff --git a/zfs/zcmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index 54bba8645..54bba8645 100644
--- a/zfs/zcmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
diff --git a/zfs/zcmd/zpool/zpool_util.c b/cmd/zpool/zpool_util.c
index f44da4ff6..f44da4ff6 100644
--- a/zfs/zcmd/zpool/zpool_util.c
+++ b/cmd/zpool/zpool_util.c
diff --git a/zfs/zcmd/zpool/zpool_util.h b/cmd/zpool/zpool_util.h
index e82f3202a..e82f3202a 100644
--- a/zfs/zcmd/zpool/zpool_util.h
+++ b/cmd/zpool/zpool_util.h
diff --git a/zfs/zcmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c
index 10007c149..10007c149 100644
--- a/zfs/zcmd/zpool/zpool_vdev.c
+++ b/cmd/zpool/zpool_vdev.c
diff --git a/zfs/zcmd/ztest/ztest.c b/cmd/ztest/ztest.c
index 4aba99126..4aba99126 100644
--- a/zfs/zcmd/ztest/ztest.c
+++ b/cmd/ztest/ztest.c
diff --git a/zfs/lib/libspl/include/sys/list.h b/lib/libspl/include/sys/list.h
index 8339b6226..8339b6226 100644
--- a/zfs/lib/libspl/include/sys/list.h
+++ b/lib/libspl/include/sys/list.h
diff --git a/zfs/lib/libspl/include/sys/list_impl.h b/lib/libspl/include/sys/list_impl.h
index 9c42f8832..9c42f8832 100644
--- a/zfs/lib/libspl/include/sys/list_impl.h
+++ b/lib/libspl/include/sys/list_impl.h
diff --git a/zfs/lib/libspl/list.c b/lib/libspl/list.c
index e8db13a5c..e8db13a5c 100644
--- a/zfs/lib/libspl/list.c
+++ b/lib/libspl/list.c
diff --git a/zfs/lib/libspl/mkdirp.c b/lib/libspl/mkdirp.c
index 9c81f2a0b..9c81f2a0b 100644
--- a/zfs/lib/libspl/mkdirp.c
+++ b/lib/libspl/mkdirp.c
diff --git a/zfs/lib/libspl/strlcat.c b/lib/libspl/strlcat.c
index 07d1403dd..07d1403dd 100644
--- a/zfs/lib/libspl/strlcat.c
+++ b/lib/libspl/strlcat.c
diff --git a/zfs/lib/libspl/strlcpy.c b/lib/libspl/strlcpy.c
index 7a8009b89..7a8009b89 100644
--- a/zfs/lib/libspl/strlcpy.c
+++ b/lib/libspl/strlcpy.c
diff --git a/zfs/lib/libspl/strnlen.c b/lib/libspl/strnlen.c
index 605245b6b..605245b6b 100644
--- a/zfs/lib/libspl/strnlen.c
+++ b/lib/libspl/strnlen.c
diff --git a/zfs/lib/libspl/u8_textprep.c b/lib/libspl/u8_textprep.c
index 8faf1a97e..8faf1a97e 100644
--- a/zfs/lib/libspl/u8_textprep.c
+++ b/lib/libspl/u8_textprep.c
diff --git a/zfs/lib/libuutil/include/libuutil.h b/lib/libuutil/include/libuutil.h
index ccd46b977..ccd46b977 100644
--- a/zfs/lib/libuutil/include/libuutil.h
+++ b/lib/libuutil/include/libuutil.h
diff --git a/zfs/lib/libuutil/include/libuutil_common.h b/lib/libuutil/include/libuutil_common.h
index 9ebaaedfd..9ebaaedfd 100644
--- a/zfs/lib/libuutil/include/libuutil_common.h
+++ b/lib/libuutil/include/libuutil_common.h
diff --git a/zfs/lib/libuutil/include/libuutil_impl.h b/lib/libuutil/include/libuutil_impl.h
index 9466e5974..9466e5974 100644
--- a/zfs/lib/libuutil/include/libuutil_impl.h
+++ b/lib/libuutil/include/libuutil_impl.h
diff --git a/zfs/lib/libuutil/uu_alloc.c b/lib/libuutil/uu_alloc.c
index 05d862287..05d862287 100644
--- a/zfs/lib/libuutil/uu_alloc.c
+++ b/lib/libuutil/uu_alloc.c
diff --git a/zfs/lib/libuutil/uu_avl.c b/lib/libuutil/uu_avl.c
index 308e9208f..308e9208f 100644
--- a/zfs/lib/libuutil/uu_avl.c
+++ b/lib/libuutil/uu_avl.c
diff --git a/zfs/lib/libuutil/uu_dprintf.c b/lib/libuutil/uu_dprintf.c
index 5b990a52b..5b990a52b 100644
--- a/zfs/lib/libuutil/uu_dprintf.c
+++ b/lib/libuutil/uu_dprintf.c
diff --git a/zfs/lib/libuutil/uu_ident.c b/lib/libuutil/uu_ident.c
index 9a643845f..9a643845f 100644
--- a/zfs/lib/libuutil/uu_ident.c
+++ b/lib/libuutil/uu_ident.c
diff --git a/zfs/lib/libuutil/uu_list.c b/lib/libuutil/uu_list.c
index 35c7ba800..35c7ba800 100644
--- a/zfs/lib/libuutil/uu_list.c
+++ b/lib/libuutil/uu_list.c
diff --git a/zfs/lib/libuutil/uu_misc.c b/lib/libuutil/uu_misc.c
index fc57328c2..fc57328c2 100644
--- a/zfs/lib/libuutil/uu_misc.c
+++ b/lib/libuutil/uu_misc.c
diff --git a/zfs/lib/libuutil/uu_open.c b/lib/libuutil/uu_open.c
index 7256662e3..7256662e3 100644
--- a/zfs/lib/libuutil/uu_open.c
+++ b/lib/libuutil/uu_open.c
diff --git a/zfs/lib/libuutil/uu_pname.c b/lib/libuutil/uu_pname.c
index 3307a26dc..3307a26dc 100644
--- a/zfs/lib/libuutil/uu_pname.c
+++ b/lib/libuutil/uu_pname.c
diff --git a/zfs/lib/libuutil/uu_strtoint.c b/lib/libuutil/uu_strtoint.c
index 8fd114836..8fd114836 100644
--- a/zfs/lib/libuutil/uu_strtoint.c
+++ b/lib/libuutil/uu_strtoint.c
diff --git a/zfs/lib/libzfs/include/libzfs.h b/lib/libzfs/include/libzfs.h
index c650865f3..c650865f3 100644
--- a/zfs/lib/libzfs/include/libzfs.h
+++ b/lib/libzfs/include/libzfs.h
diff --git a/zfs/lib/libzfs/include/libzfs_impl.h b/lib/libzfs/include/libzfs_impl.h
index 9f1f66d51..9f1f66d51 100644
--- a/zfs/lib/libzfs/include/libzfs_impl.h
+++ b/lib/libzfs/include/libzfs_impl.h
diff --git a/zfs/lib/libzfs/libzfs_changelist.c b/lib/libzfs/libzfs_changelist.c
index b905bc6cb..b905bc6cb 100644
--- a/zfs/lib/libzfs/libzfs_changelist.c
+++ b/lib/libzfs/libzfs_changelist.c
diff --git a/zfs/lib/libzfs/libzfs_config.c b/lib/libzfs/libzfs_config.c
index 94640d1b1..94640d1b1 100644
--- a/zfs/lib/libzfs/libzfs_config.c
+++ b/lib/libzfs/libzfs_config.c
diff --git a/zfs/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c
index a8005ffc0..a8005ffc0 100644
--- a/zfs/lib/libzfs/libzfs_dataset.c
+++ b/lib/libzfs/libzfs_dataset.c
diff --git a/zfs/lib/libzfs/libzfs_graph.c b/lib/libzfs/libzfs_graph.c
index e7cbf2386..e7cbf2386 100644
--- a/zfs/lib/libzfs/libzfs_graph.c
+++ b/lib/libzfs/libzfs_graph.c
diff --git a/zfs/lib/libzfs/libzfs_import.c b/lib/libzfs/libzfs_import.c
index d67776889..d67776889 100644
--- a/zfs/lib/libzfs/libzfs_import.c
+++ b/lib/libzfs/libzfs_import.c
diff --git a/zfs/lib/libzfs/libzfs_mount.c b/lib/libzfs/libzfs_mount.c
index 7c5c7f3ec..7c5c7f3ec 100644
--- a/zfs/lib/libzfs/libzfs_mount.c
+++ b/lib/libzfs/libzfs_mount.c
diff --git a/zfs/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c
index dc5407bef..dc5407bef 100644
--- a/zfs/lib/libzfs/libzfs_pool.c
+++ b/lib/libzfs/libzfs_pool.c
diff --git a/zfs/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c
index a3ed5cea8..a3ed5cea8 100644
--- a/zfs/lib/libzfs/libzfs_sendrecv.c
+++ b/lib/libzfs/libzfs_sendrecv.c
diff --git a/zfs/lib/libzfs/libzfs_status.c b/lib/libzfs/libzfs_status.c
index c7eb04e74..c7eb04e74 100644
--- a/zfs/lib/libzfs/libzfs_status.c
+++ b/lib/libzfs/libzfs_status.c
diff --git a/zfs/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c
index 54de0f4b5..54de0f4b5 100644
--- a/zfs/lib/libzfs/libzfs_util.c
+++ b/lib/libzfs/libzfs_util.c
diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h
new file mode 100644
index 000000000..0e7019bba
--- /dev/null
+++ b/lib/libzpool/include/sys/zfs_context.h
@@ -0,0 +1,547 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef _SYS_ZFS_CONTEXT_H
+#define _SYS_ZFS_CONTEXT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define _SYS_MUTEX_H
+#define _SYS_RWLOCK_H
+#define _SYS_CONDVAR_H
+#define _SYS_SYSTM_H
+#define _SYS_DEBUG_H
+#define _SYS_T_LOCK_H
+#define _SYS_VNODE_H
+#define _SYS_VFS_H
+#define _SYS_SUNDDI_H
+#define _SYS_CALLB_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <stdarg.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <errno.h>
+#include <string.h>
+#include <strings.h>
+#include <synch.h>
+#include <thread.h>
+#include <assert.h>
+#include <alloca.h>
+#include <umem.h>
+#include <limits.h>
+#include <atomic.h>
+#include <dirent.h>
+#include <time.h>
+#include <sys/note.h>
+#include <sys/types.h>
+#include <sys/cred.h>
+#include <sys/sysmacros.h>
+#include <sys/bitmap.h>
+#include <sys/resource.h>
+#include <sys/byteorder.h>
+#include <sys/list.h>
+#include <sys/uio.h>
+#include <sys/zfs_debug.h>
+#include <sys/sdt.h>
+#include <sys/kstat.h>
+#include <sys/u8_textprep.h>
+#include <sys/sysevent/eventdefs.h>
+
+/*
+ * Debugging
+ */
+
+/*
+ * Note that we are not using the debugging levels.
+ */
+
+#define CE_CONT 0 /* continuation */
+#define CE_NOTE 1 /* notice */
+#define CE_WARN 2 /* warning */
+#define CE_PANIC 3 /* panic */
+#define CE_IGNORE 4 /* print nothing */
+
+/*
+ * ZFS debugging
+ */
+
+#ifdef ZFS_DEBUG
+extern void dprintf_setup(int *argc, char **argv);
+#endif /* ZFS_DEBUG */
+
+extern void cmn_err(int, const char *, ...);
+extern void vcmn_err(int, const char *, __va_list);
+extern void panic(const char *, ...);
+extern void vpanic(const char *, __va_list);
+
+#define fm_panic panic
+
+/* This definition is copied from assert.h. */
+#if defined(__STDC__)
+#if __STDC_VERSION__ - 0 >= 199901L
+#define verify(EX) (void)((EX) || \
+ (__assert_c99(#EX, __FILE__, __LINE__, __func__), 0))
+#else
+#define verify(EX) (void)((EX) || (__assert(#EX, __FILE__, __LINE__), 0))
+#endif /* __STDC_VERSION__ - 0 >= 199901L */
+#else
+#define verify(EX) (void)((EX) || (_assert("EX", __FILE__, __LINE__), 0))
+#endif /* __STDC__ */
+
+
+#define VERIFY verify
+#define ASSERT assert
+
+extern void __assert(const char *, const char *, int);
+
+#ifdef lint
+#define VERIFY3_IMPL(x, y, z, t) if (x == z) ((void)0)
+#else
+/* BEGIN CSTYLED */
+#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE) do { \
+ const TYPE __left = (TYPE)(LEFT); \
+ const TYPE __right = (TYPE)(RIGHT); \
+ if (!(__left OP __right)) { \
+ char *__buf = alloca(256); \
+ (void) snprintf(__buf, 256, "%s %s %s (0x%llx %s 0x%llx)", \
+ #LEFT, #OP, #RIGHT, \
+ (u_longlong_t)__left, #OP, (u_longlong_t)__right); \
+ __assert(__buf, __FILE__, __LINE__); \
+ } \
+_NOTE(CONSTCOND) } while (0)
+/* END CSTYLED */
+#endif /* lint */
+
+#define VERIFY3S(x, y, z) VERIFY3_IMPL(x, y, z, int64_t)
+#define VERIFY3U(x, y, z) VERIFY3_IMPL(x, y, z, uint64_t)
+#define VERIFY3P(x, y, z) VERIFY3_IMPL(x, y, z, uintptr_t)
+
+#ifdef NDEBUG
+#define ASSERT3S(x, y, z) ((void)0)
+#define ASSERT3U(x, y, z) ((void)0)
+#define ASSERT3P(x, y, z) ((void)0)
+#else
+#define ASSERT3S(x, y, z) VERIFY3S(x, y, z)
+#define ASSERT3U(x, y, z) VERIFY3U(x, y, z)
+#define ASSERT3P(x, y, z) VERIFY3P(x, y, z)
+#endif
+
+/*
+ * DTrace SDT probes have different signatures in userland than they do in
+ * kernel. If they're being used in kernel code, re-define them out of
+ * existence for their counterparts in libzpool.
+ */
+
+#ifdef DTRACE_PROBE
+#undef DTRACE_PROBE
+#define DTRACE_PROBE(a) ((void)0)
+#endif /* DTRACE_PROBE */
+
+#ifdef DTRACE_PROBE1
+#undef DTRACE_PROBE1
+#define DTRACE_PROBE1(a, b, c) ((void)0)
+#endif /* DTRACE_PROBE1 */
+
+#ifdef DTRACE_PROBE2
+#undef DTRACE_PROBE2
+#define DTRACE_PROBE2(a, b, c, d, e) ((void)0)
+#endif /* DTRACE_PROBE2 */
+
+#ifdef DTRACE_PROBE3
+#undef DTRACE_PROBE3
+#define DTRACE_PROBE3(a, b, c, d, e, f, g) ((void)0)
+#endif /* DTRACE_PROBE3 */
+
+#ifdef DTRACE_PROBE4
+#undef DTRACE_PROBE4
+#define DTRACE_PROBE4(a, b, c, d, e, f, g, h, i) ((void)0)
+#endif /* DTRACE_PROBE4 */
+
+/*
+ * Threads
+ */
+#define curthread ((void *)(uintptr_t)thr_self())
+
+typedef struct kthread kthread_t;
+
+#define thread_create(stk, stksize, func, arg, len, pp, state, pri) \
+ zk_thread_create(func, arg)
+#define thread_exit() thr_exit(NULL)
+
+extern kthread_t *zk_thread_create(void (*func)(), void *arg);
+
+#define issig(why) (FALSE)
+#define ISSIG(thr, why) (FALSE)
+
+/*
+ * Mutexes
+ */
+typedef struct kmutex {
+ void *m_owner;
+ boolean_t initialized;
+ mutex_t m_lock;
+} kmutex_t;
+
+#define MUTEX_DEFAULT USYNC_THREAD
+#undef MUTEX_HELD
+#define MUTEX_HELD(m) _mutex_held(&(m)->m_lock)
+
+/*
+ * Argh -- we have to get cheesy here because the kernel and userland
+ * have different signatures for the same routine.
+ */
+extern int _mutex_init(mutex_t *mp, int type, void *arg);
+extern int _mutex_destroy(mutex_t *mp);
+
+#define mutex_init(mp, b, c, d) zmutex_init((kmutex_t *)(mp))
+#define mutex_destroy(mp) zmutex_destroy((kmutex_t *)(mp))
+
+extern void zmutex_init(kmutex_t *mp);
+extern void zmutex_destroy(kmutex_t *mp);
+extern void mutex_enter(kmutex_t *mp);
+extern void mutex_exit(kmutex_t *mp);
+extern int mutex_tryenter(kmutex_t *mp);
+extern void *mutex_owner(kmutex_t *mp);
+
+/*
+ * RW locks
+ */
+typedef struct krwlock {
+ void *rw_owner;
+ boolean_t initialized;
+ rwlock_t rw_lock;
+} krwlock_t;
+
+typedef int krw_t;
+
+#define RW_READER 0
+#define RW_WRITER 1
+#define RW_DEFAULT USYNC_THREAD
+
+#undef RW_READ_HELD
+#define RW_READ_HELD(x) _rw_read_held(&(x)->rw_lock)
+
+#undef RW_WRITE_HELD
+#define RW_WRITE_HELD(x) _rw_write_held(&(x)->rw_lock)
+
+extern void rw_init(krwlock_t *rwlp, char *name, int type, void *arg);
+extern void rw_destroy(krwlock_t *rwlp);
+extern void rw_enter(krwlock_t *rwlp, krw_t rw);
+extern int rw_tryenter(krwlock_t *rwlp, krw_t rw);
+extern int rw_tryupgrade(krwlock_t *rwlp);
+extern void rw_exit(krwlock_t *rwlp);
+#define rw_downgrade(rwlp) do { } while (0)
+
+extern uid_t crgetuid(cred_t *cr);
+extern gid_t crgetgid(cred_t *cr);
+extern int crgetngroups(cred_t *cr);
+extern gid_t *crgetgroups(cred_t *cr);
+
+/*
+ * Condition variables
+ */
+typedef cond_t kcondvar_t;
+
+#define CV_DEFAULT USYNC_THREAD
+
+extern void cv_init(kcondvar_t *cv, char *name, int type, void *arg);
+extern void cv_destroy(kcondvar_t *cv);
+extern void cv_wait(kcondvar_t *cv, kmutex_t *mp);
+extern clock_t cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime);
+extern void cv_signal(kcondvar_t *cv);
+extern void cv_broadcast(kcondvar_t *cv);
+
+/*
+ * kstat creation, installation and deletion
+ */
+extern kstat_t *kstat_create(char *, int,
+ char *, char *, uchar_t, ulong_t, uchar_t);
+extern void kstat_install(kstat_t *);
+extern void kstat_delete(kstat_t *);
+
+/*
+ * Kernel memory
+ */
+#define KM_SLEEP UMEM_NOFAIL
+#define KM_PUSHPAGE KM_SLEEP
+#define KM_NOSLEEP UMEM_DEFAULT
+#define KMC_NODEBUG UMC_NODEBUG
+#define kmem_alloc(_s, _f) umem_alloc(_s, _f)
+#define kmem_zalloc(_s, _f) umem_zalloc(_s, _f)
+#define kmem_free(_b, _s) umem_free(_b, _s)
+#define kmem_cache_create(_a, _b, _c, _d, _e, _f, _g, _h, _i) \
+ umem_cache_create(_a, _b, _c, _d, _e, _f, _g, _h, _i)
+#define kmem_cache_destroy(_c) umem_cache_destroy(_c)
+#define kmem_cache_alloc(_c, _f) umem_cache_alloc(_c, _f)
+#define kmem_cache_free(_c, _b) umem_cache_free(_c, _b)
+#define kmem_debugging() 0
+#define kmem_cache_reap_now(c)
+
+typedef umem_cache_t kmem_cache_t;
+
+/*
+ * Task queues
+ */
+typedef struct taskq taskq_t;
+typedef uintptr_t taskqid_t;
+typedef void (task_func_t)(void *);
+
+#define TASKQ_PREPOPULATE 0x0001
+#define TASKQ_CPR_SAFE 0x0002 /* Use CPR safe protocol */
+#define TASKQ_DYNAMIC 0x0004 /* Use dynamic thread scheduling */
+
+#define TQ_SLEEP KM_SLEEP /* Can block for memory */
+#define TQ_NOSLEEP KM_NOSLEEP /* cannot block for memory; may fail */
+#define TQ_NOQUEUE 0x02 /* Do not enqueue if can't dispatch */
+
+extern taskq_t *system_taskq;
+
+extern taskq_t *taskq_create(const char *, int, pri_t, int, int, uint_t);
+extern taskqid_t taskq_dispatch(taskq_t *, task_func_t, void *, uint_t);
+extern void taskq_destroy(taskq_t *);
+extern void taskq_wait(taskq_t *);
+extern int taskq_member(taskq_t *, void *);
+extern void system_taskq_init(void);
+
+#define XVA_MAPSIZE 3
+#define XVA_MAGIC 0x78766174
+
+/*
+ * vnodes
+ */
+typedef struct vnode {
+ uint64_t v_size;
+ int v_fd;
+ char *v_path;
+} vnode_t;
+
+
+typedef struct xoptattr {
+ timestruc_t xoa_createtime; /* Create time of file */
+ uint8_t xoa_archive;
+ uint8_t xoa_system;
+ uint8_t xoa_readonly;
+ uint8_t xoa_hidden;
+ uint8_t xoa_nounlink;
+ uint8_t xoa_immutable;
+ uint8_t xoa_appendonly;
+ uint8_t xoa_nodump;
+ uint8_t xoa_settable;
+ uint8_t xoa_opaque;
+ uint8_t xoa_av_quarantined;
+ uint8_t xoa_av_modified;
+} xoptattr_t;
+
+typedef struct vattr {
+ uint_t va_mask; /* bit-mask of attributes */
+ u_offset_t va_size; /* file size in bytes */
+} vattr_t;
+
+
+typedef struct xvattr {
+ vattr_t xva_vattr; /* Embedded vattr structure */
+ uint32_t xva_magic; /* Magic Number */
+ uint32_t xva_mapsize; /* Size of attr bitmap (32-bit words) */
+ uint32_t *xva_rtnattrmapp; /* Ptr to xva_rtnattrmap[] */
+ uint32_t xva_reqattrmap[XVA_MAPSIZE]; /* Requested attrs */
+ uint32_t xva_rtnattrmap[XVA_MAPSIZE]; /* Returned attrs */
+ xoptattr_t xva_xoptattrs; /* Optional attributes */
+} xvattr_t;
+
+typedef struct vsecattr {
+ uint_t vsa_mask; /* See below */
+ int vsa_aclcnt; /* ACL entry count */
+ void *vsa_aclentp; /* pointer to ACL entries */
+ int vsa_dfaclcnt; /* default ACL entry count */
+ void *vsa_dfaclentp; /* pointer to default ACL entries */
+ size_t vsa_aclentsz; /* ACE size in bytes of vsa_aclentp */
+} vsecattr_t;
+
+#define AT_TYPE 0x00001
+#define AT_MODE 0x00002
+#define AT_UID 0x00004
+#define AT_GID 0x00008
+#define AT_FSID 0x00010
+#define AT_NODEID 0x00020
+#define AT_NLINK 0x00040
+#define AT_SIZE 0x00080
+#define AT_ATIME 0x00100
+#define AT_MTIME 0x00200
+#define AT_CTIME 0x00400
+#define AT_RDEV 0x00800
+#define AT_BLKSIZE 0x01000
+#define AT_NBLOCKS 0x02000
+#define AT_SEQ 0x08000
+#define AT_XVATTR 0x10000
+
+#define CRCREAT 0
+
+#define VOP_CLOSE(vp, f, c, o, cr, ct) 0
+#define VOP_PUTPAGE(vp, of, sz, fl, cr, ct) 0
+#define VOP_GETATTR(vp, vap, fl, cr, ct) ((vap)->va_size = (vp)->v_size, 0)
+
+#define VOP_FSYNC(vp, f, cr, ct) fsync((vp)->v_fd)
+
+#define VN_RELE(vp) vn_close(vp)
+
+extern int vn_open(char *path, int x1, int oflags, int mode, vnode_t **vpp,
+ int x2, int x3);
+extern int vn_openat(char *path, int x1, int oflags, int mode, vnode_t **vpp,
+ int x2, int x3, vnode_t *vp, int fd);
+extern int vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len,
+ offset_t offset, int x1, int x2, rlim64_t x3, void *x4, ssize_t *residp);
+extern void vn_close(vnode_t *vp);
+
+#define vn_remove(path, x1, x2) remove(path)
+#define vn_rename(from, to, seg) rename((from), (to))
+#define vn_is_readonly(vp) B_FALSE
+
+extern vnode_t *rootdir;
+
+#include <sys/file.h> /* for FREAD, FWRITE, etc */
+
+/*
+ * Random stuff
+ */
+#define lbolt (gethrtime() >> 23)
+#define lbolt64 (gethrtime() >> 23)
+#define hz 119 /* frequency when using gethrtime() >> 23 for lbolt */
+
+extern void delay(clock_t ticks);
+
+#define gethrestime_sec() time(NULL)
+
+#define max_ncpus 64
+
+#define minclsyspri 60
+#define maxclsyspri 99
+
+#define CPU_SEQID (thr_self() & (max_ncpus - 1))
+
+#define kcred NULL
+#define CRED() NULL
+
+#define ptob(x) ((x) * PAGESIZE)
+
+extern uint64_t physmem;
+
+extern int highbit(ulong_t i);
+extern int random_get_bytes(uint8_t *ptr, size_t len);
+extern int random_get_pseudo_bytes(uint8_t *ptr, size_t len);
+
+extern void kernel_init(int);
+extern void kernel_fini(void);
+
+struct spa;
+extern void nicenum(uint64_t num, char *buf);
+extern void show_pool_stats(struct spa *);
+
+typedef struct callb_cpr {
+ kmutex_t *cc_lockp;
+} callb_cpr_t;
+
+#define CALLB_CPR_INIT(cp, lockp, func, name) { \
+ (cp)->cc_lockp = lockp; \
+}
+
+#define CALLB_CPR_SAFE_BEGIN(cp) { \
+ ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
+}
+
+#define CALLB_CPR_SAFE_END(cp, lockp) { \
+ ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
+}
+
+#define CALLB_CPR_EXIT(cp) { \
+ ASSERT(MUTEX_HELD((cp)->cc_lockp)); \
+ mutex_exit((cp)->cc_lockp); \
+}
+
+#define zone_dataset_visible(x, y) (1)
+#define INGLOBALZONE(z) (1)
+
+/*
+ * Hostname information
+ */
+extern char hw_serial[];
+extern int ddi_strtoul(const char *str, char **nptr, int base,
+ unsigned long *result);
+
+/* ZFS Boot Related stuff. */
+
+struct _buf {
+ intptr_t _fd;
+};
+
+struct bootstat {
+ uint64_t st_size;
+};
+
+typedef struct ace_object {
+ uid_t a_who;
+ uint32_t a_access_mask;
+ uint16_t a_flags;
+ uint16_t a_type;
+ uint8_t a_obj_type[16];
+ uint8_t a_inherit_obj_type[16];
+} ace_object_t;
+
+
+#define ACE_ACCESS_ALLOWED_OBJECT_ACE_TYPE 0x05
+#define ACE_ACCESS_DENIED_OBJECT_ACE_TYPE 0x06
+#define ACE_SYSTEM_AUDIT_OBJECT_ACE_TYPE 0x07
+#define ACE_SYSTEM_ALARM_OBJECT_ACE_TYPE 0x08
+
+extern struct _buf *kobj_open_file(char *name);
+extern int kobj_read_file(struct _buf *file, char *buf, unsigned size,
+ unsigned off);
+extern void kobj_close_file(struct _buf *file);
+extern int kobj_get_filesize(struct _buf *file, uint64_t *size);
+extern int zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr);
+extern int zfs_secpolicy_rename_perms(const char *from, const char *to,
+ cred_t *cr);
+extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
+extern zoneid_t getzoneid(void);
+
+/* SID stuff */
+typedef struct ksiddomain {
+ uint_t kd_ref;
+ uint_t kd_len;
+ char *kd_name;
+} ksiddomain_t;
+
+ksiddomain_t *ksid_lookupdomain(const char *);
+void ksiddomain_rele(ksiddomain_t *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYS_ZFS_CONTEXT_H */
diff --git a/zfs/lib/libzpool/kernel.c b/lib/libzpool/kernel.c
index b1a69b456..b1a69b456 100644
--- a/zfs/lib/libzpool/kernel.c
+++ b/lib/libzpool/kernel.c
diff --git a/zfs/lib/libzpool/taskq.c b/lib/libzpool/taskq.c
index d28f6024b..d28f6024b 100644
--- a/zfs/lib/libzpool/taskq.c
+++ b/lib/libzpool/taskq.c
diff --git a/zfs/lib/libzpool/util.c b/lib/libzpool/util.c
index 781edb6e8..781edb6e8 100644
--- a/zfs/lib/libzpool/util.c
+++ b/lib/libzpool/util.c
diff --git a/zfs/lib/libavl/avl.c b/module/avl/avl.c
index c9727c643..c9727c643 100644
--- a/zfs/lib/libavl/avl.c
+++ b/module/avl/avl.c
diff --git a/zfs/lib/libavl/include/sys/avl.h b/module/avl/include/sys/avl.h
index 02263a5a0..02263a5a0 100644
--- a/zfs/lib/libavl/include/sys/avl.h
+++ b/module/avl/include/sys/avl.h
diff --git a/zfs/lib/libavl/include/sys/avl_impl.h b/module/avl/include/sys/avl_impl.h
index 620685f37..620685f37 100644
--- a/zfs/lib/libavl/include/sys/avl_impl.h
+++ b/module/avl/include/sys/avl_impl.h
diff --git a/zfs/lib/libnvpair/include/libnvpair.h b/module/nvpair/include/libnvpair.h
index e655e0d40..e655e0d40 100644
--- a/zfs/lib/libnvpair/include/libnvpair.h
+++ b/module/nvpair/include/libnvpair.h
diff --git a/zfs/lib/libnvpair/include/sys/nvpair.h b/module/nvpair/include/sys/nvpair.h
index 9e768541f..9e768541f 100644
--- a/zfs/lib/libnvpair/include/sys/nvpair.h
+++ b/module/nvpair/include/sys/nvpair.h
diff --git a/zfs/lib/libnvpair/include/sys/nvpair_impl.h b/module/nvpair/include/sys/nvpair_impl.h
index f12dbbfe6..f12dbbfe6 100644
--- a/zfs/lib/libnvpair/include/sys/nvpair_impl.h
+++ b/module/nvpair/include/sys/nvpair_impl.h
diff --git a/zfs/lib/libnvpair/libnvpair.c b/module/nvpair/libnvpair.c
index 0845cb08c..0845cb08c 100644
--- a/zfs/lib/libnvpair/libnvpair.c
+++ b/module/nvpair/libnvpair.c
diff --git a/zfs/lib/libnvpair/nvpair.c b/module/nvpair/nvpair.c
index 77891bf77..77891bf77 100644
--- a/zfs/lib/libnvpair/nvpair.c
+++ b/module/nvpair/nvpair.c
diff --git a/zfs/lib/libnvpair/nvpair_alloc_fixed.c b/module/nvpair/nvpair_alloc_fixed.c
index b1128eeb9..b1128eeb9 100644
--- a/zfs/lib/libnvpair/nvpair_alloc_fixed.c
+++ b/module/nvpair/nvpair_alloc_fixed.c
diff --git a/zfs/lib/libnvpair/nvpair_alloc_system.c b/module/nvpair/nvpair_alloc_system.c
index e76557795..e76557795 100644
--- a/zfs/lib/libnvpair/nvpair_alloc_system.c
+++ b/module/nvpair/nvpair_alloc_system.c
diff --git a/zfs/lib/libzcommon/include/sys/fm/fs/zfs.h b/module/zcommon/include/sys/fm/fs/zfs.h
index 66ca9c5d7..66ca9c5d7 100644
--- a/zfs/lib/libzcommon/include/sys/fm/fs/zfs.h
+++ b/module/zcommon/include/sys/fm/fs/zfs.h
diff --git a/zfs/lib/libzcommon/include/sys/fs/zfs.h b/module/zcommon/include/sys/fs/zfs.h
index 95f04d842..95f04d842 100644
--- a/zfs/lib/libzcommon/include/sys/fs/zfs.h
+++ b/module/zcommon/include/sys/fs/zfs.h
diff --git a/zfs/lib/libzcommon/include/zfs_comutil.h b/module/zcommon/include/zfs_comutil.h
index f517044a8..f517044a8 100644
--- a/zfs/lib/libzcommon/include/zfs_comutil.h
+++ b/module/zcommon/include/zfs_comutil.h
diff --git a/zfs/lib/libzcommon/include/zfs_deleg.h b/module/zcommon/include/zfs_deleg.h
index 561b73e63..561b73e63 100644
--- a/zfs/lib/libzcommon/include/zfs_deleg.h
+++ b/module/zcommon/include/zfs_deleg.h
diff --git a/zfs/lib/libzcommon/include/zfs_namecheck.h b/module/zcommon/include/zfs_namecheck.h
index ec85e62f7..ec85e62f7 100644
--- a/zfs/lib/libzcommon/include/zfs_namecheck.h
+++ b/module/zcommon/include/zfs_namecheck.h
diff --git a/zfs/lib/libzcommon/include/zfs_prop.h b/module/zcommon/include/zfs_prop.h
index da5ae4309..da5ae4309 100644
--- a/zfs/lib/libzcommon/include/zfs_prop.h
+++ b/module/zcommon/include/zfs_prop.h
diff --git a/zfs/lib/libzcommon/zfs_comutil.c b/module/zcommon/zfs_comutil.c
index 74517a3f6..74517a3f6 100644
--- a/zfs/lib/libzcommon/zfs_comutil.c
+++ b/module/zcommon/zfs_comutil.c
diff --git a/zfs/lib/libzcommon/zfs_deleg.c b/module/zcommon/zfs_deleg.c
index 0fd5800a8..0fd5800a8 100644
--- a/zfs/lib/libzcommon/zfs_deleg.c
+++ b/module/zcommon/zfs_deleg.c
diff --git a/zfs/lib/libzcommon/zfs_namecheck.c b/module/zcommon/zfs_namecheck.c
index a9d109be2..a9d109be2 100644
--- a/zfs/lib/libzcommon/zfs_namecheck.c
+++ b/module/zcommon/zfs_namecheck.c
diff --git a/zfs/lib/libzcommon/zfs_prop.c b/module/zcommon/zfs_prop.c
index effd2dba7..effd2dba7 100644
--- a/zfs/lib/libzcommon/zfs_prop.c
+++ b/module/zcommon/zfs_prop.c
diff --git a/zfs/lib/libzcommon/zpool_prop.c b/module/zcommon/zpool_prop.c
index f5efe18d2..f5efe18d2 100644
--- a/zfs/lib/libzcommon/zpool_prop.c
+++ b/module/zcommon/zpool_prop.c
diff --git a/zfs/lib/libzcommon/zprop_common.c b/module/zcommon/zprop_common.c
index bd267e2e6..bd267e2e6 100644
--- a/zfs/lib/libzcommon/zprop_common.c
+++ b/module/zcommon/zprop_common.c
diff --git a/zfs/lib/libzpool/arc.c b/module/zfs/arc.c
index 73aecb285..73aecb285 100644
--- a/zfs/lib/libzpool/arc.c
+++ b/module/zfs/arc.c
diff --git a/zfs/lib/libzpool/bplist.c b/module/zfs/bplist.c
index 93b7741d7..93b7741d7 100644
--- a/zfs/lib/libzpool/bplist.c
+++ b/module/zfs/bplist.c
diff --git a/zfs/lib/libzpool/dbuf.c b/module/zfs/dbuf.c
index d04610317..d04610317 100644
--- a/zfs/lib/libzpool/dbuf.c
+++ b/module/zfs/dbuf.c
diff --git a/zfs/lib/libzpool/dmu.c b/module/zfs/dmu.c
index b6205bd50..b6205bd50 100644
--- a/zfs/lib/libzpool/dmu.c
+++ b/module/zfs/dmu.c
diff --git a/zfs/lib/libzpool/dmu_object.c b/module/zfs/dmu_object.c
index 1b9247d66..1b9247d66 100644
--- a/zfs/lib/libzpool/dmu_object.c
+++ b/module/zfs/dmu_object.c
diff --git a/zfs/lib/libzpool/dmu_objset.c b/module/zfs/dmu_objset.c
index 7981e0682..7981e0682 100644
--- a/zfs/lib/libzpool/dmu_objset.c
+++ b/module/zfs/dmu_objset.c
diff --git a/zfs/lib/libzpool/dmu_send.c b/module/zfs/dmu_send.c
index 857b9a343..857b9a343 100644
--- a/zfs/lib/libzpool/dmu_send.c
+++ b/module/zfs/dmu_send.c
diff --git a/zfs/lib/libzpool/dmu_traverse.c b/module/zfs/dmu_traverse.c
index 512401470..512401470 100644
--- a/zfs/lib/libzpool/dmu_traverse.c
+++ b/module/zfs/dmu_traverse.c
diff --git a/zfs/lib/libzpool/dmu_tx.c b/module/zfs/dmu_tx.c
index bf560e565..bf560e565 100644
--- a/zfs/lib/libzpool/dmu_tx.c
+++ b/module/zfs/dmu_tx.c
diff --git a/zfs/lib/libzpool/dmu_zfetch.c b/module/zfs/dmu_zfetch.c
index 4d79fe98e..4d79fe98e 100644
--- a/zfs/lib/libzpool/dmu_zfetch.c
+++ b/module/zfs/dmu_zfetch.c
diff --git a/zfs/lib/libzpool/dnode.c b/module/zfs/dnode.c
index e77834d60..e77834d60 100644
--- a/zfs/lib/libzpool/dnode.c
+++ b/module/zfs/dnode.c
diff --git a/zfs/lib/libzpool/dnode_sync.c b/module/zfs/dnode_sync.c
index 779cfc96f..779cfc96f 100644
--- a/zfs/lib/libzpool/dnode_sync.c
+++ b/module/zfs/dnode_sync.c
diff --git a/zfs/lib/libzpool/dsl_dataset.c b/module/zfs/dsl_dataset.c
index 93ea8aa11..93ea8aa11 100644
--- a/zfs/lib/libzpool/dsl_dataset.c
+++ b/module/zfs/dsl_dataset.c
diff --git a/zfs/lib/libzpool/dsl_deleg.c b/module/zfs/dsl_deleg.c
index da5d15787..da5d15787 100644
--- a/zfs/lib/libzpool/dsl_deleg.c
+++ b/module/zfs/dsl_deleg.c
diff --git a/zfs/lib/libzpool/dsl_dir.c b/module/zfs/dsl_dir.c
index 48d87f97f..48d87f97f 100644
--- a/zfs/lib/libzpool/dsl_dir.c
+++ b/module/zfs/dsl_dir.c
diff --git a/zfs/lib/libzpool/dsl_pool.c b/module/zfs/dsl_pool.c
index dacc57c81..dacc57c81 100644
--- a/zfs/lib/libzpool/dsl_pool.c
+++ b/module/zfs/dsl_pool.c
diff --git a/zfs/lib/libzpool/dsl_prop.c b/module/zfs/dsl_prop.c
index 212acbbc5..212acbbc5 100644
--- a/zfs/lib/libzpool/dsl_prop.c
+++ b/module/zfs/dsl_prop.c
diff --git a/zfs/lib/libzpool/dsl_scrub.c b/module/zfs/dsl_scrub.c
index 950a91f78..950a91f78 100644
--- a/zfs/lib/libzpool/dsl_scrub.c
+++ b/module/zfs/dsl_scrub.c
diff --git a/zfs/lib/libzpool/dsl_synctask.c b/module/zfs/dsl_synctask.c
index 21100225a..21100225a 100644
--- a/zfs/lib/libzpool/dsl_synctask.c
+++ b/module/zfs/dsl_synctask.c
diff --git a/zfs/lib/libzpool/fletcher.c b/module/zfs/fletcher.c
index edda3c9a9..edda3c9a9 100644
--- a/zfs/lib/libzpool/fletcher.c
+++ b/module/zfs/fletcher.c
diff --git a/zfs/lib/libzpool/gzip.c b/module/zfs/gzip.c
index b257d4af7..b257d4af7 100644
--- a/zfs/lib/libzpool/gzip.c
+++ b/module/zfs/gzip.c
diff --git a/zfs/lib/libzpool/include/sys/arc.h b/module/zfs/include/sys/arc.h
index 749bf53e5..749bf53e5 100644
--- a/zfs/lib/libzpool/include/sys/arc.h
+++ b/module/zfs/include/sys/arc.h
diff --git a/zfs/lib/libzpool/include/sys/bplist.h b/module/zfs/include/sys/bplist.h
index cdb93a6c3..cdb93a6c3 100644
--- a/zfs/lib/libzpool/include/sys/bplist.h
+++ b/module/zfs/include/sys/bplist.h
diff --git a/zfs/lib/libzpool/include/sys/dbuf.h b/module/zfs/include/sys/dbuf.h
index 75ce27264..75ce27264 100644
--- a/zfs/lib/libzpool/include/sys/dbuf.h
+++ b/module/zfs/include/sys/dbuf.h
diff --git a/zfs/lib/libzpool/include/sys/dmu.h b/module/zfs/include/sys/dmu.h
index 3b1e5c8fb..3b1e5c8fb 100644
--- a/zfs/lib/libzpool/include/sys/dmu.h
+++ b/module/zfs/include/sys/dmu.h
diff --git a/zfs/lib/libzpool/include/sys/dmu_impl.h b/module/zfs/include/sys/dmu_impl.h
index 96ce688e1..96ce688e1 100644
--- a/zfs/lib/libzpool/include/sys/dmu_impl.h
+++ b/module/zfs/include/sys/dmu_impl.h
diff --git a/zfs/lib/libzpool/include/sys/dmu_objset.h b/module/zfs/include/sys/dmu_objset.h
index 15df29a17..15df29a17 100644
--- a/zfs/lib/libzpool/include/sys/dmu_objset.h
+++ b/module/zfs/include/sys/dmu_objset.h
diff --git a/zfs/lib/libzpool/include/sys/dmu_traverse.h b/module/zfs/include/sys/dmu_traverse.h
index 3e0268911..3e0268911 100644
--- a/zfs/lib/libzpool/include/sys/dmu_traverse.h
+++ b/module/zfs/include/sys/dmu_traverse.h
diff --git a/zfs/lib/libzpool/include/sys/dmu_tx.h b/module/zfs/include/sys/dmu_tx.h
index 2727daaaa..2727daaaa 100644
--- a/zfs/lib/libzpool/include/sys/dmu_tx.h
+++ b/module/zfs/include/sys/dmu_tx.h
diff --git a/zfs/lib/libzpool/include/sys/dmu_zfetch.h b/module/zfs/include/sys/dmu_zfetch.h
index c94bced93..c94bced93 100644
--- a/zfs/lib/libzpool/include/sys/dmu_zfetch.h
+++ b/module/zfs/include/sys/dmu_zfetch.h
diff --git a/zfs/lib/libzpool/include/sys/dnode.h b/module/zfs/include/sys/dnode.h
index c79ff48a6..c79ff48a6 100644
--- a/zfs/lib/libzpool/include/sys/dnode.h
+++ b/module/zfs/include/sys/dnode.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_dataset.h b/module/zfs/include/sys/dsl_dataset.h
index 8665aec2d..8665aec2d 100644
--- a/zfs/lib/libzpool/include/sys/dsl_dataset.h
+++ b/module/zfs/include/sys/dsl_dataset.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_deleg.h b/module/zfs/include/sys/dsl_deleg.h
index a29e44e67..a29e44e67 100644
--- a/zfs/lib/libzpool/include/sys/dsl_deleg.h
+++ b/module/zfs/include/sys/dsl_deleg.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_dir.h b/module/zfs/include/sys/dsl_dir.h
index 86b9636ce..86b9636ce 100644
--- a/zfs/lib/libzpool/include/sys/dsl_dir.h
+++ b/module/zfs/include/sys/dsl_dir.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_pool.h b/module/zfs/include/sys/dsl_pool.h
index 3bb4ad4ef..3bb4ad4ef 100644
--- a/zfs/lib/libzpool/include/sys/dsl_pool.h
+++ b/module/zfs/include/sys/dsl_pool.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_prop.h b/module/zfs/include/sys/dsl_prop.h
index d66caa86c..d66caa86c 100644
--- a/zfs/lib/libzpool/include/sys/dsl_prop.h
+++ b/module/zfs/include/sys/dsl_prop.h
diff --git a/zfs/lib/libzpool/include/sys/dsl_synctask.h b/module/zfs/include/sys/dsl_synctask.h
index 4995bfe5a..4995bfe5a 100644
--- a/zfs/lib/libzpool/include/sys/dsl_synctask.h
+++ b/module/zfs/include/sys/dsl_synctask.h
diff --git a/zfs/lib/libzpool/include/sys/metaslab.h b/module/zfs/include/sys/metaslab.h
index 1c9d89e8f..1c9d89e8f 100644
--- a/zfs/lib/libzpool/include/sys/metaslab.h
+++ b/module/zfs/include/sys/metaslab.h
diff --git a/zfs/lib/libzpool/include/sys/metaslab_impl.h b/module/zfs/include/sys/metaslab_impl.h
index 5980cbc84..5980cbc84 100644
--- a/zfs/lib/libzpool/include/sys/metaslab_impl.h
+++ b/module/zfs/include/sys/metaslab_impl.h
diff --git a/zfs/lib/libzpool/include/sys/refcount.h b/module/zfs/include/sys/refcount.h
index d3fe7b1f8..d3fe7b1f8 100644
--- a/zfs/lib/libzpool/include/sys/refcount.h
+++ b/module/zfs/include/sys/refcount.h
diff --git a/zfs/lib/libzpool/include/sys/rrwlock.h b/module/zfs/include/sys/rrwlock.h
index 19a43c97f..19a43c97f 100644
--- a/zfs/lib/libzpool/include/sys/rrwlock.h
+++ b/module/zfs/include/sys/rrwlock.h
diff --git a/zfs/lib/libzpool/include/sys/spa.h b/module/zfs/include/sys/spa.h
index 24b3ca447..24b3ca447 100644
--- a/zfs/lib/libzpool/include/sys/spa.h
+++ b/module/zfs/include/sys/spa.h
diff --git a/zfs/lib/libzpool/include/sys/spa_boot.h b/module/zfs/include/sys/spa_boot.h
index b56073b97..b56073b97 100644
--- a/zfs/lib/libzpool/include/sys/spa_boot.h
+++ b/module/zfs/include/sys/spa_boot.h
diff --git a/zfs/lib/libzpool/include/sys/spa_impl.h b/module/zfs/include/sys/spa_impl.h
index 8aeb414fe..8aeb414fe 100644
--- a/zfs/lib/libzpool/include/sys/spa_impl.h
+++ b/module/zfs/include/sys/spa_impl.h
diff --git a/zfs/lib/libzpool/include/sys/space_map.h b/module/zfs/include/sys/space_map.h
index db9daef1f..db9daef1f 100644
--- a/zfs/lib/libzpool/include/sys/space_map.h
+++ b/module/zfs/include/sys/space_map.h
diff --git a/zfs/lib/libzpool/include/sys/txg.h b/module/zfs/include/sys/txg.h
index 23bdff211..23bdff211 100644
--- a/zfs/lib/libzpool/include/sys/txg.h
+++ b/module/zfs/include/sys/txg.h
diff --git a/zfs/lib/libzpool/include/sys/txg_impl.h b/module/zfs/include/sys/txg_impl.h
index 7413c662b..7413c662b 100644
--- a/zfs/lib/libzpool/include/sys/txg_impl.h
+++ b/module/zfs/include/sys/txg_impl.h
diff --git a/zfs/lib/libzpool/include/sys/uberblock.h b/module/zfs/include/sys/uberblock.h
index 93d936ae4..93d936ae4 100644
--- a/zfs/lib/libzpool/include/sys/uberblock.h
+++ b/module/zfs/include/sys/uberblock.h
diff --git a/zfs/lib/libzpool/include/sys/uberblock_impl.h b/module/zfs/include/sys/uberblock_impl.h
index 55a0dd5ae..55a0dd5ae 100644
--- a/zfs/lib/libzpool/include/sys/uberblock_impl.h
+++ b/module/zfs/include/sys/uberblock_impl.h
diff --git a/zfs/lib/libzpool/include/sys/unique.h b/module/zfs/include/sys/unique.h
index 2ef3093ed..2ef3093ed 100644
--- a/zfs/lib/libzpool/include/sys/unique.h
+++ b/module/zfs/include/sys/unique.h
diff --git a/zfs/lib/libzpool/include/sys/vdev.h b/module/zfs/include/sys/vdev.h
index c070d6f3d..c070d6f3d 100644
--- a/zfs/lib/libzpool/include/sys/vdev.h
+++ b/module/zfs/include/sys/vdev.h
diff --git a/zfs/lib/libzpool/include/sys/vdev_file.h b/module/zfs/include/sys/vdev_file.h
index cd4967357..cd4967357 100644
--- a/zfs/lib/libzpool/include/sys/vdev_file.h
+++ b/module/zfs/include/sys/vdev_file.h
diff --git a/zfs/lib/libzpool/include/sys/vdev_impl.h b/module/zfs/include/sys/vdev_impl.h
index 26904d089..26904d089 100644
--- a/zfs/lib/libzpool/include/sys/vdev_impl.h
+++ b/module/zfs/include/sys/vdev_impl.h
diff --git a/zfs/lib/libzpool/include/sys/zap.h b/module/zfs/include/sys/zap.h
index f88cc068b..f88cc068b 100644
--- a/zfs/lib/libzpool/include/sys/zap.h
+++ b/module/zfs/include/sys/zap.h
diff --git a/zfs/lib/libzpool/include/sys/zap_impl.h b/module/zfs/include/sys/zap_impl.h
index 0dc02ab6b..0dc02ab6b 100644
--- a/zfs/lib/libzpool/include/sys/zap_impl.h
+++ b/module/zfs/include/sys/zap_impl.h
diff --git a/zfs/lib/libzpool/include/sys/zap_leaf.h b/module/zfs/include/sys/zap_leaf.h
index 14144e059..14144e059 100644
--- a/zfs/lib/libzpool/include/sys/zap_leaf.h
+++ b/module/zfs/include/sys/zap_leaf.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_acl.h b/module/zfs/include/sys/zfs_acl.h
index bd91b33d1..bd91b33d1 100644
--- a/zfs/lib/libzpool/include/sys/zfs_acl.h
+++ b/module/zfs/include/sys/zfs_acl.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_context.h b/module/zfs/include/sys/zfs_context.h
index a5be3e130..a5be3e130 100644
--- a/zfs/lib/libzpool/include/sys/zfs_context.h
+++ b/module/zfs/include/sys/zfs_context.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_ctldir.h b/module/zfs/include/sys/zfs_ctldir.h
index ce29625d1..ce29625d1 100644
--- a/zfs/lib/libzpool/include/sys/zfs_ctldir.h
+++ b/module/zfs/include/sys/zfs_ctldir.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_debug.h b/module/zfs/include/sys/zfs_debug.h
index 450ac1c81..450ac1c81 100644
--- a/zfs/lib/libzpool/include/sys/zfs_debug.h
+++ b/module/zfs/include/sys/zfs_debug.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_dir.h b/module/zfs/include/sys/zfs_dir.h
index ebb66e8ae..ebb66e8ae 100644
--- a/zfs/lib/libzpool/include/sys/zfs_dir.h
+++ b/module/zfs/include/sys/zfs_dir.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_fuid.h b/module/zfs/include/sys/zfs_fuid.h
index 810ffc81a..810ffc81a 100644
--- a/zfs/lib/libzpool/include/sys/zfs_fuid.h
+++ b/module/zfs/include/sys/zfs_fuid.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_ioctl.h b/module/zfs/include/sys/zfs_ioctl.h
index 1692608bb..1692608bb 100644
--- a/zfs/lib/libzpool/include/sys/zfs_ioctl.h
+++ b/module/zfs/include/sys/zfs_ioctl.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_rlock.h b/module/zfs/include/sys/zfs_rlock.h
index f302b663e..f302b663e 100644
--- a/zfs/lib/libzpool/include/sys/zfs_rlock.h
+++ b/module/zfs/include/sys/zfs_rlock.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_vfsops.h b/module/zfs/include/sys/zfs_vfsops.h
index 87b75e6e7..87b75e6e7 100644
--- a/zfs/lib/libzpool/include/sys/zfs_vfsops.h
+++ b/module/zfs/include/sys/zfs_vfsops.h
diff --git a/zfs/lib/libzpool/include/sys/zfs_znode.h b/module/zfs/include/sys/zfs_znode.h
index a5416525c..a5416525c 100644
--- a/zfs/lib/libzpool/include/sys/zfs_znode.h
+++ b/module/zfs/include/sys/zfs_znode.h
diff --git a/zfs/lib/libzpool/include/sys/zil.h b/module/zfs/include/sys/zil.h
index 4d02d14f7..4d02d14f7 100644
--- a/zfs/lib/libzpool/include/sys/zil.h
+++ b/module/zfs/include/sys/zil.h
diff --git a/zfs/lib/libzpool/include/sys/zil_impl.h b/module/zfs/include/sys/zil_impl.h
index 0fc800b96..0fc800b96 100644
--- a/zfs/lib/libzpool/include/sys/zil_impl.h
+++ b/module/zfs/include/sys/zil_impl.h
diff --git a/zfs/lib/libzpool/include/sys/zio.h b/module/zfs/include/sys/zio.h
index 4de78dfee..4de78dfee 100644
--- a/zfs/lib/libzpool/include/sys/zio.h
+++ b/module/zfs/include/sys/zio.h
diff --git a/zfs/lib/libzpool/include/sys/zio_checksum.h b/module/zfs/include/sys/zio_checksum.h
index da407399d..da407399d 100644
--- a/zfs/lib/libzpool/include/sys/zio_checksum.h
+++ b/module/zfs/include/sys/zio_checksum.h
diff --git a/zfs/lib/libzpool/include/sys/zio_compress.h b/module/zfs/include/sys/zio_compress.h
index 66ee8d45b..66ee8d45b 100644
--- a/zfs/lib/libzpool/include/sys/zio_compress.h
+++ b/module/zfs/include/sys/zio_compress.h
diff --git a/zfs/lib/libzpool/include/sys/zio_impl.h b/module/zfs/include/sys/zio_impl.h
index e7503b733..e7503b733 100644
--- a/zfs/lib/libzpool/include/sys/zio_impl.h
+++ b/module/zfs/include/sys/zio_impl.h
diff --git a/zfs/lib/libzpool/include/sys/zvol.h b/module/zfs/include/sys/zvol.h
index 06adc667e..06adc667e 100644
--- a/zfs/lib/libzpool/include/sys/zvol.h
+++ b/module/zfs/include/sys/zvol.h
diff --git a/zfs/lib/libzpool/lzjb.c b/module/zfs/lzjb.c
index 7fcde8475..7fcde8475 100644
--- a/zfs/lib/libzpool/lzjb.c
+++ b/module/zfs/lzjb.c
diff --git a/zfs/lib/libzpool/metaslab.c b/module/zfs/metaslab.c
index 87727fac2..87727fac2 100644
--- a/zfs/lib/libzpool/metaslab.c
+++ b/module/zfs/metaslab.c
diff --git a/zfs/lib/libzpool/refcount.c b/module/zfs/refcount.c
index f1b3b23fe..f1b3b23fe 100644
--- a/zfs/lib/libzpool/refcount.c
+++ b/module/zfs/refcount.c
diff --git a/zfs/lib/libzpool/rrwlock.c b/module/zfs/rrwlock.c
index 710685dbc..710685dbc 100644
--- a/zfs/lib/libzpool/rrwlock.c
+++ b/module/zfs/rrwlock.c
diff --git a/zfs/lib/libzpool/sha256.c b/module/zfs/sha256.c
index ca7076cb6..ca7076cb6 100644
--- a/zfs/lib/libzpool/sha256.c
+++ b/module/zfs/sha256.c
diff --git a/zfs/lib/libzpool/spa.c b/module/zfs/spa.c
index fb1b96f8b..fb1b96f8b 100644
--- a/zfs/lib/libzpool/spa.c
+++ b/module/zfs/spa.c
diff --git a/zfs/lib/libzpool/spa_boot.c b/module/zfs/spa_boot.c
index 49e9e5019..49e9e5019 100644
--- a/zfs/lib/libzpool/spa_boot.c
+++ b/module/zfs/spa_boot.c
diff --git a/zfs/lib/libzpool/spa_config.c b/module/zfs/spa_config.c
index ee425a916..ee425a916 100644
--- a/zfs/lib/libzpool/spa_config.c
+++ b/module/zfs/spa_config.c
diff --git a/zfs/lib/libzpool/spa_errlog.c b/module/zfs/spa_errlog.c
index c642bd768..c642bd768 100644
--- a/zfs/lib/libzpool/spa_errlog.c
+++ b/module/zfs/spa_errlog.c
diff --git a/zfs/lib/libzpool/spa_history.c b/module/zfs/spa_history.c
index c997240c1..c997240c1 100644
--- a/zfs/lib/libzpool/spa_history.c
+++ b/module/zfs/spa_history.c
diff --git a/zfs/lib/libzpool/spa_misc.c b/module/zfs/spa_misc.c
index 36046e6df..36046e6df 100644
--- a/zfs/lib/libzpool/spa_misc.c
+++ b/module/zfs/spa_misc.c
diff --git a/zfs/lib/libzpool/space_map.c b/module/zfs/space_map.c
index 0a1fd59ea..0a1fd59ea 100644
--- a/zfs/lib/libzpool/space_map.c
+++ b/module/zfs/space_map.c
diff --git a/zfs/lib/libzpool/txg.c b/module/zfs/txg.c
index 2bbf2f086..2bbf2f086 100644
--- a/zfs/lib/libzpool/txg.c
+++ b/module/zfs/txg.c
diff --git a/zfs/lib/libzpool/uberblock.c b/module/zfs/uberblock.c
index 34d7e0c3a..34d7e0c3a 100644
--- a/zfs/lib/libzpool/uberblock.c
+++ b/module/zfs/uberblock.c
diff --git a/zfs/lib/libzpool/unique.c b/module/zfs/unique.c
index fbe7b619a..fbe7b619a 100644
--- a/zfs/lib/libzpool/unique.c
+++ b/module/zfs/unique.c
diff --git a/zfs/lib/libzpool/vdev.c b/module/zfs/vdev.c
index 16a27e514..16a27e514 100644
--- a/zfs/lib/libzpool/vdev.c
+++ b/module/zfs/vdev.c
diff --git a/zfs/lib/libzpool/vdev_cache.c b/module/zfs/vdev_cache.c
index 5a7b59f6e..5a7b59f6e 100644
--- a/zfs/lib/libzpool/vdev_cache.c
+++ b/module/zfs/vdev_cache.c
diff --git a/zfs/lib/libzpool/vdev_file.c b/module/zfs/vdev_file.c
index dc0e920bf..dc0e920bf 100644
--- a/zfs/lib/libzpool/vdev_file.c
+++ b/module/zfs/vdev_file.c
diff --git a/zfs/lib/libzpool/vdev_label.c b/module/zfs/vdev_label.c
index bf930466f..bf930466f 100644
--- a/zfs/lib/libzpool/vdev_label.c
+++ b/module/zfs/vdev_label.c
diff --git a/zfs/lib/libzpool/vdev_mirror.c b/module/zfs/vdev_mirror.c
index c4629ff45..c4629ff45 100644
--- a/zfs/lib/libzpool/vdev_mirror.c
+++ b/module/zfs/vdev_mirror.c
diff --git a/zfs/lib/libzpool/vdev_missing.c b/module/zfs/vdev_missing.c
index 731f7d3dc..731f7d3dc 100644
--- a/zfs/lib/libzpool/vdev_missing.c
+++ b/module/zfs/vdev_missing.c
diff --git a/zfs/lib/libzpool/vdev_queue.c b/module/zfs/vdev_queue.c
index 46fca0e3b..46fca0e3b 100644
--- a/zfs/lib/libzpool/vdev_queue.c
+++ b/module/zfs/vdev_queue.c
diff --git a/zfs/lib/libzpool/vdev_raidz.c b/module/zfs/vdev_raidz.c
index 69e314468..69e314468 100644
--- a/zfs/lib/libzpool/vdev_raidz.c
+++ b/module/zfs/vdev_raidz.c
diff --git a/zfs/lib/libzpool/vdev_root.c b/module/zfs/vdev_root.c
index 88383f002..88383f002 100644
--- a/zfs/lib/libzpool/vdev_root.c
+++ b/module/zfs/vdev_root.c
diff --git a/zfs/lib/libzpool/zap.c b/module/zfs/zap.c
index ca859ec35..ca859ec35 100644
--- a/zfs/lib/libzpool/zap.c
+++ b/module/zfs/zap.c
diff --git a/zfs/lib/libzpool/zap_leaf.c b/module/zfs/zap_leaf.c
index da498b6bc..da498b6bc 100644
--- a/zfs/lib/libzpool/zap_leaf.c
+++ b/module/zfs/zap_leaf.c
diff --git a/zfs/lib/libzpool/zap_micro.c b/module/zfs/zap_micro.c
index abba42775..abba42775 100644
--- a/zfs/lib/libzpool/zap_micro.c
+++ b/module/zfs/zap_micro.c
diff --git a/zfs/lib/libzpool/zfs_acl.c b/module/zfs/zfs_acl.c
index 341dc4dfe..341dc4dfe 100644
--- a/zfs/lib/libzpool/zfs_acl.c
+++ b/module/zfs/zfs_acl.c
diff --git a/zfs/lib/libzpool/zfs_byteswap.c b/module/zfs/zfs_byteswap.c
index ab97f83eb..ab97f83eb 100644
--- a/zfs/lib/libzpool/zfs_byteswap.c
+++ b/module/zfs/zfs_byteswap.c
diff --git a/zfs/lib/libzpool/zfs_ctldir.c b/module/zfs/zfs_ctldir.c
index 208fc3629..208fc3629 100644
--- a/zfs/lib/libzpool/zfs_ctldir.c
+++ b/module/zfs/zfs_ctldir.c
diff --git a/zfs/lib/libzpool/zfs_dir.c b/module/zfs/zfs_dir.c
index 1ec493264..1ec493264 100644
--- a/zfs/lib/libzpool/zfs_dir.c
+++ b/module/zfs/zfs_dir.c
diff --git a/zfs/lib/libzpool/zfs_fm.c b/module/zfs/zfs_fm.c
index 236d69e7e..236d69e7e 100644
--- a/zfs/lib/libzpool/zfs_fm.c
+++ b/module/zfs/zfs_fm.c
diff --git a/zfs/lib/libzpool/zfs_fuid.c b/module/zfs/zfs_fuid.c
index 7cb505258..7cb505258 100644
--- a/zfs/lib/libzpool/zfs_fuid.c
+++ b/module/zfs/zfs_fuid.c
diff --git a/zfs/lib/libzpool/zfs_ioctl.c b/module/zfs/zfs_ioctl.c
index b6ad57451..b6ad57451 100644
--- a/zfs/lib/libzpool/zfs_ioctl.c
+++ b/module/zfs/zfs_ioctl.c
diff --git a/zfs/lib/libzpool/zfs_log.c b/module/zfs/zfs_log.c
index 11cd4c264..11cd4c264 100644
--- a/zfs/lib/libzpool/zfs_log.c
+++ b/module/zfs/zfs_log.c
diff --git a/zfs/lib/libzpool/zfs_replay.c b/module/zfs/zfs_replay.c
index 85b79703a..85b79703a 100644
--- a/zfs/lib/libzpool/zfs_replay.c
+++ b/module/zfs/zfs_replay.c
diff --git a/zfs/lib/libzpool/zfs_rlock.c b/module/zfs/zfs_rlock.c
index f0a75b5fa..f0a75b5fa 100644
--- a/zfs/lib/libzpool/zfs_rlock.c
+++ b/module/zfs/zfs_rlock.c
diff --git a/zfs/lib/libzpool/zfs_vfsops.c b/module/zfs/zfs_vfsops.c
index 06b4dee46..06b4dee46 100644
--- a/zfs/lib/libzpool/zfs_vfsops.c
+++ b/module/zfs/zfs_vfsops.c
diff --git a/zfs/lib/libzpool/zfs_vnops.c b/module/zfs/zfs_vnops.c
index 8e0037e37..8e0037e37 100644
--- a/zfs/lib/libzpool/zfs_vnops.c
+++ b/module/zfs/zfs_vnops.c
diff --git a/zfs/lib/libzpool/zfs_znode.c b/module/zfs/zfs_znode.c
index 25751ae5f..25751ae5f 100644
--- a/zfs/lib/libzpool/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
diff --git a/zfs/lib/libzpool/zil.c b/module/zfs/zil.c
index 95101882b..95101882b 100644
--- a/zfs/lib/libzpool/zil.c
+++ b/module/zfs/zil.c
diff --git a/zfs/lib/libzpool/zio.c b/module/zfs/zio.c
index d347920ea..d347920ea 100644
--- a/zfs/lib/libzpool/zio.c
+++ b/module/zfs/zio.c
diff --git a/zfs/lib/libzpool/zio_checksum.c b/module/zfs/zio_checksum.c
index bf7fe733f..bf7fe733f 100644
--- a/zfs/lib/libzpool/zio_checksum.c
+++ b/module/zfs/zio_checksum.c
diff --git a/zfs/lib/libzpool/zio_compress.c b/module/zfs/zio_compress.c
index c563be4eb..c563be4eb 100644
--- a/zfs/lib/libzpool/zio_compress.c
+++ b/module/zfs/zio_compress.c
diff --git a/zfs/lib/libzpool/zio_inject.c b/module/zfs/zio_inject.c
index b3469fdd5..b3469fdd5 100644
--- a/zfs/lib/libzpool/zio_inject.c
+++ b/module/zfs/zio_inject.c
diff --git a/zfs/lib/libzpool/zvol.c b/module/zfs/zvol.c
index 4e993060c..4e993060c 100644
--- a/zfs/lib/libzpool/zvol.c
+++ b/module/zfs/zvol.c
diff --git a/scripts/update-zfs.sh b/scripts/update-zfs.sh
index 2aa2425c6..318f45f39 100755
--- a/scripts/update-zfs.sh
+++ b/scripts/update-zfs.sh
@@ -38,7 +38,7 @@ echo "------------- Fetching OpenSolaris ${RELEASE} archive ----------------"
wget ${REMOTE_SRC} -P ${SRC} ||
die "Error 'wget ${REMOTE_SRC}'"
-echo "------------- Unpacking OperSolaris ${RELEASE} archive ---------------"
+echo "------------- Unpacking OpenSolaris ${RELEASE} archive ---------------"
tar -xjf ${SRC}/on-src.tar.bz2 -C ${SRC} ||
die "Error 'tar -xjf ${SRC}/on-src.tar.bz2 -C ${SRC}'"
@@ -49,35 +49,47 @@ SRC_UTS=${SRC}/usr/src/uts
SRC_UCM=${SRC}/usr/src/uts/common
SRC_ZLIB=${SRC}/usr/src/uts/common/fs/zfs
-DST_LIB=${DST}/zfs/lib
-DST_CMD=${DST}/zfs/zcmd
+DST_MOD=${DST}/module
+DST_LIB=${DST}/lib
+DST_CMD=${DST}/cmd
rm -Rf ${DST}/zfs
echo
echo "------------- Updating ZFS from OpenSolaris ${RELEASE} ---------------"
-echo "* zfs/lib/libavl"
-mkdir -p ${DST_LIB}/libavl/include/sys/
-cp ${SRC_CM}/avl/avl.c ${DST_LIB}/libavl/
-cp ${SRC_UCM}/sys/avl.h ${DST_LIB}/libavl/include/sys/
-cp ${SRC_UCM}/sys/avl_impl.h ${DST_LIB}/libavl/include/sys/
-
-echo "* zfs/lib/libnvpair"
-mkdir -p ${DST_LIB}/libnvpair/include/sys/
-cp ${SRC_CM}/nvpair/nvpair.c ${DST_LIB}/libnvpair/
-cp ${SRC_LIB}/libnvpair/libnvpair.c ${DST_LIB}/libnvpair/
-cp ${SRC_UCM}/os/nvpair_alloc_system.c ${DST_LIB}/libnvpair/
-cp ${SRC_CM}/nvpair/nvpair_alloc_fixed.c ${DST_LIB}/libnvpair/
-cp ${SRC_LIB}/libnvpair/libnvpair.h ${DST_LIB}/libnvpair/include/
-cp ${SRC_UCM}/sys/nvpair.h ${DST_LIB}/libnvpair/include/sys/
-cp ${SRC_UCM}/sys/nvpair_impl.h ${DST_LIB}/libnvpair/include/sys/
-
-echo "* zfs/lib/libuutil"
-mkdir -p ${DST_LIB}/libuutil/include/
-cp ${SRC_LIB}/libuutil/common/*.c ${DST_LIB}/libuutil/
-cp ${SRC_LIB}/libuutil/common/*.h ${DST_LIB}/libuutil/include/
-
-echo "* zfs/lib/libspl"
+echo "* module/avl + lib/libavl"
+mkdir -p ${DST_MOD}/avl/include/sys/
+cp ${SRC_CM}/avl/avl.c ${DST_MOD}/avl/
+cp ${SRC_UCM}/sys/avl.h ${DST_MOD}/avl/include/sys/
+cp ${SRC_UCM}/sys/avl_impl.h ${DST_MOD}/avl/include/sys/
+
+echo "* module/nvpair + lib/libnvpair"
+mkdir -p ${DST_MOD}/nvpair/include/sys/
+cp ${SRC_CM}/nvpair/nvpair.c ${DST_MOD}/nvpair/
+cp ${SRC_LIB}/libnvpair/libnvpair.c ${DST_MOD}/nvpair/
+cp ${SRC_UCM}/os/nvpair_alloc_system.c ${DST_MOD}/nvpair/
+cp ${SRC_CM}/nvpair/nvpair_alloc_fixed.c ${DST_MOD}/nvpair/
+cp ${SRC_LIB}/libnvpair/libnvpair.h ${DST_MOD}/nvpair/include/
+cp ${SRC_UCM}/sys/nvpair.h ${DST_MOD}/nvpair/include/sys/
+cp ${SRC_UCM}/sys/nvpair_impl.h ${DST_MOD}/nvpair/include/sys/
+
+echo "* module/zcommon + lib/libzcommon"
+mkdir -p ${DST_MOD}/zcommon/include/sys/fs/
+mkdir -p ${DST_MOD}/zcommon/include/sys/fm/fs/
+cp ${SRC_CM}/zfs/*.c ${DST_MOD}/zcommon/
+cp ${SRC_CM}/zfs/*.h ${DST_MOD}/zcommon/include/
+cp ${SRC_UCM}/sys/fs/zfs.h ${DST_MOD}/zcommon/include/sys/fs/
+cp ${SRC_UCM}/sys/fm/fs/zfs.h ${DST_MOD}/zcommon/include/sys/fm/fs/
+
+echo "* module/zfs"
+mkdir -p ${DST_MOD}/zpool/include/sys/
+cp ${SRC_UTS}/intel/zfs/spa_boot.c ${DST_MOD}/zfs/
+cp ${SRC_ZLIB}/*.c ${DST_MOD}/zfs/
+cp ${SRC_ZLIB}/sys/*.h ${DST_MOD}/zfs/include/sys/
+rm ${DST_MOD}/zfs/vdev_disk.c
+rm ${DST_MOD}/zfs/include/sys/vdev_disk.h
+
+echo "* lib/libspl"
mkdir -p ${DST_LIB}/libspl/include/sys/
cp ${SRC_LIB}/libc/port/gen/strlcat.c ${DST_LIB}/libspl/
cp ${SRC_LIB}/libc/port/gen/strlcpy.c ${DST_LIB}/libspl/
@@ -88,56 +100,50 @@ cp ${SRC_UCM}/os/list.c ${DST_LIB}/libspl/
cp ${SRC_UCM}/sys/list.h ${DST_LIB}/libspl/include/sys/
cp ${SRC_UCM}/sys/list_impl.h ${DST_LIB}/libspl/include/sys/
-echo "* zfs/lib/libzcommon"
-mkdir -p ${DST_LIB}/libzcommon/include/sys/fs/
-mkdir -p ${DST_LIB}/libzcommon/include/sys/fm/fs/
-cp ${SRC_CM}/zfs/*.c ${DST_LIB}/libzcommon/
-cp ${SRC_CM}/zfs/*.h ${DST_LIB}/libzcommon/include/
-cp ${SRC_UCM}/sys/fs/zfs.h ${DST_LIB}/libzcommon/include/sys/fs/
-cp ${SRC_UCM}/sys/fm/fs/zfs.h ${DST_LIB}/libzcommon/include/sys/fm/fs/
+echo "* lib/libuutil"
+mkdir -p ${DST_LIB}/libuutil/include/
+cp ${SRC_LIB}/libuutil/common/*.c ${DST_LIB}/libuutil/
+cp ${SRC_LIB}/libuutil/common/*.h ${DST_LIB}/libuutil/include/
-echo "* zfs/lib/libzpool"
+echo "* lib/libzpool"
mkdir -p ${DST_LIB}/libzpool/include/sys/
cp ${SRC_LIB}/libzpool/common/kernel.c ${DST_LIB}/libzpool/
cp ${SRC_LIB}/libzpool/common/taskq.c ${DST_LIB}/libzpool/
cp ${SRC_LIB}/libzpool/common/util.c ${DST_LIB}/libzpool/
-#cp ${SRC_LIB}/libzpool/common/sys/zfs_context.h ${DST_LIB}/libzpool/include/sys/
-cp ${SRC_ZLIB}/*.c ${DST_LIB}/libzpool/
-cp ${SRC_UTS}/intel/zfs/spa_boot.c ${DST_LIB}/libzpool/
-cp ${SRC_ZLIB}/sys/*.h ${DST_LIB}/libzpool/include/sys/
-rm ${DST_LIB}/libzpool/vdev_disk.c
-rm ${DST_LIB}/libzpool/include/sys/vdev_disk.h
-
-echo "* zfs/lib/libzfs"
+cp ${SRC_LIB}/libzpool/common/sys/zfs_context.h ${DST_LIB}/libzpool/include/sys/
+
+echo "* lib/libzfs"
mkdir -p ${DST_LIB}/libzfs/include/
cp ${SRC_LIB}/libzfs/common/*.c ${DST_LIB}/libzfs/
cp ${SRC_LIB}/libzfs/common/*.h ${DST_LIB}/libzfs/include/
-echo "* zfs/zcmd/zpool"
+echo "* cmd/zpool"
mkdir -p ${DST_CMD}/zpool
cp ${SRC_CMD}/zpool/*.c ${DST_CMD}/zpool/
cp ${SRC_CMD}/zpool/*.h ${DST_CMD}/zpool/
-echo "* zfs/zcmd/zfs"
+echo "* cmd/zfs"
mkdir -p ${DST_CMD}/zfs
cp ${SRC_CMD}/zfs/*.c ${DST_CMD}/zfs/
cp ${SRC_CMD}/zfs/*.h ${DST_CMD}/zfs/
-echo "* zfs/zcmd/zdb"
+echo "* cmd/zdb"
mkdir -p ${DST_CMD}/zdb/
cp ${SRC_CMD}/zdb/*.c ${DST_CMD}/zdb/
-echo "* zfs/zcmd/zdump"
+echo "* cmd/zdump"
mkdir -p ${DST_CMD}/zdump
cp ${SRC_CMD}/zdump/*.c ${DST_CMD}/zdump/
-echo "* zfs/zcmd/zinject"
+echo "* cmd/zinject"
mkdir -p ${DST_CMD}/zinject
cp ${SRC_CMD}/zinject/*.c ${DST_CMD}/zinject/
cp ${SRC_CMD}/zinject/*.h ${DST_CMD}/zinject/
-echo "* zfs/zcmd/ztest"
+echo "* cmd/ztest"
mkdir -p ${DST_CMD}/ztest
cp ${SRC_CMD}/ztest/*.c ${DST_CMD}/ztest/
+echo "${REMOTE_SRC}" >${DST}/ZFS.RELEASE
+
rm -Rf ${SRC}