]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r318831: MFV r316922: 5380 receive of a send -p stream doesn't need to try renami...
authormav <mav@FreeBSD.org>
Wed, 26 Jul 2017 16:47:33 +0000 (16:47 +0000)
committermav <mav@FreeBSD.org>
Wed, 26 Jul 2017 16:47:33 +0000 (16:47 +0000)
commit98c063674d0012e00b6a7514e1abb41c60b300ff
tree4e176626c3c3a904bea9d7fa66563c634b183458
parent1904f1e630f15c5a358da9dad0bf57d94cbaef89
MFC r318831: MFV r316922: 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>
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c