Home
last modified time | relevance | path

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

1234

/src/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
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/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.ksh61 typeset -i fsize=0
87 (( fsize = offset ))
88 log_must mkfile $fsize $single_blk_file
89 (( fsize = blksize + offset ))
90 log_must mkfile $fsize $multi_blk_file
/src/tests/sys/fs/fusefs/
H A Dlseek.cc60 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
64 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
93 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
97 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
127 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
135 out.body.entry.attr.size = fsize; in TEST_F()
162 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
165 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
196 off_t fsize = 1 << 30; /* 1 GiB */ in TEST_F() local
199 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
[all …]
H A Dfallocate.cc180 off_t fsize = 1 << 20; in TEST_F() local
185 uint64_t off1 = fsize; in TEST_F()
187 off_t off2 = fsize / 2; in TEST_F()
191 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
225 uint64_t fsize = 1 << 20; in TEST_F() local
228 uint64_t off1 = fsize / 2; in TEST_F()
231 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1); in TEST_F()
241 expect_fallocate(ino, fsize, len, 0, 0); in TEST_F()
260 EXPECT_EQ(0, posix_fallocate(fd, fsize, len)); in TEST_F()
270 uint64_t fsize = 2000; in TEST_F() local
[all …]
H A Ddefault_permissions.cc513 off_t fsize = 16; in TEST_F() local
520 FuseTest::expect_lookup(RELPATH_IN, ino_in, S_IFREG | oldmode, fsize, 1, in TEST_F()
523 FuseTest::expect_lookup(RELPATH_OUT, ino_out, S_IFREG | oldmode, fsize, in TEST_F()
527 expect_chmod(ino_out, newmode, fsize); in TEST_F()
557 off_t fsize = 16; in TEST_F() local
564 FuseTest::expect_lookup(RELPATH_IN, ino_in, S_IFREG | oldmode, fsize, 1, in TEST_F()
567 FuseTest::expect_lookup(RELPATH_OUT, ino_out, S_IFREG | oldmode, fsize, in TEST_F()
571 expect_chmod(ino_out, newmode, fsize); in TEST_F()
848 off_t fsize = 16; in TEST_F() local
854 FuseTest::expect_lookup(RELPATH, ino, S_IFREG | oldmode, fsize, in TEST_F()
[all …]
/src/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;
/src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dxattrtest.c357 size_t fsize; in create_files() local
359 fsize = PATH_MAX; in create_files()
360 file = malloc(fsize); in create_files()
371 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in create_files()
448 size_t fsize; in setxattrs() local
458 fsize = PATH_MAX; in setxattrs()
459 file = malloc(fsize); in setxattrs()
470 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) { in setxattrs()
525 size_t fsize; in getxattrs() local
546 fsize = PATH_MAX; in getxattrs()
[all …]
H A Dtruncate_test.c28 static long fsize = FSIZE; variable
56 if (ftruncate(fd, fsize) < 0) { in main()
65 if (truncate(filename, fsize) < 0) { in main()
83 fsize = atoi(optarg); in parse_options()
/src/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()
/src/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_trunc.c53 static long fsize = FSIZE; variable
108 count = fsize / bsize; in parse_options()
121 fsize = atoi(optarg); in parse_options()
184 roffset = random() % fsize; in do_write()
231 roffset = random() % fsize; in do_trunc()
/src/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()
/src/sbin/newfs/
H A Dnewfs.c90 int fsize = 0; /* fragment size */ variable
224 rval = expand_number_int(optarg, &fsize); in main()
225 if (rval < 0 || fsize <= 0) in main()
373 if (fsize == 0) in main()
374 fsize = pp->p_fsize; in main()
382 if (fsize <= 0) in main()
383 fsize = MAX(DFL_FRAGSIZE, sectorsize); in main()
385 bsize = MIN(DFL_BLKSIZE, 8 * fsize); in main()
/src/contrib/file/src/
H A Dreadelf.c352 int num, size_t size, off_t fsize, int *flags, uint16_t *notecount) in dophn_core() argument
390 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in dophn_core()
416 ph_num, fsize); in dophn_core()
1005 off_t off, int num, off_t fsize, uint64_t virtaddr) in get_offset_from_virtaddr() argument
1026 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) { in get_offset_from_virtaddr()
1040 off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen) in get_string_on_virtaddr() argument
1049 fsize, virtaddr); in get_string_on_virtaddr()
1077 int fd, off_t ph_off, int ph_num, off_t fsize) in do_auxv_note() argument
1159 ph_off, ph_num, fsize, xauxv_val, buf, sizeof(buf)); in do_auxv_note()
1217 int fd, off_t ph_off, int ph_num, off_t fsize) in donote() argument
[all …]
H A Delfclass.h46 fsize, &flags, &notecount) == -1)
61 fsize, shnum, &flags, &notecount) == -1)
71 fsize, elf_getu16(swap, elfhdr.e_machine),
/src/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
/src/sys/fs/udf/
H A Dudf_vnops.c189 uint64_t fsize; in udf_open() local
191 fsize = le64toh(np->fentry->inf_len); in udf_open()
192 if (fsize > OFF_MAX) in udf_open()
194 vnode_create_vobject(ap->a_vp, fsize, ap->a_td); in udf_open()
455 off_t diff, fsize; in udf_read() local
468 fsize = le32toh(fentry->l_ad); in udf_read()
471 diff = fsize - uio->uio_offset; in udf_read()
485 fsize = len; in udf_read()
492 diff = fsize - uio->uio_offset; in udf_read()
500 if (lblktosize(udfmp, rablock) < fsize) { in udf_read()
[all …]
/src/crypto/openssl/crypto/
H A Dgetenv.c28 int rsize, fsize; in ossl_safe_getenv() local
48 fsize = MultiByteToWideChar(curacp, dwFlags, name, -1, namew, rsize); in ossl_safe_getenv()
50 if (fsize > 0) in ossl_safe_getenv()
/src/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()
/src/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()
/src/contrib/less/
H A Dch.c61 POSITION fsize; member
70 #define ch_fsize thisfile->fsize
626 POSITION fsize; in ch_resize() local
630 fsize = filesize(ch_file); in ch_resize()
631 if (fsize != NULL_POSITION) in ch_resize()
632 ch_fsize = fsize; in ch_resize()
869 thisfile->fsize = NULL_POSITION; in ch_init()
965 fs->fsize, fs->block, fs->offset);

1234