Differential D28677 Diff 83996 sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
typeset dataset="$1" | typeset dataset="$1" | ||||
typeset prop="$2" | typeset prop="$2" | ||||
typeset value="$3" | typeset value="$3" | ||||
typeset source="$4" | typeset source="$4" | ||||
typeset chk_value=$(get_prop "$prop" "$dataset") | typeset chk_value=$(get_prop "$prop" "$dataset") | ||||
typeset chk_source=$(get_source "$prop" "$dataset") | typeset chk_source=$(get_source "$prop" "$dataset") | ||||
if [[ "$chk_value" != "$value" || "$chk_source" != "$4" ]] | if [[ "$chk_value" != "$value" || "$chk_source" != "$source" ]] | ||||
then | then | ||||
log_note "expected (value '$value', source '$source'), got \ | |||||
(value '$chk_value', source '$chk_source')" | |||||
return 1 | return 1 | ||||
else | else | ||||
return 0 | return 0 | ||||
fi | fi | ||||
} | } | ||||
# | # | ||||
# Verify target dataset $1 inherit property $2 from dataset $3. | # Verify target dataset $1 inherit property $2 from dataset $3. | ||||
# | # | ||||
# $1 checked dataset | # $1 checked dataset | ||||
# $2 property | # $2 property | ||||
# $3 inherited dataset | # $3 inherited dataset | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |