Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 87) sorted by relevance

1234

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/compression/
H A Dcompress_004_pos.ksh90 typeset -i fsize=0
111 (( fsize = $RANDOM ))
112 if (( fsize > blksize )); then
113 (( fsize = fsize % blksize ))
115 if (( (fsize % 2) == 0 )); then
117 (( fsize = fsize + 1 ))
119 create_free_testing $fsize $single_blk_file
132 (( fsize = blknum * blksize ))
133 create_free_testing $fsize $multi_blk_file
H A Dcompress_003_pos.ksh60 typeset -i fsize=0
86 (( fsize = offset ))
87 log_must mkfile $fsize $single_blk_file
88 (( fsize = blksize + offset ))
89 log_must mkfile $fsize $multi_blk_file
/freebsd/tests/sys/cddl/zfs/tests/compression/
H A Dcompress_004_pos.ksh91 typeset -i fsize=0
112 (( fsize = $RANDOM ))
113 if (( fsize > blksize )); then
114 (( fsize = fsize % blksize ))
116 if (( (fsize % 2) == 0 )); then
118 (( fsize = fsize + 1 ))
120 create_free_testing $fsize $single_blk_file
133 (( fsize = blknum * blksize ))
134 create_free_testing $fsize $multi_blk_file
H A Dcompress_003_pos.ksh68 typeset -i fsize=0
94 (( fsize = offset ))
95 log_must $MKFILE $fsize $single_blk_file
96 (( fsize = blksize + offset ))
97 log_must $MKFILE $fsize $multi_blk_file
/freebsd/tests/sys/fs/fusefs/
H A Dlseek.cc60 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
92 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
124 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
154 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
188 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
212 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
248 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
284 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
320 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
357 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
[all …]
H A Dfallocate.cc181 off_t fsize = 1 << 20; in TEST_F() local
186 uint64_t off1 = fsize; in TEST_F()
188 off_t off2 = fsize / 2; in TEST_F()
271 uint64_t fsize = 2000; in TEST_F() local
320 uint64_t fsize = 2000; in TEST_F() local
361 uint64_t fsize = 1000; in TEST_F() local
389 uint64_t fsize = 1000; in TEST_F() local
421 uint64_t fsize = 2000; in TEST_F() local
467 expect_read(ino, 0, fsize, fsize, zbuf); in TEST_P()
468 expect_read(ino, 0, fsize, fsize, CONTENTS); in TEST_P()
[all …]
H A Ddefault_permissions.cc513 off_t fsize = 16; in TEST_F() local
557 off_t fsize = 16; in TEST_F() local
848 off_t fsize = 16; in TEST_F() local
859 expect_chmod(ino, newmode, fsize); in TEST_F()
882 off_t fsize = 16; in TEST_F() local
893 expect_chmod(ino, newmode, fsize); in TEST_F()
988 off_t fsize = 16; in TEST_F() local
998 expect_chmod(ino, newmode, fsize); in TEST_F()
1018 off_t fsize = 16; in TEST_F() local
1254 ssize_t fsize = sizeof(CONTENTS); in TEST_F() local
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_open.c129 size_t fsize; in _libelf_open_object() local
141 fsize = (size_t) sb.st_size; in _libelf_open_object()
179 if (fsize == 0) { in _libelf_open_object()
194 m = mmap(NULL, fsize, PROT_READ, MAP_PRIVATE, fd, (off_t) 0); in _libelf_open_object()
207 if ((m = malloc(fsize)) == NULL) { in _libelf_open_object()
212 if (read(fd, m, fsize) != (ssize_t) fsize) { in _libelf_open_object()
220 } else if ((m = _libelf_read_special_file(fd, &fsize)) != NULL) in _libelf_open_object()
225 if ((e = _libelf_memory(m, fsize, reporterror)) == NULL) { in _libelf_open_object()
232 (void) munmap(m, fsize); in _libelf_open_object()
H A Dlibelf_fsize.m4133 struct fsize {
138 static struct fsize fsize[ELF_T_NUM] = {
153 sz = ec == ELFCLASS64 ? fsize[t].fsz64 : fsize[t].fsz32;
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dxattrtest.c356 size_t fsize; in create_files() local
358 fsize = PATH_MAX; in create_files()
370 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in create_files()
447 size_t fsize; in setxattrs() local
457 fsize = PATH_MAX; in setxattrs()
469 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in setxattrs()
524 size_t fsize; in getxattrs() local
545 fsize = PATH_MAX; in getxattrs()
558 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in getxattrs()
623 size_t fsize; in unlink_files() local
[all …]
H A Dtruncate_test.c27 static long fsize = FSIZE; variable
55 if (ftruncate(fd, fsize) < 0) { in main()
64 if (truncate(filename, fsize) < 0) { in main()
82 fsize = atoi(optarg); in parse_options()
/freebsd/tests/sys/cddl/zfs/bin/
H A Dfile_trunc.c48 static long fsize = FSIZE; variable
105 count = fsize / bsize; in parse_options()
118 fsize = atoi(optarg); in parse_options()
181 roffset = random() % fsize; in do_write()
227 roffset = random() % fsize; in do_trunc()
H A Dmkfile.c167 unsigned long long fsize; in main() local
194 if ((fsize = getsize(*argv)) == 0) { in main()
202 if (create_file(*argv, fsize) == -1) { in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_trunc.c52 static long fsize = FSIZE; variable
107 count = fsize / bsize; in parse_options()
120 fsize = atoi(optarg); in parse_options()
183 roffset = random() % fsize; in do_write()
230 roffset = random() % fsize; in do_trunc()
/freebsd/usr.sbin/bsdinstall/distfetch/
H A Ddistfetch.c122 off_t fsize; in fetch_files() local
184 fsize = 0; in fetch_files()
203 fsize += chunk; in fetch_files()
210 (fsize * 100) / ustat.size : 0; in fetch_files()
216 perc = (fsize * 100) / ustat.size; in fetch_files()
228 if (ustat.size > 0 && fsize < ustat.size) { in fetch_files()
/freebsd/contrib/file/src/
H A Dreadelf.c386 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in dophn_core()
412 ph_num, fsize); in dophn_core()
967 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in get_offset_from_virtaddr()
990 fsize, virtaddr); in get_string_on_virtaddr()
1252 fd, ph_off, ph_num, fsize)) in donote()
1388 if (fsize != SIZE_UNKNOWN && fsize < name_off) { in doshn()
1430 if (fsize != SIZE_UNKNOWN && xsh_offset > fsize) { in doshn()
1718 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in dophn_exec()
1827 off_t fsize; in file_tryelf() local
1873 fsize = stp->st_size; in file_tryelf()
[all …]
H A Delfclass.h46 fsize, &flags, &notecount) == -1)
61 fsize, shnum, &flags, &notecount) == -1)
71 fsize, elf_getu16(swap, elfhdr.e_machine),
/freebsd/sbin/newfs/
H A Dnewfs.c90 int fsize = 0; /* fragment size */ variable
222 rval = expand_number_int(optarg, &fsize); in main()
223 if (rval < 0 || fsize <= 0) in main()
368 if (fsize == 0) in main()
369 fsize = pp->p_fsize; in main()
377 if (fsize <= 0) in main()
378 fsize = MAX(DFL_FRAGSIZE, sectorsize); in main()
380 bsize = MIN(DFL_BLKSIZE, 8 * fsize); in main()
/freebsd/tests/sys/cddl/zfs/tests/hotplug/
H A Dhotplug.kshlib326 typeset -i fsize
335 fsize=$($LS -ld $FILE_EVENT_ID | $AWK '{print $5}')
339 if (( fsize != 0 )); then
344 if (( fsize == 0 )); then
/freebsd/crypto/openssl/crypto/
H A Dgetenv.c28 int rsize, fsize; in ossl_safe_getenv() local
51 fsize = MultiByteToWideChar(curacp, dwFlags, name, -1, namew, rsize); in ossl_safe_getenv()
53 if (fsize > 0) in ossl_safe_getenv()
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_section_file.c112 long begin, end, fsize; in pt_sec_file_map() local
143 fsize = ftell(file); in pt_sec_file_map()
144 if (fsize < 0) in pt_sec_file_map()
147 if (fsize < end) in pt_sec_file_map()
H A Dpt_section.c44 uint64_t fsize; in pt_mk_section() local
65 errcode = pt_section_mk_status(&status, &fsize, fname); in pt_mk_section()
70 if (fsize <= offset) { in pt_mk_section()
76 fsize -= offset; in pt_mk_section()
77 if (fsize < size) in pt_mk_section()
78 size = fsize; in pt_mk_section()
/freebsd/sys/fs/udf/
H A Dudf_vnops.c187 off_t fsize; in udf_open() local
189 fsize = le64toh(np->fentry->inf_len); in udf_open()
449 off_t diff, fsize; in udf_read() local
462 fsize = le32toh(fentry->l_ad); in udf_read()
465 diff = fsize - uio->uio_offset; in udf_read()
474 fsize = le64toh(node->fentry->inf_len); in udf_read()
481 diff = fsize - uio->uio_offset; in udf_read()
640 ds->fsize = fsize; in udf_opendir()
652 if (ds->offset + ds->off >= ds->fsize) { in udf_getfid()
1127 int fsize, lkflags, ltype, numdirpasses; in udf_lookup() local
[all …]
/freebsd/stand/common/
H A Dinstall.c106 ssize_t fsize; in read_metatags() local
109 fsize = read(fd, buf, sizeof(buf)); in read_metatags()
110 if (fsize == -1) in read_metatags()
120 if (fsize == sizeof(buf)) in read_metatags()
123 buf[fsize] = '\0'; in read_metatags()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_config.c89 uint64_t fsize; in spa_config_load() local
118 fsize = zfa.zfa_size; in spa_config_load()
119 buf = kmem_alloc(fsize, KM_SLEEP); in spa_config_load()
124 if (zfs_file_read(fp, buf, fsize, NULL) < 0) in spa_config_load()
130 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0) in spa_config_load()
155 kmem_free(buf, fsize); in spa_config_load()

1234