Home
last modified time | relevance | path

Searched refs:truncate (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/freebsd/usr.bin/truncate/tests/
H A Dtruncate_test.sh75 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 Ddu_test.sh50 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 Dsend_raw_ashift.ksh85 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 Dsend_raw_spill_block.ksh88 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 Dsend_spill_block.ksh84 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 D08.t27 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 D00.t20 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 D05.t22 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 D08.t27 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 D05.t22 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 Dtruncate.sh35 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 Dnewfs5.sh53 truncate -s 2g f1
54 truncate -s 2g f2
55 truncate -s 2g f3
56 truncate -s 2g f4
H A Dnewfs4.sh65 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 Dzpool_trim_multiple_pools.ksh58 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 Dzpool_initialize_multiple_pools.ksh66 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 Dzpool_scrub_multiple_pools.ksh65 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 Dzpool_scrub_offline_device.ksh93 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 Dtruncate_test.sh37 . $(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 Dremove_expanded.ksh37 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 Dzpool_expand_003_neg.ksh68 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 Dzpool_expand_001_pos.ksh100 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 Dauto_spare_multiple.ksh79 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 Dt_truncate.c126 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 Dzpool_add_006_pos.ksh48 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 Dzpool_split_cliargs.ksh42 truncate -s $SPA_MINDEVSIZE $DEVICE1
43 truncate -s $SPA_MINDEVSIZE $DEVICE2
77 truncate -s $SPA_MINDEVSIZE $DEVICE3

12345678910>>...21