Home
last modified time | relevance | path

Searched refs:file1 (Results 1 – 25 of 184) sorted by relevance

12345678

/freebsd/usr.bin/compress/tests/
H A Dcompress_test.sh39 \050\123\252\134\211\360\206\002" >file1.Z
40 atf_check uncompress file1.Z
41 atf_check cmp file1 expectfile1
42 atf_check test ! -e file1.Z
58 \050\123\252\134\211\360\206\002" >file1.Z
59 atf_check uncompress file1
60 atf_check cmp file1 expectfile1
61 atf_check test ! -e file1.Z
77 \050\123\252\134\211\360\206\002" >file1.Z
94 \050\123\252\134\211\360\206\002" >file1.Z
[all …]
/freebsd/tools/test/stress2/testcases/dirnprename/
H A Ddirnprename.c46 char file1[512]; in setup() local
94 sprintf(file1, "%s/%0255d", path, i); in setup()
95 if (mkdir(file1, 0770) == -1) in setup()
96 err(1, "mkdir(%s), %s:%d", file1, __FILE__, __LINE__); in setup()
104 char file1[512]; in cleanup() local
109 sprintf(file1, "%s/%0255d", path, i); in cleanup()
110 if (rmdir(file1) == -1) in cleanup()
111 warn("rmdir(%s), %s:%d", file1, __FILE__, __LINE__); in cleanup()
123 char file1[128]; in test_rename() local
128 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
[all …]
/freebsd/tools/test/stress2/misc/
H A Drename_exchange.sh31 char file1[1024], file2[1024];
33 snprintf(file1, sizeof(file1), "%s/%s", dir, f1);
35 if (stat(file1, &s1) < 0)
36 err(1, "stat(%s)", file1);
42 if (renameat2(AT_FDCWD, file1, AT_FDCWD, file2, RENAME_EXCHANGE) == -1)
43 err(1, "%s: rename2(%s, %s)", __func__, file1, file2);
45 if (stat(file1, &s) < 0)
46 err(1, "statfs(%s)", file1);
50 if (renameat2(AT_FDCWD, file2, AT_FDCWD, file1, RENAME_EXCHANGE) == -1)
51 err(1, "%s: rename2(%s, %s)", __func__, file2, file1);
[all …]
H A Dmsdos17.sh45 static char file1[80], file2[80];
58 if (rename(file1, file2) == -1)
59 err(1, "rename(%s, %s)", file1, file2);
60 if (stat(file1, &sb) == 0)
61 err(1, "stat(%s)", file1);
76 if (rename(file2, file1) == -1)
77 err(1, "rename(%s, %s)", file2, file1);
101 snprintf(file1, sizeof(file1), "%s/a.%06d", cwd, getpid());
103 if ((fd = open(file1, O_CREAT, 0640)) == -1)
104 err(1, "open(%s)", file1);
[all …]
H A Dmsdos8.sh95 char file1[128], file2[128];
99 sprintf(file1,"p%05d.%05d", pid, i);
100 if ((fd = open(file1, O_RDONLY|O_CREAT, 0660)) == -1)
101 err(1, "openat(%s), %s:%d", file1, __FILE__,
107 sprintf(file1,"p%05d.%05d", pid, i);
109 if (rename(file1, file2) == -1)
110 err(1, "rename(%s, %s). %s:%d", file1,
114 sprintf(file1,"p%05d.%05d", pid, i);
116 if (rename(file2, file1) == -1)
118 file1, __FILE__, __LINE__);
[all …]
H A Drename8.sh81 static char *always, *file1, *file2;
98 stat(file1, &sb);
129 asprintf(&file1, "%s/file1", av[1]);
144 if (unlink(file1) < 0 && errno != ENOENT)
145 err(1, "unlink(%s)", file1);
146 if (link(always, file1) < 0)
147 err(1, "link(%s, %s)", always, file1);
151 if (rename(file2, file1) < 0)
152 err(1, "rename(%s, %s)", file2, file1);
153 if (stat(file1, &sb) < 0)
[all …]
/freebsd/tools/test/stress2/testcases/dirrename/
H A Ddirrename.c95 char file1[128]; in test_rename() local
100 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
101 if (mkdir(file1, 0660) == -1) { in test_rename()
106 sprintf(file1,"p%05d.%05d", pid, j); in test_rename()
107 rmdir(file1); in test_rename()
110 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
111 err(1, "mkdir(%s), %s:%d", file1, __FILE__, __LINE__); in test_rename()
116 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
118 if (rename(file1, file2) == -1) in test_rename()
119 err(1, "rename(%s, %s). %s:%d", file1, file2, in test_rename()
[all …]
/freebsd/tools/regression/zfs/zpool/add/
H A Dfiles.t26 expect_ok ${ZPOOL} create ${name0} ${file0} ${file1}
28 expect_fl ${ZPOOL} add ${name0} ${file1}
43 expect_ok ${ZPOOL} add ${name0} ${file1}
52 echo " ${file1} ONLINE 0 0 0"
59 expect_ok ${ZPOOL} create ${name0} ${file0} ${file1} ${file2}
69 echo " ${file1} ONLINE 0 0 0"
79 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1}
90 echo " ${file1} ONLINE 0 0 0"
100 expect_ok ${ZPOOL} create ${name0} raidz1 ${file0} ${file1} ${file2}
111 echo " ${file1} ONLINE 0 0 0"
[all …]
H A Doption-f_size_mismatch.t53 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1}
64 echo " ${file1} ONLINE 0 0 0"
71 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1}
82 echo " ${file1} ONLINE 0 0 0"
134 expect_ok ${ZPOOL} create ${name0} raidz1 ${file0} ${file1} ${file2}
145 echo " ${file1} ONLINE 0 0 0"
153 expect_ok ${ZPOOL} create ${name0} raidz1 ${file0} ${file1} ${file2}
164 echo " ${file1} ONLINE 0 0 0"
221 expect_ok ${ZPOOL} create ${name0} raidz2 ${file0} ${file1} ${file2} ${file3}
232 echo " ${file1} ONLINE 0 0 0"
[all …]
/freebsd/tools/test/stress2/testcases/rename/
H A Drename.c93 char file1[128]; in test_rename() local
99 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
100 if ((tfd = open(file1, O_RDONLY|O_CREAT, 0660)) == -1) in test_rename()
101 err(1, "openat(%s), %s:%d", file1, __FILE__, __LINE__); in test_rename()
106 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
108 if (rename(file1, file2) == -1) in test_rename()
109 err(1, "rename(%s, %s). %s:%d", file1, file2, in test_rename()
113 sprintf(file1,"p%05d.%05d", pid, i); in test_rename()
115 if (rename(file2, file1) == -1) in test_rename()
116 err(1, "rename(%s, %s). %s:%d", file2, file1, in test_rename()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_hole_birth.ksh59 log_must cmp_xxh128 /$sendfs/file1 /$recvfs/file1
71 log_must truncate -s 1G /$sendfs/file1
72 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=4k count=11264 seek=1152
75 log_must truncate -s 4M /$sendfs/file1
76 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=4k count=152 seek=384 \
78 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=4k count=10 seek=1408 \
89 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=128k count=1 seek=1
92 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=128k count=1
93 log_must dd if=/dev/urandom of=/$sendfs/file1 bs=128k count=1 seek=3
103 log_must truncate -s 300M /$sendfs/file1
[all …]
/freebsd/tools/regression/zfs/zpool/create/
H A Dfiles.t29 expect_ok ${ZPOOL} create ${name0} ${file0} ${file1} ${file2} ${file3} ${file4}
40 echo " ${file1} ONLINE 0 0 0"
51 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1}
63 echo " ${file1} ONLINE 0 0 0"
71 expect_ok ${ZPOOL} create ${name0} raidz1 ${file0} ${file1} ${file2}
83 echo " ${file1} ONLINE 0 0 0"
92 expect_ok ${ZPOOL} create ${name0} raidz2 ${file0} ${file1} ${file2} ${file3}
104 echo " ${file1} ONLINE 0 0 0"
114 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1} spare ${file2} ${file3}
126 echo " ${file1} ONLINE 0 0 0"
[all …]
H A Doption-f_size_mismatch.t20 expect_ok ${ZPOOL} create ${name0} ${file0} ${file1}
28 expect_ok ${ZPOOL} create ${name0} mirror ${file1} ${file2} mirror ${file0} ${file5}
36 expect_ok ${ZPOOL} create ${name0} raidz1 ${file1} ${file2} ${file3} raidz1 ${file0} ${file5} ${fil…
44 expect_ok ${ZPOOL} create ${name0} raidz2 ${file1} ${file2} ${file3} ${file4} raidz2 ${file0} ${fil…
72 expect_fl ${ZPOOL} create ${name0} mirror ${file0} ${file1}
76 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${file0} ${file1}
88 echo " ${file1} ONLINE 0 0 0"
121 expect_fl ${ZPOOL} create ${name0} raidz1 ${file0} ${file1} ${file2}
125 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${file0} ${file1} ${file2}
137 echo " ${file1} ONLINE 0 0 0"
[all …]
/freebsd/usr.bin/cmp/
H A Dcmp.c102 const char *file1, *file2; in main() local
164 if (strcmp(file1 = argv[0], "-") == 0) { in main()
167 file1 = "stdin"; in main()
168 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main()
170 err(ERR_EXIT, "%s", file1); in main()
203 ret = c_link(file1, skip1, file2, skip2, limit); in main()
211 errx(ERR_EXIT, "%s: Not a symbolic link", file1); in main()
222 err(ERR_EXIT, "%s", file1); in main()
244 ret = c_special(fd1, file1, skip1, fd2, file2, skip2, limit); in main()
249 file1, file2); in main()
[all …]
H A Dspecial.c43 c_special(int fd1, const char *file1, off_t skip1, in c_special() argument
52 err(ERR_EXIT, "caph_limit_stream(%s)", file1); in c_special()
59 err(ERR_EXIT, "%s", file1); in c_special()
77 file1, file2, (size_t)byte, (size_t)line); in c_special()
100 diffmsg(file1, file2, byte, line, ch1, ch2); in c_special()
109 err(ERR_EXIT, "%s", file1); in c_special()
114 eofmsg(file1); in c_special()
H A Dregular.c54 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, in c_regular() argument
66 eofmsg(file1); in c_regular()
89 return (c_special(fd1, file1, skip1, fd2, file2, skip2, limit)); in c_regular()
94 return (c_special(fd1, file1, skip1, fd2, file2, skip2, limit)); in c_regular()
98 err(1, "unable to limit rights for %s", file1); in c_regular()
120 file1, file2, (size_t)byte, (size_t)line); in c_regular()
137 diffmsg(file1, file2, byte, line, ch, *p2); in c_regular()
147 err(ERR_EXIT, "remmap %s", file1); in c_regular()
167 eofmsg(len1 > len2 ? file2 : file1); in c_regular()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/
H A Dblock_cloning_copyfilerange_partial.ksh36 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=128K count=4
39 log_must dd if=/$TESTPOOL/file1 of=/$TESTPOOL/file2 bs=128K count=4
42 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
44 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
47 log_must clonefile -f /$TESTPOOL/file1 /$TESTPOOL/file2 131072 131072 262144
50 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
52 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
H A Dblock_cloning_fideduperange.ksh37 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=128K count=4
38 log_must dd if=/$TESTPOOL/file1 of=/$TESTPOOL/file2 bs=128K count=4
42 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
43 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
47 log_must clonefile -d /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 524288
50 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
51 blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
H A Dblock_cloning_ficlonerange_partial.ksh36 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=128K count=4
39 log_must dd if=/$TESTPOOL/file1 of=/$TESTPOOL/file2 bs=128K count=4
42 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
44 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
47 log_must clonefile -r /$TESTPOOL/file1 /$TESTPOOL/file2 131072 131072 262144
50 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
52 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
H A Dblock_cloning_copyfilerange_clone_partial.ksh41 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=128K count=4
44 log_must dd if=/$TESTPOOL/file1 of=/$TESTPOOL/file2 bs=128K count=4
47 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
49 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
52 log_must clonefile -F /$TESTPOOL/file1 /$TESTPOOL/file2 131072 131072 262144
55 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
57 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
H A Dblock_cloning_fideduperange_sparse.ksh40 log_must file_write -o create -f /$TESTPOOL/file1 -b 1000 -c 1 -d 0
42 log_must truncate -s 65536 /$TESTPOOL/file1
46 typeset blksz=$(stat_blksz /$TESTPOOL/file1)
50 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
51 log_must clonefile -d /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 $blksz
53 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
61 log_mustnot clonefile -d /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 $blksz
H A Dblock_cloning_fideduperange_tail.ksh41 log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=128K count=2
42 log_must dd if=/$TESTPOOL/file1 of=/$TESTPOOL/file2 bs=128K count=2
52 log_must clonefile -d /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 135168
55 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
59 log_must cmp -n 135168 /$TESTPOOL/file1 /$TESTPOOL/file2
60 log_mustnot cmp -s /$TESTPOOL/file1 /$TESTPOOL/file2
H A Dblock_cloning_fideduperange_compress.ksh42 log_must file_write -o create -f /$TESTPOOL/file1 -b 131072 -c 4 -d 1
49 typeset b1=$(stat_blocks /$TESTPOOL/file1)
54 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
58 log_must clonefile -d /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 524288
61 log_must have_same_content /$TESTPOOL/file1 /$TESTPOOL/file2
62 typeset blocks=$(get_same_blocks $TESTPOOL file1 $TESTPOOL file2)
/freebsd/share/examples/tests/tests/atf/
H A Dcp_test.sh65 cp $(atf_get_srcdir)/file1 .
75 atf_check -s exit:0 -o empty -e empty cp file1 file2
77 verify_copy file1 file2
106 cp $(atf_get_srcdir)/file1 .
109 atf_check cp -f file1 file2
110 verify_copy file1 file2
/freebsd/usr.bin/head/tests/
H A Dhead_test.sh127 jot 11 1 11 > file1
131 head -q file1 file2 > outfile
141 jot -b test 10 > file1
143 cat file1 >> expectfile
144 head -v file1 > outfile
153 jot -b aaaaaaa 129 > file1
155 head -c 1k file1 > outfile
157 jot 1025 1 1025 > file1
159 head -n 1k file1 > outfile

12345678