ZTS: remove duplicate check_prop_source from zfs_receive

There is an identical definition in zfs_set_common.kshlib already.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Will Andrews <will@firepipe.net>
Closes #11516
This commit is contained in:
Will Andrews 2021-01-25 16:38:19 -06:00 committed by GitHub
parent de1a6cc387
commit a57acbb627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 25 deletions

View File

@ -55,31 +55,6 @@ function cleanup
log_must zfs destroy -rf $dest
}
#
# Verify property $2 is set from source $4 on dataset $1 and has value $3.
#
# $1 checked dataset
# $2 user property
# $3 property value
# $4 source
#
function check_prop_source
{
typeset dataset=$1
typeset prop=$2
typeset value=$3
typeset source=$4
typeset chk_value=$(get_prop "$prop" "$dataset")
typeset chk_source=$(get_source "$prop" "$dataset")
if [[ "$chk_value" != "$value" || \
"$chk_source" != "$4" ]]
then
return 1
else
return 0
fi
}
log_assert "ZFS successfully receive and restore properties."
log_onexit cleanup