| /freebsd/usr.bin/truncate/tests/ |
| H A D | truncate_test.sh | 75 atf_check -s not-exit:0 -e file:stderr.txt truncate -7 -s0 output.txt 90 atf_check -s not-exit:0 -e file:stderr.txt truncate -s+1L output.txt 106 truncate -s8388608t output.txt 118 atf_check truncate -c -s 0 doesnotexist.txt 121 atf_check truncate -c -r reference doesnotexist.txt 128 atf_check -e file:stderr.txt truncate -c -s1 exists.txt 144 atf_check -s not-exit:0 -e file:stderr.txt truncate -s0 -r afile afile 158 atf_check -s not-exit:0 -e file:stderr.txt truncate -s1 172 atf_check -s not-exit:0 -e file:stderr.txt truncate -r afile afile 191 atf_check -s not-exit:0 -e file:stderr.txt truncate -s1 exists.txt [all …]
|
| /freebsd/usr.bin/du/tests/ |
| H A D | du_test.sh | 50 atf_check truncate -s 10g sparse.file 112 atf_check truncate -s 8192 testdir1/A 126 atf_check truncate -s 8192 testdir1/A 140 atf_check truncate -s 0 testdir1/A 152 atf_check truncate -s 8192 foo bar 179 atf_check truncate -s 1k A 180 atf_check truncate -s 1m B 181 atf_check truncate -s 1g C 182 atf_check truncate -s 1t D 194 atf_check truncate -s 1k A [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send_raw_ashift.ksh | 85 log_must truncate -s 0 /pool9/$1/file3 86 log_must truncate -s 8192 /pool9/$1/file4 87 log_must truncate -s 1073741824 /pool9/$1/file5 88 log_must truncate -s 50 /pool9/$1/file6 102 log_must truncate -s 0 /pool9/$1/file13 103 log_must truncate -s 8192 /pool9/$1/file14 104 log_must truncate -s 1073741824 /pool9/$1/file15 105 log_must truncate -s 50 /pool9/$1/file16 123 log_must truncate -s 0 /pool9/$1/file23 124 log_must truncate -s 8192 /pool9/$1/file24 [all …]
|
| H A D | send_raw_spill_block.ksh | 88 log_must truncate -s 0 /$POOL/fs/file3 89 log_must truncate -s 8192 /$POOL/fs/file4 90 log_must truncate -s 1073741824 /$POOL/fs/file5 91 log_must truncate -s 50 /$POOL/fs/file6 105 log_must truncate -s 0 /$POOL/fs/file13 106 log_must truncate -s 8192 /$POOL/fs/file14 107 log_must truncate -s 1073741824 /$POOL/fs/file15 108 log_must truncate -s 50 /$POOL/fs/file16 126 log_must truncate -s 0 /$POOL/fs/file23 127 log_must truncate -s 8192 /$POOL/fs/file24 [all …]
|
| H A D | send_spill_block.ksh | 84 log_must truncate -s 0 /$POOL/fs/file3 85 log_must truncate -s 8192 /$POOL/fs/file4 86 log_must truncate -s 1073741824 /$POOL/fs/file5 87 log_must truncate -s 50 /$POOL/fs/file6 101 log_must truncate -s 0 /$POOL/fs/file13 102 log_must truncate -s 8192 /$POOL/fs/file14 103 log_must truncate -s 1073741824 /$POOL/fs/file15 104 log_must truncate -s 50 /$POOL/fs/file16 122 log_must truncate -s 0 /$POOL/fs/file23 123 log_must truncate -s 8192 /$POOL/fs/file24 [all …]
|
| /freebsd/contrib/pjdfstest/tests/truncate/ |
| H A D | 08.t | 27 expect EPERM truncate ${n0} 123 30 expect 0 truncate ${n0} 123 36 expect 0 truncate ${n0} 123 44 expect EPERM truncate ${n0} 123 48 expect 0 truncate ${n0} 123 56 expect EPERM truncate ${n0} 123 59 expect 0 truncate ${n0} 123 65 expect 0 truncate ${n0} 123 72 expect EPERM truncate ${n0} 123 75 expect 0 truncate ${n0} 123
|
| H A D | 00.t | 20 expect 0 truncate ${n0} 1234567 22 expect 0 truncate ${n0} 567 27 expect 0 truncate ${n0} 23456 29 expect 0 truncate ${n0} 1 37 expect 0 truncate ${n0} 123 46 expect EACCES -u 65534 truncate ${n0} 123
|
| H A D | 05.t | 22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123 25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234 28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
|
| /freebsd/contrib/pjdfstest/tests/ftruncate/ |
| H A D | 08.t | 27 expect EPERM truncate ${n0} 123 30 expect 0 truncate ${n0} 123 36 expect 0 truncate ${n0} 123 44 expect EPERM truncate ${n0} 123 48 expect 0 truncate ${n0} 123 56 expect EPERM truncate ${n0} 123 59 expect 0 truncate ${n0} 123 65 expect 0 truncate ${n0} 123 72 expect EPERM truncate ${n0} 123 75 expect 0 truncate ${n0} 123
|
| H A D | 05.t | 22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123 25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234 28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | truncate.sh | 35 sed '1,/^EOF/d' < $here/$0 > truncate.c 36 mycc -o truncate -Wall -Wextra -O2 truncate.c || exit 1 37 rm -f truncate.c 41 /tmp/truncate 43 rm -f /tmp/truncate
|
| H A D | newfs5.sh | 53 truncate -s 2g f1 54 truncate -s 2g f2 55 truncate -s 2g f3 56 truncate -s 2g f4
|
| H A D | newfs4.sh | 65 truncate -s 2g f1 66 truncate -s 2g f2 67 truncate -s 2g f3 68 truncate -s 2g f4
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_trim/ |
| H A D | zpool_trim_multiple_pools.ksh | 58 truncate -s $DEVSIZE $DISK1 59 truncate -s $DEVSIZE $DISK2 60 truncate -s $DEVSIZE $DISK3 61 truncate -s $DEVSIZE $DISK4 65 truncate -s $DEVSIZE ${DISK[$pool]}
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
| H A D | zpool_initialize_multiple_pools.ksh | 66 truncate -s $DEVSIZE $DISK1 67 truncate -s $DEVSIZE $DISK2 68 truncate -s $DEVSIZE $DISK3 69 truncate -s $DEVSIZE $DISK4 73 truncate -s $DEVSIZE ${DISK[$pool]}
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
| H A D | zpool_scrub_multiple_pools.ksh | 65 truncate -s $DEVSIZE $DISK1 66 truncate -s $DEVSIZE $DISK2 67 truncate -s $DEVSIZE $DISK3 68 truncate -s $DEVSIZE $DISK4 72 truncate -s $DEVSIZE ${DISK[$pool]}
|
| H A D | zpool_scrub_offline_device.ksh | 93 log_must truncate -s $DEVSIZE $DISK1 94 log_must truncate -s $DEVSIZE $DISK2 95 log_must truncate -s $DEVSIZE $DISK3 96 log_must truncate -s $DEVSIZE $DISK4
|
| /freebsd/tests/sys/cddl/zfs/tests/truncate/ |
| H A D | truncate_test.sh | 37 . $(atf_get_srcdir)/truncate.cfg 46 . $(atf_get_srcdir)/truncate.cfg 61 . $(atf_get_srcdir)/truncate.cfg 70 . $(atf_get_srcdir)/truncate.cfg
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
| H A D | remove_expanded.ksh | 37 log_must truncate -s $MINVDEVSIZE $DISK0 38 log_must truncate -s $(($MINVDEVSIZE * 3)) $DISK1 39 log_must truncate -s $MINVDEVSIZE $DISK2 56 log_must truncate -s $(($MINVDEVSIZE * 2)) $DISK0
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_expand/ |
| H A D | zpool_expand_003_neg.ksh | 68 log_must truncate -s $org_size $FILE_LO 76 log_must truncate -s $org_size $FILE_RAW 92 log_must truncate -s $exp_size $FILE_LO 101 log_must truncate -s $exp_size $FILE_RAW
|
| H A D | zpool_expand_001_pos.ksh | 100 log_must truncate -s $org_size $FILE_LO 108 log_must truncate -s $org_size $FILE_RAW 129 log_must truncate -s $exp_size $FILE_LO 136 log_must truncate -s $exp_size $FILE_RAW
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
| H A D | auto_spare_multiple.ksh | 79 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEV1 87 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEVS 94 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEVS 162 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEV1 170 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEVS 177 truncate -s $MINVDEVSIZE $DATA_DEVS $SPARE_DEVS
|
| /freebsd/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_truncate.c | 126 ATF_REQUIRE(truncate(path, sizes[i]) == 0); in ATF_TC_BODY() 156 ATF_REQUIRE_ERRNO(EFAULT, truncate((void *)-1, 999) == -1); in ATF_TC_BODY() 159 ATF_REQUIRE_ERRNO(EISDIR, truncate("/etc", 999) == -1); in ATF_TC_BODY() 162 ATF_REQUIRE_ERRNO(ENOENT, truncate("/a/b/c/d/e/f/g", 999) == -1); in ATF_TC_BODY() 167 ATF_REQUIRE_ERRNO(EACCES, truncate(buf, 999) == -1); in ATF_TC_BODY()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
| H A D | zpool_add_006_pos.ksh | 48 log_must truncate -s $MINVDEVSIZE $TESTDIR/file.00 52 log_must truncate -s $MINVDEVSIZE $vdevs_list 58 log_must truncate -s 32m $TESTDIR/broken_file
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/ |
| H A D | zpool_split_cliargs.ksh | 42 truncate -s $SPA_MINDEVSIZE $DEVICE1 43 truncate -s $SPA_MINDEVSIZE $DEVICE2 77 truncate -s $SPA_MINDEVSIZE $DEVICE3
|