diff options
author | LOLi <[email protected]> | 2017-10-11 00:22:05 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-10-10 15:22:05 -0700 |
commit | aee1dd4d983c64db3c3155290d48f05243e85709 (patch) | |
tree | ee30dfe67c6bf3263517eaca69390365e50e24c3 /include/sys/dmu_send.h | |
parent | 70f02287f86db33950eba9ceeb4f4c07c23131e0 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #6618
Closes #6619
Closes #6623
Diffstat (limited to 'include/sys/dmu_send.h')
0 files changed, 0 insertions, 0 deletions