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>
*** 24,34 ****
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/reservation/reservation.shlib
--- 24,34 ----
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
! # Copyright (c) 2013, 2016 by Delphix. All rights reserved.
#
. $STF_SUITE/include/libtest.shlib
. $STF_SUITE/tests/functional/reservation/reservation.shlib
*** 59,73 ****
space_avail=`get_prop available $TESTPOOL`
((resv_size_set = (space_avail - RESV_DELTA) / 2))
! fs_quota=`$ZFS get quota $TESTPOOL/$TESTFS`
! log_must $ZFS set reservation=$resv_size_set $TESTPOOL/$TESTFS
! new_fs_quota=`$ZFS get quota $TESTPOOL/$TESTFS`
if [[ $fs_quota != $new_fs_quota ]]; then
log_fail "Quota value on $TESTFS has changed " \
"($fs_quota != $new_fs_quota)"
fi
--- 59,73 ----
space_avail=`get_prop available $TESTPOOL`
((resv_size_set = (space_avail - RESV_DELTA) / 2))
! fs_quota=`zfs get quota $TESTPOOL/$TESTFS`
! log_must zfs set reservation=$resv_size_set $TESTPOOL/$TESTFS
! new_fs_quota=`zfs get quota $TESTPOOL/$TESTFS`
if [[ $fs_quota != $new_fs_quota ]]; then
log_fail "Quota value on $TESTFS has changed " \
"($fs_quota != $new_fs_quota)"
fi