mirror_zfs/tests/zfs-tests/tests/functional
LOLi aee1dd4d98 Fix intra-pool resumable 'zfs send -t <token>'
Because resuming from a token requires "guid" -> "snapshot" mapping
we have to walk the whole dataset hierarchy to find the right snapshot
to send; when both source and destination exists, for an incremental
resumable stream, libzfs gets confused and picks up the wrong snapshot
to send from: this results in attempting to send

   "destination@snap1 -> source@snap2"

instead of

   "source@snap1 -> source@snap2"

which fails with a "Invalid cross-device link" error (EXDEV).

Fix this by adjusting the logic behind dataset traversal in
zfs_iter_children() to pick the right snapshot to send from.

Additionally update dry-run 'zfs send -t' to print its output to
stderr: this is consistent with other dry-run commands.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6618
Closes #6619
Closes #6623
2017-10-10 15:22:05 -07:00
..
acl ZTS: replace su commands by run_user function 2017-07-05 10:46:52 -07:00
atime OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
bootfs Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
cache Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
cachefile Enable remaining tests 2017-05-22 12:34:32 -04:00
casenorm OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
chattr Fix chattr_001_pos 2017-07-07 15:45:29 -07:00
checksum OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
clean_mirror Implemented zpool sync command 2017-05-19 12:33:11 -07:00
cli_root Fix ARC behavior on 32-bit systems 2017-10-10 15:19:19 -07:00
cli_user Implemented zpool scrub pause/resume 2017-07-06 22:16:13 -07:00
compression OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
ctime Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
delegate Enable remaining tests 2017-05-22 12:34:32 -04:00
devices Enable remaining tests 2017-05-22 12:34:32 -04:00
events ZTS fix events_002_pos.sh failure 2017-09-16 19:36:44 -07:00
exec Enable remaining tests 2017-05-22 12:34:32 -04:00
fault Enable remaining tests 2017-05-22 12:34:32 -04:00
features Fix ARC behavior on 32-bit systems 2017-10-10 15:19:19 -07:00
grow_pool Fix ZTS grow_pool/setup 2017-08-15 16:40:04 -07:00
grow_replicas Enable remaining tests 2017-05-22 12:34:32 -04:00
history Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
inheritance OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
inuse Enable remaining tests 2017-05-22 12:34:32 -04:00
large_files Enable remaining tests 2017-05-22 12:34:32 -04:00
largest_pool Enable remaining tests 2017-05-22 12:34:32 -04:00
libzfs Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00
link_count Enable remaining tests 2017-05-22 12:34:32 -04:00
migration OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
mmap Enable remaining tests 2017-05-22 12:34:32 -04:00
mmp Fix ZTS MMP tests and ztest -M behavior 2017-09-23 09:28:18 -07:00
mount Enable remaining tests 2017-05-22 12:34:32 -04:00
mv_files OpenZFS 7629 - Fix for 7290 neglected to remove some escape sequences 2017-04-07 09:30:05 -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 size inflation in spa_get_worst_case_asize() 2017-04-10 15:28:21 -07:00
nopwrite Enable remaining tests 2017-05-22 12:34:32 -04:00
online_offline Enable remaining tests 2017-05-22 12:34:32 -04: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: replace su commands by run_user function 2017-07-05 10:46:52 -07:00
quota OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
raidz OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
redundancy Enable remaining tests 2017-05-22 12:34:32 -04:00
refquota OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
refreserv Relax (ref)reservation constraints on ZVOLs 2017-09-12 11:33:22 -07:00
rename_dirs Enable remaining tests 2017-05-22 12:34:32 -04:00
replacement OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
reservation Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
rootpool OpenZFS 8076 - zfs-tests suite fails rootpool_002_neg 2017-05-25 17:29:08 -07:00
rsend Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
scrub_mirror OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
slog Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
snapshot Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
snapused OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
sparse OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
threadsappend Enable remaining tests 2017-05-22 12:34:32 -04:00
tmpfile Add tmpfile_003_pos to .gitignore 2017-02-03 13:42:49 -08:00
truncate Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
upgrade Implemented zpool sync command 2017-05-19 12:33:11 -07:00
userquota Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
vdev_zaps OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
write_dirs Skip tests that are slow on 32-bit builders 2017-06-06 19:04:01 -07:00
xattr Fix volume WR_INDIRECT log replay 2017-09-08 15:07:00 -07:00
zvol Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
Makefile.am Multi-modifier protection (MMP) 2017-07-13 13:54:00 -04:00