]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_sendrecv.c
OpenZFS 5380 - receive of a send -p stream doesn't need to try renaming snapshots
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 7 Apr 2017 20:54:29 +0000 (13:54 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 9 Apr 2017 23:09:16 +0000 (16:09 -0700)
commit4c3c6b6c73e31c789a2c0ce2a70912c077f15421
treee6dae802bbbd76b9203ec43573a20b6f00ed0ba9
parentf9ea47db3d2e9494321131f789e8e5e9513b26dc
OpenZFS 5380 - receive of a send -p stream doesn't need to try renaming snapshots

Authored by: Andriy Gapon <avg@FreeBSD.org>
Approved by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
recv_incremental_replication() takes care of things like removing
datasets that have been removed on the sending side, detecting renamed
datasets, ensuring that all datasets in the affected hierarchy have the
same properties as their counterparts on the sending side.
All of the above are not necessary if we are receiving a stream for a
single dataset that has been generated with zfs send -p, that is, a
stream that includes properties.  zfs_receive_one() already takes care
of applying the properties to the received datasets.

OpenZFS-issue: https://www.illumos.org/issues/5380
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/b8ab927
Closes #5990
lib/libzfs/libzfs_sendrecv.c