/titanic_50/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_011_pos.ksh | 51 log_must $RM $TESTDIR/myfile.$$ 59 log_must $TOUCH $TESTDIR/myfile.$$ 60 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd 70 log_must $TOUCH $TESTDIR/cpio.$$ 71 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd 72 $ECHO $TESTDIR/cpio.$$ | $CPIO -o@ > /tmp/xattr.$$.cpio 73 $ECHO $TESTDIR/cpio.$$ | $CPIO -o > /tmp/noxattr.$$.cpio 77 log_mustnot eval "$RUNAT $TESTDIR/cpio.$$ $CAT passwd > /dev/null 2>&1" 81 log_must eval "$RUNAT $TESTDIR/cpio.$$ $CAT passwd > /dev/null 2>&1" 85 log_mustnot eval "$RUNAT $TESTDIR/cpio.$$ $CAT passwd > /dev/null 2>&1" [all …]
|
H A D | xattr_013_pos.ksh | 48 log_must $RM $TESTDIR/myfile.$$ 61 log_must $TOUCH $TESTDIR/myfile.$$ 62 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd 64 log_must $UMOUNT $TESTDIR 68 log_mustnot eval "$RUNAT $TESTDIR/myfile.$$ $CAT passwd > /dev/null 2>&1" 69 log_mustnot eval "$RUNAT $TESTDIR/myfile.$$ $RM passwd > /dev/null 2>&1" 70 log_mustnot eval "$RUNAT $TESTDIR/myfile.$$ $CP /etc/passwd . > /dev/null 2>&1" 72 log_must $TOUCH $TESTDIR/new.$$ 73 log_mustnot eval "$RUNAT $TESTDIR/new.$$ $CP /etc/passwd . > /dev/null 2>&1" 74 log_mustnot eval "$RUNAT $TESTDIR/new.$$ $RM passwd > /dev/null 2>&1" [all …]
|
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
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_002_pos.ksh | 67 if [[ -e $TESTDIR ]]; then 68 log_must $RM -rf $TESTDIR/* > /dev/null 2>&1 85 [[ -n $TESTDIR ]] && \ 86 $RM -rf $TESTDIR/* > /dev/null 2>&1 92 log_must $FILE_WRITE -o $OP -f $TESTDIR/file$i \ 98 log_note "Create a tarball from $TESTDIR contents..." 100 cd $TESTDIR || log_fail "Could not cd $TESTDIR" 101 log_must $TAR cf $TESTDIR/tarball.original.tar file* 108 log_must $RM -f $TESTDIR/file* > /dev/null 2>&1 113 log_must $TAR cf $TESTDIR/tarball.snapshot.tar file* [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 75 log_note "Populate the $TESTDIR directory (prior to first snapshot)" 78 log_must $FILE_WRITE -o create -f $TESTDIR/original_file$i \ 92 log_note "Populate the $TESTDIR directory (prior to second snapshot)" 95 log_must $FILE_WRITE -o create -f $TESTDIR/afterfirst_file$i \ 103 log_note "Populate the $TESTDIR directory (Post second snapshot)" 106 log_must $FILE_WRITE -o create -f $TESTDIR/aftersecond_file$i \ [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)" 91 log_must $FILE_WRITE -o create -f $TESTDIR/after_file$i \ 102 FILE_COUNT=`$LS -Al $TESTDIR/after* 2> /dev/null | $GREP -v "total" | wc -l` 104 $LS -Al $TESTDIR [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)" 89 log_must $FILE_WRITE -o create -f $TESTDIR/after_file$i \ 100 FILE_COUNT=`$LS -Al $TESTDIR/after* 2> /dev/null | $GREP -v "total" | wc -l` 102 $LS -Al $TESTDIR [all …]
|
H A D | snapshot_017_pos.ksh | 64 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 147 cd $TESTDIR 160 cd $TESTDIR 169 cd $TESTDIR 177 verify_dir $TESTDIR/.zfs 178 verify_dir $TESTDIR/.zfs/snapshot 179 verify_dir $TESTDIR/.zfs/snapshot/snap_a 180 verify_dir $TESTDIR/.zfs/snapshot/snap_b 182 cd $TESTDIR/.zfs/snapshot/snap_a 185 cd $TESTDIR/.zfs/snapshot/snap_b [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_negative.ksh | 40 log_must $ZFS create -o mountpoint=$TESTDIR $origin 46 $DD if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 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 59 $DD if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 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 71 $DD if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ [all …]
|
H A D | nopwrite_mtime.ksh | 38 log_must $ZFS create -o mountpoint=$TESTDIR $origin 45 $DD if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 46 >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 50 o_atime=$($LS -E% all $TESTDIR/clone/file | $AWK '/atime/ {print $4}') 51 o_ctime=$($LS -E% all $TESTDIR/clone/file | $AWK '/ctime/ {print $4}') 52 o_mtime=$($LS -E% all $TESTDIR/clone/file | $AWK '/mtime/ {print $4}') 53 $DD if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 55 atime=$($LS -E% all $TESTDIR/clone/file | $AWK '/atime/ {print $4}') 56 ctime=$($LS -E% all $TESTDIR/clone/file | $AWK '/ctime/ {print $4}') 57 mtime=$($LS -E% all $TESTDIR/clone/file | $AWK '/mtime/ {print $4}')
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_010_neg.ksh | 56 [[ -d $TESTDIR ]] && $RM -rf $TESTDIR 70 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 72 for files in $TESTDIR/file1 $TESTDIR/file2 78 "$TOOSMALL $TESTDIR/file1" "$TESTPOOL1 $TESTDIR/file1 $TESTDIR/file2" \ 79 "$TOOSMALL mirror $TESTDIR/file1 $TESTDIR/file2" \ 80 "$TOOSMALL raidz $TESTDIR/file1 $TESTDIR/file2"
|
H A D | zpool_create_017_neg.ksh | 54 if [[ -d $TESTDIR ]]; then 55 log_must $RM -rf $TESTDIR 70 if [[ ! -d $TESTDIR ]]; then 71 log_must $MKDIR -p $TESTDIR 77 log_must $RM -rf $TESTDIR/* 79 log_must $MKDIR $TESTDIR/testdir 81 log_must $TOUCH $TESTDIR/testfile 84 log_mustnot $ZPOOL create -m $TESTDIR -f $TESTPOOL $pool_dev
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_user/misc/ |
H A D | setup.ksh | 58 $TOUCH /$TESTDIR/file.txt 119 $MKFILE 100m /$TESTDIR/disk1.dat 120 $MKFILE 100m /$TESTDIR/disk2.dat 121 $MKFILE 100m /$TESTDIR/disk3.dat 122 $MKFILE 100m /$TESTDIR/disk-additional.dat 123 $MKFILE 100m /$TESTDIR/disk-export.dat 124 $MKFILE 100m /$TESTDIR/disk-offline.dat 125 $MKFILE 100m /$TESTDIR/disk-spare1.dat 126 $MKFILE 100m /$TESTDIR/disk-spare2.dat 130 log_must $ZPOOL create $TESTPOOL.virt mirror /$TESTDIR/disk1.dat \ [all …]
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/casenorm/ |
H A D | casenorm.kshlib | 23 $RM -rf $TESTDIR || log_unresolved Could not remove $TESTDIR 24 $MKDIR -p $TESTDIR || log_unresolved Could not create $TESTDIR 27 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS 34 $RM -rf $TESTDIR || log_unresolved Could not remove $TESTDIR 40 typeset name=$TESTDIR/$1 47 typeset name=$TESTDIR/$1 64 $ZLOOK -l $TESTDIR $name >/dev/null 2>&1 71 $ZLOOK -il $TESTDIR $name >/dev/null 2>&1
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/replacement/ |
H A D | replacement_002_pos.ksh | 61 [[ -e $TESTDIR ]] && log_must $RM -rf $TESTDIR/* 98 $FILE_TRUNC $options $TESTDIR/$TESTFILE.$i & 103 log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i" 121 log_must $ZPOOL import -d $TESTDIR $TESTPOOL1 131 $MKFILE 100m $TESTDIR/$TESTFILE1.$i 132 specials_list="$specials_list $TESTDIR/$TESTFILE1.$i" 140 $MKFILE 100m $TESTDIR/$REPLACEFILE 147 attach_test "$opt" $TESTDIR/$TESTFILE1.1 $TESTDIR/$REPLACEFILE 149 $ZPOOL iostat -v $TESTPOOL1 | grep "$TESTDIR/$REPLACEFILE" 165 log_mustnot $ZPOOL attach "$opt" $TESTDIR/$TESTFILE1.1 \ [all …]
|
H A D | replacement_001_pos.ksh | 61 [[ -e $TESTDIR ]] && log_must $RM -rf $TESTDIR/* 98 $FILE_TRUNC $options $TESTDIR/$TESTFILE.$i & 103 log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i" 121 log_must $ZPOOL import -d $TESTDIR $TESTPOOL1 131 $MKFILE 100m $TESTDIR/$TESTFILE1.$i 132 specials_list="$specials_list $TESTDIR/$TESTFILE1.$i" 140 $MKFILE 100m $TESTDIR/$REPLACEFILE 148 replace_test "$opt" $TESTDIR/$TESTFILE1.1 $TESTDIR/$REPLACEFILE 150 $ZPOOL iostat -v $TESTPOOL1 | grep "$TESTDIR/$REPLACEFILE"
|
H A D | replacement_003_pos.ksh | 61 [[ -e $TESTDIR ]] && log_must $RM -rf $TESTDIR/* 96 $FILE_TRUNC $options $TESTDIR/$TESTFILE.$i & 101 log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i" 119 log_must $ZPOOL import -d $TESTDIR $TESTPOOL1 128 $MKFILE 100m $TESTDIR/$TESTFILE1.$i 129 specials_list="$specials_list $TESTDIR/$TESTFILE1.$i" 138 detach_test $TESTDIR/$TESTFILE1.1 140 $ZPOOL iostat -v $TESTPOOL1 | grep "$TESTDIR/$TESTFILE1.1" 154 log_mustnot $ZPOOL detach $TESTDIR/$TESTFILE1.1 156 $ZPOOL iostat -v $TESTPOOL1 | grep "$TESTDIR/$TESTFILE1.1"
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | zpool_add_006_pos.ksh | 55 [[ -d $TESTDIR ]] && log_must $RM -rf $TESTDIR 63 log_must $ZFS create -o mountpoint=$TESTDIR $TESTPOOL/$TESTFS 64 log_must $MKFILE 64m $TESTDIR/file.00 65 create_pool "$TESTPOOL1" "$TESTDIR/file.00" 67 vdevs_list=$($ECHO $TESTDIR/file.{01..32}) 74 log_must $MKFILE 32m $TESTDIR/broken_file 75 log_mustnot $ZPOOL add -f "$TESTPOOL1" ${TESTDIR}/broken_file 76 log_mustnot vdevs_in_pool "$TESTPOOL1" "${TESTDIR}/broken_file"
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/history macro 43 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 46 DATA = $(DATAFILES:%=$(TESTDIR)/%) 53 $(CMDS): $(TESTDIR) 55 $(DATA): $(TESTDIR) 57 $(TESTDIR): 60 $(TESTDIR)/%: %.ksh 63 $(TESTDIR)/%: %
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/reservation/ |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/reservation macro 45 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 52 $(CMDS): $(TESTDIR) 54 $(TESTDIR): 57 $(TESTDIR)/%: %.sh 60 $(TESTDIR)/%: %.ksh 63 $(TESTDIR)/%: %
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/cli_user/zfs_list/ |
H A D | zfs_list_001_pos.ksh | 78 set -A pathargs "list -r $TESTDIR" "list -H $TESTDIR" \ 79 "list -r ./../$TESTDIR" "list -H ./../$TESTDIR" 81 set -A d_pathargs " $TESTDIR" "-r $TESTDIR" "-H $TESTDIR" \ 82 "-r ./../$TESTDIR" "-H ./../$TESTDIR"
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_aclmode_restricted_001_neg.ksh | 67 log_must usr_exec $MKDIR $TESTDIR/testdir 68 log_must usr_exec $TOUCH $TESTDIR/testfile 72 $TESTDIR/testdir $TESTDIR/testfile 74 log_mustnot usr_exec $CHMOD u-w $TESTDIR/testdir 75 log_mustnot usr_exec $CHMOD u-w $TESTDIR/testfile 77 log_must usr_exec $RMDIR $TESTDIR/testdir 78 log_must usr_exec $RM $TESTDIR/testfile
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/largest_pool/ |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/largest_pool macro 25 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 32 $(CMDS): $(TESTDIR) 34 $(TESTDIR): 37 $(TESTDIR)/%: %.ksh 40 $(TESTDIR)/%: %
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/grow_replicas/ |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/grow_replicas macro 25 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 32 $(CMDS): $(TESTDIR) 34 $(TESTDIR): 37 $(TESTDIR)/%: %.ksh 40 $(TESTDIR)/%: %
|
/titanic_50/usr/src/test/zfs-tests/tests/functional/holes/ |
H A D | Makefile | 19 TESTDIR = $(ROOTOPTPKG)/tests/functional/holes macro 27 CMDS = $(PROGS:%=$(TESTDIR)/%) $(FILES:%=$(TESTDIR)/%) 34 $(CMDS): $(TESTDIR) 36 $(TESTDIR): 39 $(TESTDIR)/%: %.ksh 42 $(TESTDIR)/%: %
|