Go to file
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
.github Update codecov.yml 2017-09-22 18:54:34 -07:00
cmd Use bitwise '&' instead of logical '&&' 2017-10-05 19:38:55 -07:00
config Fix "--enable-code-coverage" debug build 2017-09-22 22:16:18 -07:00
contrib Fix inclusion of libgcc_s.so on Void 2017-10-09 14:34:26 -07:00
etc vdev_id: extension for new scsi topology 2017-09-27 10:39:47 -07:00
include Remove dead code from AVL tree 2017-10-05 19:28:00 -07:00
lib Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
man Update the default for zfs_txg_history 2017-09-29 15:58:52 -07:00
module Fix ARC behavior on 32-bit systems 2017-10-10 15:19:19 -07:00
rpm Retire legacy test infrastructure 2017-08-15 17:26:38 -07:00
scripts Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
tests Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
udev Fix spelling 2017-01-03 11:31:18 -06:00
.gitignore Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
.gitmodules Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
AUTHORS Add a missing > to AUTHORS 2014-09-02 14:18:53 -07:00
autogen.sh build: do not call boilerplate ourself 2013-04-02 10:55:20 -07:00
configure.ac Add 'zfs diff' coverage to the ZFS Test Suite 2017-09-28 13:04:14 -07:00
copy-builtin Allow c99 when building ZFS in the kernel tree 2017-03-27 12:31:15 -07:00
COPYRIGHT Retire legacy test infrastructure 2017-08-15 17:26:38 -07:00
DISCLAIMER Fix minor typos and update marketing copy. 2013-03-21 12:51:06 -07:00
Makefile.am Add support for "--enable-code-coverage" option 2017-09-22 18:49:57 -07:00
META Tag zfs-0.7.0 2017-07-26 10:13:25 -07:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
README.markdown Update codecov.yml 2017-09-22 18:54:34 -07:00
TEST Run ztest for longer on "Coverage" builders 2017-09-26 12:29:32 -07:00
zfs.release.in Move zfs.release generation to configure step 2012-07-12 12:22:51 -07:00

img

ZFS on Linux is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community.

codecov

Official Resources

Installation

Full documentation for installing ZoL on your favorite Linux distribution can be found at our site.

Contribute & Develop

We have a separate document with contribution guidelines.