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
*** 45,66 **** function cleanup { cleanup_quota if datasetexists $snap_fs; then ! log_must $ZFS destroy $snap_fs fi } log_onexit cleanup typeset snap_fs=$QFS@snap log_assert "Check set userquota and groupquota on snapshot" log_note "Check can not set user|group quuota on snapshot" ! log_must $ZFS snapshot $snap_fs ! log_mustnot $ZFS set userquota@$QUSER1=$UQUOTA_SIZE $snap_fs ! log_mustnot $ZFS set groupquota@$QGROUP=$GQUOTA_SIZE $snap_fs log_pass "Check set userquota and groupquota on snapshot" --- 45,66 ---- function cleanup { cleanup_quota if datasetexists $snap_fs; then ! log_must zfs destroy $snap_fs fi } log_onexit cleanup typeset snap_fs=$QFS@snap log_assert "Check set userquota and groupquota on snapshot" log_note "Check can not set user|group quuota on snapshot" ! log_must zfs snapshot $snap_fs ! log_mustnot zfs set userquota@$QUSER1=$UQUOTA_SIZE $snap_fs ! log_mustnot zfs set groupquota@$QGROUP=$GQUOTA_SIZE $snap_fs log_pass "Check set userquota and groupquota on snapshot"