]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/xattr/xattr_001_pos.ksh
Enable xattr tests
[mirror_zfs.git] / tests / zfs-tests / tests / functional / xattr / xattr_001_pos.ksh
index adb5132f28ffffee7b96711c3f75789eb441c699..ffb7004385280ea8a27e2605ebcb24c3550f1ca1 100755 (executable)
@@ -52,12 +52,18 @@ function cleanup {
        fi
 }
 
+set -A args "on" "sa"
+
 log_assert "Create/read/write/append of xattrs works"
 log_onexit cleanup
 
-log_must touch $TESTDIR/myfile.$$
-create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
-verify_write_xattr $TESTDIR/myfile.$$ passwd
-delete_xattr $TESTDIR/myfile.$$ passwd
+for arg in ${args[*]}; do
+       log_must zfs set xattr=$arg $TESTPOOL
+
+       log_must touch $TESTDIR/myfile.$$
+       create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd
+       verify_write_xattr $TESTDIR/myfile.$$ passwd
+       delete_xattr $TESTDIR/myfile.$$ passwd
+done
 
 log_pass "Create/read/write of xattrs works"