Home
last modified time | relevance | path

Searched refs:testfile (Results 1 – 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/holes/
H A Dholes_sanity.ksh34 testfile="$TESTDIR/testfile"
43 log_must mkholes -h 0:$((bs * 6)) $testfile
44 verify_holes_and_data_blocks $testfile 6 0
45 log_must rm $testfile
47 log_must mkholes -h 0:$((bs * 4)) -d $((bs * 4)):$((bs * 2)) $testfile
48 verify_holes_and_data_blocks $testfile 4 2
49 log_must rm $testfile
52 -h $((bs * 4)):$((bs * 2)) $testfile
53 verify_holes_and_data_blocks $testfile 4 2
54 log_must rm $testfile
[all …]
H A Dholes.shlib16 # testfile The file to examine.
21 typeset testfile=$1
26 found_hole_blks=$(getholes -h $testfile)
27 found_data_blks=$(getholes -d $testfile)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_015_pos.ksh77 log_mustnot touch $dir/testfile
87 testfile=$mntpnt/testfile.$cnt
88 log_must mkfile 1M $testfile
103 testfile=$mntpnt/testfile.$i
105 if [[ ! -f $testfile ]]; then
106 log_fail "ERROR: $testfile should exists."
109 if [[ -f $testfile ]]; then
110 log_fail "ERROR: $testfile should not exists."
/illumos-gate/usr/src/test/util-tests/tests/libsff/
H A Dlibsff.ksh46 testfile=$sff_root/libsff_$t
48 if ! $testfile > $sff_outfile; then
49 fatal "failed to run $testfile"
52 if [[ -f $testfile.out ]]; then
53 if ! diff $testfile.out $sff_outfile >/dev/null; then
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_008_pos.ksh54 if [[ -f $testfile ]]; then
55 log_must rm -f $testfile
71 testfile=$mntpnt/$TESTFILE0; testfile1=$mntpnt1/$TESTFILE1
72 log_must mkfile 1M $testfile $testfile1
83 log_mustnot ls $testfile
94 log_must ls $testfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_tar_002_pos.ksh82 log_note "Create a file: $testfile, and directory: $testdir, in zfs " \
91 log_must usr_exec touch $testfile
94 log_must usr_exec runat $testfile cp $mytestfile attr.0
100 log_must usr_exec chmod ${ops[0]} $testfile
104 log_must tar cpf@ $TARFILE ${testfile#$TESTDIR/} ${testdir#$TESTDIR/}
111 for obj in $testfile $testdir; do
H A Dzfs_acl_aclmode_restricted_001_neg.ksh68 log_must usr_exec touch $TESTDIR/testfile
72 $TESTDIR/testdir $TESTDIR/testfile
75 log_mustnot usr_exec chmod u-w $TESTDIR/testfile
78 log_must usr_exec rm $TESTDIR/testfile
H A Dzfs_acl_chmod_rwx_004_pos.ksh122 log_must usr_exec touch $testfile
124 log_must usr_exec chmod 755 $testfile $testdir
126 for node in $testfile $testdir; do
134 log_must usr_exec rm -rf $testfile $testdir
H A Dzfs_acl_chmod_001_neg.ksh123 for node in $testfile $testdir; do
124 log_must usr_exec touch $testfile
131 log_must usr_exec rm -rf $testfile $testdir
H A Dzfs_acl_chmod_rwx_001_pos.ksh111 log_must usr_exec touch $testfile
112 test_chmod_ACE_list $opt $num $ace $testfile
113 log_must rm -f $testfile
H A Dzfs_acl_chmod_rwx_003_pos.ksh125 log_must usr_exec touch $testfile
126 test_chmod_basic_access $testfile ${users[((i+1))]} ${users[((i+2))]}
130 log_must usr_exec rm -rf $testfile $testdir
H A Dzfs_acl_cp_002_pos.ksh78 for obj in $testfile $testdir; do
80 log_must usr_exec touch $testfile
83 log_must usr_exec runat $testfile cp $mytestfile attr.0
H A Dzfs_acl_chmod_compact_001_pos.ksh236 log_must usr_exec touch $testfile
237 test_chmod_map $testfile
238 log_must rm -f $testfile
H A Dzfs_acl_chmod_rwx_002_pos.ksh231 log_must usr_exec touch $testfile
232 test_chmod_map $testfile
233 log_must rm -f $testfile
H A Dzfs_acl_cp_001_pos.ksh75 for obj in $testfile $testdir; do
77 log_must usr_exec touch $testfile
H A Dzfs_acl_chmod_rwacl_001_pos.ksh265 log_must usr_exec touch $testfile
270 for node in $testfile $testdir; do
275 log_must usr_exec rm -rf $testfile $testdir
/illumos-gate/usr/src/test/zfs-tests/cmd/largest_file/
H A Dlargest_file.c62 char *testfile; in main() local
71 testfile = strdup(argv[1]); in main()
73 fd = open(testfile, O_CREAT | O_RDWR, mode); in main()
117 (void) unlink(testfile); in main()
118 free(testfile); in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/trivial/
H A Dzfs_acl_chmod_001_pos.ksh119 log_must usr_exec touch $testfile
120 log_must test_chmod_mapping $testfile
121 log_must usr_exec chmod A+user:$ZFS_ACL_STAFF2:write_acl:allow $testfile
131 log_must test_chmod_mapping $testfile
136 log_must usr_exec rm $testfile
H A Dzfs_acl_aclmode_restricted_001_pos.ksh118 log_must usr_exec touch $testfile
119 log_must test_chmod_mapping $testfile
125 log_must usr_exec rm $testfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_property/
H A Dzfs_written_property_001_pos.ksh73 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/testfile.$i bs=1M \
117 log_must rm /$TESTPOOL/$TESTFS1/testfile.3
139 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/testfile.3 bs=1M \
164 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS1/snap1.clone/testfile bs=1M \
202 log_must dd if=/dev/urandom of=/$ds/testfile bs=1M count=$blocks
215 log_must dd if=/dev/urandom of=/$ds/testfile bs=1M \
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dquick.test40 foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
41 set tail [file tail $testfile]
43 source $testfile
H A Dmemleak.test60 foreach testfile $FILELIST {
61 set tail [file tail $testfile]
65 source $testfile
H A Dall.test67 foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
68 set tail [file tail $testfile]
70 source $testfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/
H A Dacl.cfg30 export TESTFILE=testfile$$
52 export testfile=$TESTDIR/testfile
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dmntinfo.c189 char testfile[PATH_MAX]; in really_write() local
193 (void) snprintf(testfile, sizeof (testfile), "%s/testXXXXXX", mountpt); in really_write()
195 if (mktemp(testfile) == NULL) in really_write()
198 else if ((fd = creat(testfile, 0777)) == -1) in really_write()
208 (void) unlink(testfile); in really_write()

123