libzfs_core: remove the dependency of the interface on sys/fs/zfs.h
Review Request #257 - Created Oct. 9, 2015 and submitted
lzc_createhad a parameter of
dmu_objset_type_ttype that specified what kind of dataset to create.
lzc_dataset_typeenumeration is used for that purpose.
At present only a filesystem type and a volume type can be specified.
lzc_dataset_typevalues are binary compatible with
ZFS Test Suite with the following failures:$ egrep 'FAIL|KILL' /var/tmp/test_results/20151116T101807/log Test: /opt/zfs-tests/tests/functional/acl/nontrivial/zfs_acl_chmod_inherit_003_pos (run as root) [00:20] [FAIL] Test: /opt/zfs-tests/tests/functional/cli_root/zpool_clear/zpool_clear_001_pos (run as root) [01:31] [FAIL] Test: /opt/zfs-tests/tests/functional/cli_root/zpool_expand/zpool_expand_001_pos (run as root) [00:14] [FAIL] Test: /opt/zfs-tests/tests/functional/cli_user/misc/zpool_add_001_neg (run as avg) [00:01] [FAIL] Test: /opt/zfs-tests/tests/functional/cli_user/misc/zpool_create_001_neg (run as avg) [00:00] [FAIL] Test: /opt/zfs-tests/tests/functional/mdb/mdb_001_pos (run as root) [00:24] [FAIL] Test: /opt/zfs-tests/tests/functional/refreserv/refreserv_004_pos (run as root) [00:00] [FAIL] Test: /opt/zfs-tests/tests/functional/rootpool/rootpool_002_neg (run as root) [00:00] [FAIL] Test: /opt/zfs-tests/tests/functional/rsend/rsend_008_pos (run as root) [00:01] [FAIL] Test: /opt/zfs-tests/tests/functional/rsend/rsend_009_pos (run as root) [00:09] [FAIL] Test: /opt/zfs-tests/tests/functional/slog/slog_014_pos (run as root) [00:13] [FAIL] Test: /opt/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap_004_pos (run as root) [00:01] [FAIL]
Looks like known failures, at least nothing pointing at
Add comments saying that dmu_objset_type and lzc_dataset_type should be kept in sync.
Revision 2 (+15 -4)