Print this page
7290 ZFS test suite needs to control what utilities it can run
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
*** 23,33 ****
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013 by Delphix. All rights reserved.
#
#
# Simple function to get the source of the specified property.
# If unable to get the property then exits.
--- 23,33 ----
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
#
# Simple function to get the source of the specified property.
# If unable to get the property then exits.
*** 36,46 ****
{
typeset prop_val
typeset prop=$1
typeset dataset=$2
! prop_val=`$ZFS get -H -o source $prop $dataset`
if [[ $? -ne 0 ]]; then
log_fail "Unable to determine the source of $prop " \
"property for dataset $dataset"
else
--- 36,46 ----
{
typeset prop_val
typeset prop=$1
typeset dataset=$2
! prop_val=`zfs get -H -o source $prop $dataset`
if [[ $? -ne 0 ]]; then
log_fail "Unable to determine the source of $prop " \
"property for dataset $dataset"
else
*** 102,112 ****
{
typeset prop=$1
typeset prop_val=$2
typeset dataset=$3
! $ZFS set $prop=$prop_val $dataset
check_val=`get_prop $prop $dataset`
if [[ $check_val != $prop_val ]]; then
log_fail "Property $prop of $dataset has value $check_val"\
" rather than $prop_val"
--- 102,112 ----
{
typeset prop=$1
typeset prop_val=$2
typeset dataset=$3
! zfs set $prop=$prop_val $dataset
check_val=`get_prop $prop $dataset`
if [[ $check_val != $prop_val ]]; then
log_fail "Property $prop of $dataset has value $check_val"\
" rather than $prop_val"