mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 11:44:16 +03:00
tests: clean out unused/single-use/useless commands from the list
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -44,22 +44,15 @@
|
||||
#
|
||||
#
|
||||
|
||||
# check to see if we have zfs allow
|
||||
zfs 2>&1 | grep "allow" > /dev/null
|
||||
if (($? != 0)) then
|
||||
log_unsupported "ZFS allow not supported on this machine."
|
||||
fi
|
||||
|
||||
log_assert "zfs allow returns an error when run as a user"
|
||||
|
||||
log_must zfs allow $TESTPOOL/$TESTFS
|
||||
log_mustnot zfs allow $(logname) create $TESTPOOL/$TESTFS
|
||||
log_mustnot zfs allow $(id -un) create $TESTPOOL/$TESTFS
|
||||
|
||||
# now verify that the above command actually did nothing by
|
||||
# checking for any allow output. ( if no allows are granted,
|
||||
# nothing should be output )
|
||||
OUTPUT=$(zfs allow $TESTPOOL/$TESTFS | grep "Local+Descendent" )
|
||||
if [ -n "$OUTPUT" ]
|
||||
if zfs allow $TESTPOOL/$TESTFS | grep -q "Local+Descendent"
|
||||
then
|
||||
log_fail "zfs allow permissions were granted on $TESTPOOL/$TESTFS"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user