]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
5380 receive of a send -p stream doesn't need to try renaming snapshots
authorAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 18:30:22 +0000 (18:30 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Fri, 14 Apr 2017 18:30:22 +0000 (18:30 +0000)
commitc2745459d345c298577105382f8bc9e90fe36c44
tree884820d329290fd74748237136fa139ba1ccaaea
parent45967327e26c1f1133bc5ba8112a2b8cdc3a40d9
5380 receive of a send -p stream doesn't need to try renaming snapshots

illumos/illumos-gate@471a88e499c660844f4590487ce7c4d5a7090294
https://github.com/illumos/illumos-gate/commit/471a88e499c660844f4590487ce7c4d5a7090294

https://www.illumos.org/issues/5380
  A stream created with zfs send -p -I contains properties of all snapshots of a
  given dataset as opposed to only properties of snapshots in a given range.
  Not only this is suboptimal but the receive code also does not filter
  properties by the range. So, properties of earlier snapshots would be updated
  even though the snapshots themselves are not in the stream (just their
  properties).
  Given that modifying the snapshot properties requires a TXG sync and that the
  snapshots are updated one by one the described behavior may lead to a sever
  performance penalty.

Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Andriy Gapon <avg@FreeBSD.org>
lib/libzfs/common/libzfs_sendrecv.c