libbe(3): Copy received properties as well

This was inherently broken on send|recv datasets.

Reported and tested by:	Wes Maag <jwmaag gmail com>
MFC after:	3 days
This commit is contained in:
Kyle Evans 2019-04-25 15:51:09 +00:00
parent 73416eeccd
commit be13d48c66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346680

View File

@ -431,8 +431,12 @@ be_deep_clone_prop(int prop, void *cb)
/* Just continue if we fail to read a property */
return (ZPROP_CONT);
/* Only copy locally defined properties */
if (src != ZPROP_SRC_LOCAL)
/*
* Only copy locally defined or received properties. This continues
* to avoid temporary/default/local properties intentionally without
* breaking received datasets.
*/
if (src != ZPROP_SRC_LOCAL && src != ZPROP_SRC_RECEIVED)
return (ZPROP_CONT);
/* Augment mountpoint with altroot, if needed */