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 2009 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/userquota/userquota_common.kshlib
--- 24,34 ----
# Copyright 2009 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/userquota/userquota_common.kshlib
*** 44,54 ****
#
function cleanup
{
if datasetexists $snap_fs; then
! log_must $ZFS destroy $snap_fs
fi
log_must cleanup_quota
}
--- 44,54 ----
#
function cleanup
{
if datasetexists $snap_fs; then
! log_must zfs destroy $snap_fs
fi
log_must cleanup_quota
}
*** 61,79 ****
"-s name" "-s used" "-s quota" "-S type" "-S name" "-S used" "-S quota" \
"-t posixuser" "-t posixgroup" "-t all" "-i" "-t smbuser" "-t smbgroup"
typeset snap_fs=$QFS@snap
! log_must $ZFS set groupquota@$QGROUP=500m $QFS
mkmount_writable $QFS
! log_must user_run $QUSER1 $MKFILE 50m $QFILE
! $SYNC
! log_must $ZFS snapshot $snap_fs
for param in "${params[@]}"; do
! log_must eval "$ZFS groupspace $param $QFS >/dev/null 2>&1"
! log_must eval "$ZFS groupspace $param $snap_fs >/dev/null 2>&1"
done
log_pass "Check the zfs groupspace with all possible parameters"
--- 61,79 ----
"-s name" "-s used" "-s quota" "-S type" "-S name" "-S used" "-S quota" \
"-t posixuser" "-t posixgroup" "-t all" "-i" "-t smbuser" "-t smbgroup"
typeset snap_fs=$QFS@snap
! log_must zfs set groupquota@$QGROUP=500m $QFS
mkmount_writable $QFS
! log_must user_run $QUSER1 mkfile 50m $QFILE
! sync
! log_must zfs snapshot $snap_fs
for param in "${params[@]}"; do
! log_must eval "zfs groupspace $param $QFS >/dev/null 2>&1"
! log_must eval "zfs groupspace $param $snap_fs >/dev/null 2>&1"
done
log_pass "Check the zfs groupspace with all possible parameters"