mirror_zfs/tests/zfs-tests/tests/functional/rsend
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
..
cleanup.ksh OpenZFS 7535 - need test for resumed send of top most filesystem 2017-04-12 08:47:42 -07:00
Makefile.am receive_freeobjects() skips freeing some objects 2017-10-02 15:36:04 -07:00
rsend_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_002_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_003_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_004_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_005_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_006_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_007_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_008_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_009_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_010_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_011_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_012_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_013_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_014_pos.ksh Update rsend_014_pos and send-c_volume test cases 2017-05-04 14:32:43 -07:00
rsend_019_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_020_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_021_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_022_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_024_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend.cfg OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
rsend.kshlib Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
send_encrypted_heirarchy.ksh Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
send_freeobjects.ksh receive_freeobjects() skips freeing some objects 2017-10-02 15:36:04 -07:00
send-c_embedded_blocks.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_incremental.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_lz4_disabled.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_mixed_compression.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_props.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_recv_dedup.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_recv_lz4_disabled.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_resume.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
send-c_stream_size_estimate.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_verify_contents.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_verify_ratio.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_volume.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_zstreamdump.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-cD.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-cpL_varied_recsize.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
setup.ksh OpenZFS 7535 - need test for resumed send of top most filesystem 2017-04-12 08:47:42 -07:00