]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305339: MFV r305336: 7247 zfs receive of deduplicated stream fails
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Oct 2016 07:37:08 +0000 (07:37 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 14 Oct 2016 07:37:08 +0000 (07:37 +0000)
commit01dc5cb1977a7a112b3638c7dcbbbef90e9c1dbd
tree52b23f4ef99fe69fe66ef0072444c47bc3291ebd
parent17222bbe0a2a5b7e4ed9ff5c4601c589ba8aa925
MFC r305339: MFV r305336: 7247 zfs receive of deduplicated stream fails

This resolves two 'zfs recv' issues. First, when receiving into an
existing filesystem, a snapshot created during the receive process is
not added to the guid->dataset map for the stream, resulting in failed
lookups for deduped streams when a WRITE_BYREF record refers to a
snapshot received earlier in the stream. Second, the newly created
snapshot was also not set properly, referencing the snapshot before the
new receiving dataset rather than the existing filesystem.

Closes #159

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Author: Chris Williamson <chris.williamson@delphix.com>

openzfs/openzfs@b09697c8c18be68abfe538de9809938239402ae8

git-svn-id: svn://svn.freebsd.org/base/stable/10@307289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c