zfs/tests/zfs-tests/tests/functional
Tom Caputi bb61cc3185 Fix encryption hierarchy issues with zfs recv -d
Currently, the recv_fix_encryption_hierarchy() function accepts
'destsnap' as one of its parameters. Originally, this was intended
to be the top-level dataset of a receive (whether or not the
receive was recursive). Unfortunately, this parameter actually is
simply the input that is passed in from the command line. When
the user specifies 'zfs recv -d', this string is actually only the
name of the receiving pool since the rest of the name is derived
from the send stream. This causes the function to fail, leaving
some datasets with an invalid encryption hierarchy.

This patch resolves this problem by passing in the top_zfs variable
instead. In order to make this work, this patch also includes some
changes that ensure the value is always present when we need it.

Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #9273
Closes #9309
2019-09-25 17:02:32 -07:00
..
acl Fix typos in tests/ 2019-09-02 18:14:53 -07:00
alloc_class Use compatible arg order in tests 2019-08-29 11:03:09 -07:00
arc ZTS: Fix in-tree dbufstats test case 2019-08-22 17:37:48 -07:00
atime Fix `zfs set atime|relatime=off|on` behavior on inherited datasets 2019-05-07 10:06:30 -07:00
bootfs OpenZFS 9213 - zfs: sytem typo 2018-04-15 10:59:13 -07:00
cache ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
cachefile Fix typos in tests/ 2019-09-02 18:14:53 -07:00
casenorm Fix typos in tests/ 2019-09-02 18:14:53 -07:00
channel_program Fix typos in tests/ 2019-09-02 18:14:53 -07:00
chattr ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
checksum ZTS: Introduce targeted corruption in file blocks 2019-09-09 16:11:07 -07:00
clean_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
cli_root Fix encryption hierarchy issues with zfs recv -d 2019-09-25 17:02:32 -07:00
cli_user Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
compression Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
cp_files Fix ENOSPC in "Handle zap_add() failures in ..." 2018-04-18 14:19:50 -07:00
ctime Fedora 28: Fix misc bounds check compiler warnings 2018-08-26 12:55:44 -07:00
deadman Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
delegate Fix typos in tests/ 2019-09-02 18:10:31 -07:00
devices ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
events Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
exec Enable remaining tests 2017-05-22 12:34:32 -04:00
fault Fix typos in tests/ 2019-09-02 18:10:31 -07:00
features Add missing copyright notice to large_dnode tests 2019-02-19 18:39:10 -08:00
grow ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
history Refactor checksum operations in tests 2019-09-05 09:51:59 -07:00
hkdf Fix out-of-tree build failures 2019-06-24 09:32:47 -07:00
inheritance Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
inuse Fix typos in tests/ 2019-09-02 18:10:31 -07:00
io Direct IO support 2018-08-27 10:04:21 -07:00
large_files Fix typos in tests/ 2019-09-02 18:10:31 -07:00
largest_pool ZTS: largest_pool_001 path cleanup 2018-08-18 21:18:31 -07:00
libzfs Add basic zfs ioc input nvpair validation 2018-09-02 12:14:01 -07:00
limits zfs receive and rollback can skew filesystem_count 2019-01-08 10:17:46 -08:00
link_count Add link count test for root inode 2019-05-29 16:26:46 -07:00
log_spacemap Log Spacemap Project 2019-07-16 10:11:49 -07:00
migration Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
mmap Fix typos in tests/ 2019-09-02 18:10:31 -07:00
mmp Fix /etc/hostid on root pool deadlock 2019-09-10 13:42:30 -07:00
mount port async unlinked drain from illumos-nexenta 2019-02-12 10:41:15 -08:00
mv_files ZTS: path cleanup 2018-08-30 13:46:55 -07:00
nestedfs OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
no_space Fix typos in tests/ 2019-09-02 18:10:31 -07:00
nopwrite Fix typos in tests/ 2019-09-02 18:10:31 -07:00
online_offline Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
pool_checkpoint Fix typos in tests/ 2019-09-02 18:08:56 -07:00
pool_names Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
poolversion Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
privilege ZTS: change `$(cat)` to `$(<)` for speedup 2018-10-31 12:00:06 -05:00
procfs ZTS: change `$(cat)` to `$(<)` for speedup 2018-10-31 12:00:06 -05:00
projectquota Fix typos in tests/ 2019-09-02 18:08:56 -07:00
pyzfs Fix typos in tests/ 2019-09-02 18:08:56 -07:00
quota Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
raidz Fix typos in tests/ 2019-09-02 18:08:56 -07:00
redacted_send Fix typos in tests/ 2019-08-30 16:52:00 -07:00
redundancy Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
refquota Fix refquota_007_neg.ksh 2019-08-30 09:32:25 -07:00
refreserv Fix typos in tests/ 2019-08-30 16:52:00 -07:00
removal Device removal of indirect vdev panics the kernel 2019-09-16 10:46:59 -07:00
rename_dirs Enable remaining tests 2017-05-22 12:34:32 -04:00
replacement ZTS: Test case reliability 2018-08-12 09:38:53 -07:00
reservation Fix typos in tests/ 2019-08-30 16:52:00 -07:00
rootpool ZTS: path cleanup 2018-08-30 13:46:55 -07:00
rsend Refactor checksum operations in tests 2019-09-05 09:51:59 -07:00
scrub_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
slog Refactor checksum operations in tests 2019-09-05 09:51:59 -07:00
snapshot Fix typos in tests/ 2019-09-02 17:58:26 -07:00
snapused Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
sparse ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
suid Implement secpolicy_vnode_setid_retain() 2019-07-26 13:52:30 -07:00
threadsappend ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
tmpfile ZTS: Update O_TMPFILE support check 2018-05-14 20:36:30 -07:00
trim Fix typos in tests/ 2019-09-02 17:58:26 -07:00
truncate ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
upgrade Prevent user accounting on readonly pool 2019-02-19 18:41:18 -08:00
user_namespace Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
userquota Fix typos in tests/ 2019-09-02 17:58:26 -07:00
vdev_zaps ZTS: Fix vdev_zaps_005_pos on CentOS 6 2019-08-22 08:53:44 -07:00
write_dirs ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
xattr ZTS: harden xattr/cleanup.ksh 2019-09-25 09:24:45 -07:00
zvol Fix typos in tests/ 2019-09-02 17:58:26 -07:00
Makefile.am Implement secpolicy_vnode_setid_retain() 2019-07-26 13:52:30 -07:00