mirror_zfs/lib
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
..
libavl Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
libefi Fixes for issues found with cppcheck tool 2016-07-27 13:31:22 -07:00
libicp Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
libnvpair OpenZFS 6447 - handful of nvpair cleanups 2017-08-30 12:04:27 -07:00
libshare Fix nfs snapdir automount 2017-03-08 09:26:33 -08:00
libspl Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
libtpool libtpool: don't clone affinity if not supported 2017-08-29 10:17:49 -07:00
libunicode Support parallel build trees (VPATH builds) 2015-07-17 13:42:51 -07:00
libuutil Correct cppcheck errors 2017-09-19 12:17:29 -07:00
libzfs Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
libzfs_core Retire send space estimation via ZFS_IOC_SEND 2017-08-31 09:00:35 -07:00
libzpool Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
Makefile.am Add libtpool (thread pools) 2017-08-09 15:31:08 -07:00