| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
| H A D | xattr_011_pos.ksh | 100 log_must cp -a $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ 106 log_must cp $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ 111 log_must cp -@ $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ 117 log_must cp $TESTDIR/myfile.$$ $TESTDIR/myfile2.$$ 145 log_must mv $TESTDIR/mvfile.$$ $TESTDIR/mvfile2.$$ 153 log_must pax -w -f $TESTDIR/noxattr.pax $TESTDIR/pax.$$ 154 log_must pax -w@ -f $TESTDIR/xattr.pax $TESTDIR/pax.$$ 173 log_must pax -r -f $TESTDIR/xattr.pax $TESTDIR 175 log_must rm $TESTDIR/pax.$$ $TESTDIR/noxattr.pax $TESTDIR/xattr.pax 209 log_must rm $TESTDIR/tar.$$ $TESTDIR/noxattr.tar $TESTDIR/xattr.tar [all …]
|
| H A D | xattr_013_pos.ksh | 48 log_must rm $TESTDIR/myfile.$$ 61 log_must touch $TESTDIR/myfile.$$ 64 log_must umount $TESTDIR 74 log_must touch $TESTDIR/new.$$ 79 log_mustnot get_xattr passwd $TESTDIR/myfile.$$ 80 log_mustnot rm_xattr passwd $TESTDIR/myfile.$$ 83 log_must touch $TESTDIR/new.$$ 85 log_mustnot rm_xattr passwd $TESTDIR/new.$$ 89 log_must umount $TESTDIR 100 log_mustnot get_xattr passwd $TESTDIR/new.$$ [all …]
|
| H A D | xattr_003_neg.ksh | 48 log_must rm $TESTDIR/myfile.$$ 55 log_must touch $TESTDIR/myfile.$$ 56 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd 58 log_must chmod 000 $TESTDIR/myfile.$$ 60 log_mustnot su $ZFS_USER -c "runat $TESTDIR/myfile.$$ cat passwd" 61 log_mustnot su $ZFS_USER -c "runat $TESTDIR/myfile.$$ cp /etc/passwd ." 64 "get_xattr passwd $TESTDIR/myfile.$$ >/tmp/passwd.$$" 69 "set_xattr_stdin passwd $TESTDIR/myfile.$$ </etc/group" 70 log_must chmod 644 $TESTDIR/myfile.$$ 71 get_xattr passwd $TESTDIR/myfile.$$ >/tmp/passwd.$$
|
| H A D | xattr_007_neg.ksh | 50 log_must rm $TESTDIR/myfile2.$$ 51 log_must rm $TESTDIR/myfile.$$ 61 log_must touch $TESTDIR/myfile.$$ 62 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd 65 log_must touch $TESTDIR/myfile2.$$ 72 log_mustnot eval " runat $TESTDIR/.zfs/snapshot/snap/myfile.$$ \ 75 log_must eval "runat $TESTDIR/.zfs/snapshot/snap/myfile2.$$ \ 79 log_mustnot eval "set_xattr_stdin cp $TESTDIR/.zfs/snapshot/snap/myfile.$$ \ 82 log_must eval "ls_xattr $TESTDIR/.zfs/snapshot/snap/myfile2.$$ \ 84 log_must eval "ls_xattr $TESTDIR/myfile2.$$ > $TEST_BASE_DIR/expected_output.$$"
|
| H A D | xattr_005_pos.ksh | 49 log_must rm $TESTDIR/myfile.$$ 56 log_must touch $TESTDIR/myfile.$$ 57 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd 62 log_must zfs set mountpoint=$TESTDIR/clone $TESTPOOL/$TESTFS/clone 65 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd 68 create_xattr $TESTDIR/clone/myfile.$$ foo /etc/passwd 69 delete_xattr $TESTDIR/clone/myfile.$$ foo 72 delete_xattr $TESTDIR/myfile.$$ passwd 75 verify_xattr $TESTDIR/clone/myfile.$$ passwd /etc/passwd 76 delete_xattr $TESTDIR/clone/myfile.$$ passwd
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/user_namespace/ |
| H A D | user_namespace_001.ksh | 46 log_must rm -f $TESTDIR/$i 58 log_must $TOUCH $TESTDIR/$i 59 log_must $CHMOD 0644 $TESTDIR/$i 62 log_must chown 0:0 $TESTDIR/rroot_rroot 69 log_mustnot test -g $TESTDIR/rroot_rroot 72 log_must test -g $TESTDIR/uroot_uroot 75 log_must test -g $TESTDIR/uroot_other 78 log_must test -g $TESTDIR/uother_uroot 81 log_must test -g $TESTDIR/uother_uother 84 log_must $CHMOD 0666 $TESTDIR/rroot_rroot [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/chattr/ |
| H A D | chattr_001_pos.ksh | 52 log_must chflags noschg $TESTDIR/$i 53 log_must rm -f $TESTDIR/$i 55 log_must chattr -ia $TESTDIR/$i 56 log_must rm -f $TESTDIR/$i 69 log_must touch $TESTDIR/writable 70 log_must touch $TESTDIR/immutable 71 log_must touch $TESTDIR/append 76 log_must chflags sappnd $TESTDIR/append 78 log_must chattr -i $TESTDIR/writable 79 log_must chattr +i $TESTDIR/immutable [all …]
|
| H A D | chattr_002_neg.ksh | 51 log_must chattr -ia $TESTDIR/$i 52 log_must rm -f $TESTDIR/$i 54 log_must chmod 0755 $TESTDIR 61 log_must chmod 0777 $TESTDIR 63 log_must user_run $QUSER1 touch $TESTDIR/writable 64 log_must user_run $QUSER1 touch $TESTDIR/immutable 65 log_must user_run $QUSER1 touch $TESTDIR/append 67 log_must chattr -i $TESTDIR/writable 68 log_must chattr +i $TESTDIR/immutable 69 log_must chattr +a $TESTDIR/append [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
| H A D | snapshot_002_pos.ksh | 67 if [[ -e $TESTDIR ]]; then 81 [[ -n $TESTDIR ]] && \ 82 rm -rf $TESTDIR/* > /dev/null 2>&1 96 cd $TESTDIR || log_fail "Could not cd $TESTDIR" 112 log_must mkdir $TESTDIR/original 113 log_must mkdir $TESTDIR/snapshot 116 cd $TESTDIR/original || log_fail "Could not cd $TESTDIR/original" 117 log_must tar xf $TESTDIR/tarball.original.tar 119 cd $TESTDIR/snapshot || log_fail "Could not cd $TESTDIR/snapshot" 120 log_must tar xf $TESTDIR/tarball.snapshot.tar [all …]
|
| H A D | rollback_002_pos.ksh | 62 [[ -e $TESTDIR ]] && \ 63 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 70 [[ -n $TESTDIR ]] && \ 71 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 78 log_must file_write -o create -f $TESTDIR/original_file$i \ 112 [[ -n $TESTDIR ]] && \ 113 log_must rm -rf $TESTDIR/original_file* > /dev/null 2>&1 120 FILE_COUNT=`ls -Al $TESTDIR/aftersecond* 2> /dev/null \ 123 ls -Al $TESTDIR 127 FILE_COUNT=`ls -Al $TESTDIR/original* $TESTDIR/afterfirst*| grep -v "total" | wc -l` [all …]
|
| H A D | snapshot_011_pos.ksh | 57 [[ -e $TESTDIR ]] && \ 58 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 64 [[ -n $TESTDIR ]] && \ 65 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 69 log_note "Populate the $TESTDIR directory (prior to snapshot)" 72 log_must file_write -o create -f $TESTDIR/before_file$i \ 86 log_note "Populate the $TESTDIR directory (post snapshot)" 102 ls -Al $TESTDIR 106 FILE_COUNT=`ls -Al $TESTDIR/before* 2> /dev/null \ 109 ls -Al $TESTDIR [all …]
|
| H A D | rollback_001_pos.ksh | 58 [[ -e $TESTDIR ]] && \ 59 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 66 [[ -n $TESTDIR ]] && \ 67 log_must rm -rf $TESTDIR/* > /dev/null 2>&1 71 log_note "Populate the $TESTDIR directory (prior to snapshot)" 74 log_must file_write -o create -f $TESTDIR/before_file$i \ 88 log_note "Populate the $TESTDIR directory (post snapshot)" 104 ls -Al $TESTDIR 108 FILE_COUNT=`ls -Al $TESTDIR/before* 2> /dev/null \ 111 ls -Al $TESTDIR [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
| H A D | nopwrite_mtime.ksh | 51 o_atime=$(stat -c %X $TESTDIR/clone/file) 52 o_ctime=$(stat -c %Z $TESTDIR/clone/file) 53 o_mtime=$(stat -c %Y $TESTDIR/clone/file) 55 o_atime=$(stat -f "%a" $TESTDIR/clone/file) 65 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 70 atime=$(stat -c %X $TESTDIR/clone/file) 71 ctime=$(stat -c %Z $TESTDIR/clone/file) 72 mtime=$(stat -c %Y $TESTDIR/clone/file) 74 atime=$(stat -f "%a" $TESTDIR/clone/file) 75 ctime=$(stat -f "%c" $TESTDIR/clone/file) [all …]
|
| H A D | nopwrite_negative.ksh | 40 log_must zfs create -o mountpoint=$TESTDIR $origin 47 >/dev/null 2>&1 || log_fail "dd of $TESTDIR/file failed." 51 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 55 log_must rm -f $TESTDIR/file 60 >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 64 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 68 log_must rm -f $TESTDIR/file 72 >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 75 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 79 log_must rm -f $TESTDIR/file [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/acl/posix/ |
| H A D | posix_001_pos.ksh | 50 rmdir $TESTDIR/dir.0 58 log_must touch $TESTDIR/file.0 60 getfacl $TESTDIR/file.0 2> /dev/null | egrep -q \ 65 "echo 'echo test > /dev/null' > $TESTDIR/file.0" 69 log_must mkdir $TESTDIR/dir.0 70 log_must chmod 700 $TESTDIR/dir.0 73 ls -l $TESTDIR |grep "dir.0" |grep -q "drwxrw----+" 79 getfacl $TESTDIR/dir.0 2> /dev/null | egrep -q \ 82 acl=$(getfacl $TESTDIR/dir.0 2> /dev/null) 90 chmod +x $TESTDIR/file.0 [all …]
|
| H A D | posix_002_pos.ksh | 50 log_must mkdir $TESTDIR/dir.0 53 log_must chmod 700 $TESTDIR/dir.0 54 log_must setfacl -m g:$ZFS_ACL_STAFF_GROUP:wx $TESTDIR/dir.0 56 ls -l $TESTDIR |grep "dir.0" |grep -q "drwx-wx---+" 58 msk=$(ls -l $TESTDIR |grep "dir.0" | awk '{print $1}') 62 getfacl $TESTDIR/dir.0 2> /dev/null | egrep -q \ 66 log_must user_run $ZFS_ACL_STAFF1 "touch $TESTDIR/dir.0/file.0" 69 log_mustnot user_run $ZFS_ACL_STAFF1 "ls -l $TESTDIR/dir.0" 73 acl=$(getfacl $TESTDIR/dir.0 2> /dev/null)
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_010_neg.ksh | 57 rm -rf $TESTDIR 63 log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 66 for files in $TESTDIR/file1 $TESTDIR/file2 $TESTDIR/file3 72 "$TOOSMALL $TESTDIR/file1" "$TESTPOOL1 $TESTDIR/file1 $TESTDIR/file2" \ 73 "$TOOSMALL mirror $TESTDIR/file1 $TESTDIR/file2" \ 74 "$TOOSMALL raidz $TESTDIR/file1 $TESTDIR/file2" \ 75 "$TOOSMALL draid $TESTDIR/file1 $TESTDIR/file2 $TESTDIR/file3"
|
| H A D | zpool_create_draid_002_pos.ksh | 46 rmdir $TESTDIR 53 all_vdevs=$(echo $TESTDIR/file.{01..256}) 55 mkdir $TESTDIR 59 log_mustnot zpool create $TESTPOOL draid1 $(echo $TESTDIR/file.{01..01}) 60 log_mustnot zpool create $TESTPOOL draid2 $(echo $TESTDIR/file.{01..02}) 61 log_mustnot zpool create $TESTPOOL draid3 $(echo $TESTDIR/file.{01..03}) 68 $(echo $TESTDIR/file.{01..$i}) 75 $(echo $TESTDIR/file.{01..$i}) 80 log_mustnot zpool create $TESTPOOL draid $(echo $TESTDIR/file.{01..256})
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/casenorm/ |
| H A D | casenorm.kshlib | 27 rm -rf $TESTDIR || log_unresolved Could not remove $TESTDIR 28 mkdir -p $TESTDIR || log_unresolved Could not create $TESTDIR 31 log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 38 rm -rf $TESTDIR || log_unresolved Could not remove $TESTDIR 44 typeset name=$TESTDIR/$1 51 typeset name=$TESTDIR/$1 69 zlook -l $TESTDIR $name >/dev/null 2>&1 71 test -f "${TESTDIR}/${name}" >/dev/null 2>&1 80 zlook -il $TESTDIR $name >/dev/null 2>&1 82 test -f "${TESTDIR}/${name}" >/dev/null 2>&1
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | removal_with_dedup.ksh | 31 echo $FILE_CONTENTS >$TESTDIR/$TESTFILE0 32 echo $FILE_CONTENTS >$TESTDIR/$TESTFILE1 33 echo $FILE_CONTENTS >$TESTDIR/$TESTFILE2 34 log_must [ "x$(<$TESTDIR/$TESTFILE0)" = "x$FILE_CONTENTS" ] 35 log_must [ "x$(<$TESTDIR/$TESTFILE1)" = "x$FILE_CONTENTS" ] 36 log_must [ "x$(<$TESTDIR/$TESTFILE2)" = "x$FILE_CONTENTS" ] 42 log_must dd if=/$TESTDIR/$TESTFILE0 of=/dev/null 43 log_must dd if=/$TESTDIR/$TESTFILE1 of=/dev/null 44 log_must dd if=/$TESTDIR/$TESTFILE2 of=/dev/null 45 log_must [ "x$(<$TESTDIR/$TESTFILE0)" = "x$FILE_CONTENTS" ] [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
| H A D | cp_files_001_pos.ksh | 47 rm -rf $TESTDIR/src $TESTDIR/dst 58 log_must mkdir $TESTDIR/src 59 log_must mkdir $TESTDIR/dst 62 cd $TESTDIR/src 67 log_must test $NR_FILES -eq $(ls -U $TESTDIR/src | wc -l) 70 log_must $STF_SUITE/tests/functional/cp_files/cp_files $TESTDIR/src $TESTDIR/dst 72 log_must test $NR_FILES -eq $(ls -U $TESTDIR/dst | wc -l)
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/devices/ |
| H A D | devices_001_pos.ksh | 61 create_dev_file b $TESTDIR/$TESTFILE1 $ZVOL_DEVDIR/$TESTPOOL/$TESTVOL 62 log_must dd if=/dev/urandom of=$TESTDIR/$TESTFILE1.out1 count=1 bs=128k 63 log_must dd if=$TESTDIR/$TESTFILE1.out1 of=$TESTDIR/$TESTFILE1 count=1 bs=128k 64 log_must dd if=$TESTDIR/$TESTFILE1 of=$TESTDIR/$TESTFILE1.out2 count=1 bs=128k 65 log_must cmp $TESTDIR/$TESTFILE1.out1 $TESTDIR/$TESTFILE1.out2 69 create_dev_file c $TESTDIR/$TESTFILE2 70 log_must dd if=/dev/urandom of=$TESTDIR/$TESTFILE2 count=1 bs=128k
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/upgrade/ |
| H A D | upgrade_projectquota_001_pos.ksh | 52 log_must zpool create -d -m $TESTDIR $TESTPOOL $TMPDEV 54 log_must mkfiles $TESTDIR/tf $((RANDOM % 100 + 1)) 56 log_must mkfiles $TESTDIR/fs1/tf $((RANDOM % 100 + 1)) 60 log_must mkdir $TESTDIR/fs2/dir 61 log_must mkfiles $TESTDIR/fs2/tf $((RANDOM % 100 + 1)) 64 log_must mkdir $TESTDIR/fs3/dir 78 log_mustnot chattr -p 100 $TESTDIR/fs3/dir 81 log_mustnot chattr +P $TESTDIR/fs3/dir 97 log_must mkfile 1m $TESTDIR/fs2/dir/tf 103 log_must lsattr -p -d $TESTDIR/fs3/dir [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
| H A D | zpool_add_006_pos.ksh | 50 rm -rf $TESTDIR 56 log_must mkdir -p $TESTDIR 57 log_must truncate -s $MINVDEVSIZE $TESTDIR/file.00 58 create_pool "$TESTPOOL1" "$TESTDIR/file.00" 60 vdevs_list=$(echo $TESTDIR/file.{01..16}) 67 log_must truncate -s 32m $TESTDIR/broken_file 68 log_mustnot zpool add -f $TESTPOOL1 ${TESTDIR}/broken_file 69 log_mustnot vdevs_in_pool $TESTPOOL1 ${TESTDIR}/broken_file
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/ |
| H A D | mmap_write_001_pos.ksh | 55 log_must chmod 777 $TESTDIR 56 mmapwrite $TESTDIR/normal_write_file $TESTDIR/map_write_file & 58 log_note "mmapwrite $TESTDIR/normal_write_file $TESTDIR/map_write_file"\ 63 log_must ls -l $TESTDIR/normal_write_file 64 log_must ls -l $TESTDIR/map_write_file
|