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>
*** 26,36 ****
#
# Copyright 2015 Nexenta Systems, Inc.
#
#
! # Copyright (c) 2012, 2015 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
--- 26,36 ----
#
# Copyright 2015 Nexenta Systems, Inc.
#
#
! # Copyright (c) 2012, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
#
*** 47,69 ****
verify_runnable "global"
function cleanup {
if datasetexists $TESTPOOL/vol
then
! log_must $ZFS destroy $TESTPOOL/vol
fi
if poolexists $TESTPOOL
then
! log_must $ZPOOL destroy $TESTPOOL
fi
if [[ -f $VDEV ]]; then
! log_must $RM -f $VDEV
fi
}
! $ZPOOL set 2>&1 | $GREP bootfs > /dev/null
if [ $? -ne 0 ]
then
log_unsupported "bootfs pool property not supported on this release."
fi
--- 47,69 ----
verify_runnable "global"
function cleanup {
if datasetexists $TESTPOOL/vol
then
! log_must zfs destroy $TESTPOOL/vol
fi
if poolexists $TESTPOOL
then
! log_must zpool destroy $TESTPOOL
fi
if [[ -f $VDEV ]]; then
! log_must rm -f $VDEV
fi
}
! zpool set 2>&1 | grep bootfs > /dev/null
if [ $? -ne 0 ]
then
log_unsupported "bootfs pool property not supported on this release."
fi
*** 70,81 ****
log_assert "Invalid datasets are rejected as boot property values"
log_onexit cleanup
typeset VDEV=/bootfs_002_neg_a.$$.dat
! log_must $MKFILE 400m $VDEV
create_pool "$TESTPOOL" "$VDEV"
! log_must $ZFS create -V 10m $TESTPOOL/vol
! log_mustnot $ZPOOL set bootfs=$TESTPOOL/vol $TESTPOOL
log_pass "Invalid datasets are rejected as boot property values"
--- 70,81 ----
log_assert "Invalid datasets are rejected as boot property values"
log_onexit cleanup
typeset VDEV=/bootfs_002_neg_a.$$.dat
! log_must mkfile 400m $VDEV
create_pool "$TESTPOOL" "$VDEV"
! log_must zfs create -V 10m $TESTPOOL/vol
! log_mustnot zpool set bootfs=$TESTPOOL/vol $TESTPOOL
log_pass "Invalid datasets are rejected as boot property values"