Searched refs:fsize (Results 1 - 25 of 77) sorted by relevance

1234

/freebsd-13-stable/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
116 #make sure fsize is non-power-of-2
117 (( fsize = fsize + 1 ))
119 create_free_testing $fsize
[all...]
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-13-stable/tests/sys/cddl/zfs/tests/compression/
H A Dcompress_004_pos.ksh96 typeset -i fsize=0
117 (( fsize = $RANDOM ))
118 if (( fsize > blksize )); then
119 (( fsize = fsize % blksize ))
121 if (( (fsize % 2) == 0 )); then
122 #make sure fsize is non-power-of-2
123 (( fsize = fsize + 1 ))
125 create_free_testing $fsize
[all...]
H A Dcompress_003_pos.ksh73 typeset -i fsize=0
99 (( fsize = offset ))
100 log_must $MKFILE $fsize $single_blk_file
101 (( fsize = blksize + offset ))
102 log_must $MKFILE $fsize $multi_blk_file
/freebsd-13-stable/tests/sys/fs/fusefs/
H A Dlseek.cc62 off_t fsize = 1 << 30; /* 1 GiB */ local
66 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1);
92 off_t fsize = 1 << 30; /* 1 GiB */ local
96 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1);
122 off_t fsize = 1 << 30; /* 1 GiB */ local
125 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1);
150 off_t fsize = 1 << 30; /* 1 GiB */ local
155 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize, 1);
182 off_t fsize = 1 << 30; /* 1 GiB */ local
185 expect_lookup(RELPATH, ino, S_IFREG | 0644, fsize,
204 off_t fsize = 1 << 30; /* 1 GiB */ local
238 off_t fsize = 1 << 30; /* 1 GiB */ local
272 off_t fsize = 1 << 30; /* 1 GiB */ local
306 off_t fsize = 1 << 30; /* 1 GiB */ local
341 off_t fsize = 1 << 30; /* 1 GiB */ local
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/truncate/
H A Dtruncate_test.c27 static long fsize = FSIZE; variable
55 if (ftruncate(fd, fsize) < 0) {
64 if (truncate(filename, fsize) < 0) {
82 fsize = atoi(optarg);
/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Dlibelf_open.c129 size_t fsize; local
141 fsize = (size_t) sb.st_size;
179 if (fsize == 0) {
194 m = mmap(NULL, fsize, PROT_READ, MAP_PRIVATE, fd, (off_t) 0);
207 if ((m = malloc(fsize)) == NULL) {
212 if (read(fd, m, fsize) != (ssize_t) fsize) {
220 } else if ((m = _libelf_read_special_file(fd, &fsize)) != NULL)
225 if ((e = _libelf_memory(m, fsize, reporterror)) == NULL) {
232 (void) munmap(m, fsize);
[all...]
/freebsd-13-stable/usr.sbin/makefs/
H A Dffs.h52 int fsize; /* fragment size */ member in struct:__anon16572
/freebsd-13-stable/contrib/file/src/
H A Delfclass.h46 fsize, &flags, &notecount) == -1)
61 fsize, shnum, &flags, &notecount) == -1)
71 fsize, elf_getu16(swap, elfhdr.e_machine),
H A Dreadelf.c350 int num, size_t size, off_t fsize, int *flags, uint16_t *notecount)
385 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) {
408 ph_num, fsize);
932 off_t off, int num, off_t fsize, uint64_t virtaddr)
949 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) {
963 off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen)
972 fsize, virtaddr);
999 int fd, off_t ph_off, int ph_num, off_t fsize)
349 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int *flags, uint16_t *notecount) argument
931 get_offset_from_virtaddr(struct magic_set *ms, int swap, int clazz, int fd, off_t off, int num, off_t fsize, uint64_t virtaddr) argument
961 get_string_on_virtaddr(struct magic_set *ms, int swap, int clazz, int fd, off_t ph_off, int ph_num, off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen) argument
994 do_auxv_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, int swap, uint32_t namesz __attribute__((__unused__)), uint32_t descsz __attribute__((__unused__)), size_t noff __attribute__((__unused__)), size_t doff, int *flags, size_t size __attribute__((__unused__)), int clazz, int fd, off_t ph_off, int ph_num, off_t fsize) argument
1133 donote(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap, size_t align, int *flags, uint16_t *notecount, int fd, off_t ph_off, int ph_num, off_t fsize) argument
1328 doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int mach, int strtab, int *flags, uint16_t *notecount) argument
1616 dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int sh_num, int *flags, uint16_t *notecount) argument
1773 off_t fsize; local
[all...]
/freebsd-13-stable/usr.sbin/ndiscvt/
H A Dndiscvt.c168 bincvt(char *sysfile, char *outfile, void *img, int fsize) argument
181 if (fwrite(img, fsize, 1, binfp) != 1)
283 int n, fsize, cnt; local
327 fsize = ftell (fp);
329 img = calloc(fsize, 1);
330 n = fread (img, fsize, 1, fp);
336 if (insert_padding(&img, &fsize)) {
351 inffile == NULL ? "<notused>" : inffile, sysfile, fsize);
395 bincvt(sysfile, outfile, img, fsize);
405 fprintf(outfp, "__asm__(\".size drv_data, %d\");\n", fsize);
[all...]
/freebsd-13-stable/sbin/newfs/
H A Dnewfs.h96 extern int fsize; /* fragment size */
H A Dnewfs.c102 int fsize = 0; /* fragment size */ variable
232 rval = expand_number_int(optarg, &fsize);
233 if (rval < 0 || fsize <= 0)
378 if (fsize == 0)
379 fsize = pp->p_fsize;
387 if (fsize <= 0)
388 fsize = MAX(DFL_FRAGSIZE, sectorsize);
390 bsize = MIN(DFL_BLKSIZE, 8 * fsize);
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c52 static long fsize = FSIZE; variable
107 count = fsize / bsize;
120 fsize = atoi(optarg);
183 roffset = random() % fsize;
230 roffset = random() % fsize;
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/
H A Dxattrtest.c358 size_t fsize; local
360 fsize = PATH_MAX;
361 file = malloc(fsize);
372 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) {
449 size_t fsize; local
459 fsize = PATH_MAX;
460 file = malloc(fsize);
471 if (snprintf(file, fsize, "%s/file-%d", path, i) >= fsize) {
526 size_t fsize; local
625 size_t fsize; local
[all...]
/freebsd-13-stable/usr.sbin/bsdinstall/distfetch/
H A Ddistfetch.c114 off_t fsize; local
163 fsize = 0;
182 fsize += chunk;
191 (fsize*100)/ustat.size);
202 if (ustat.size > 0 && fsize < ustat.size) {
/freebsd-13-stable/tests/sys/cddl/zfs/bin/
H A Dfile_trunc.c50 static long fsize = FSIZE; variable
107 count = fsize / bsize;
120 fsize = atoi(optarg);
183 roffset = random() % fsize;
229 roffset = random() % fsize;
H A Dmkfile.c172 unsigned long long fsize; local
199 if ((fsize = getsize(*argv)) == 0) {
207 if (create_file(*argv, fsize) == -1) {
/freebsd-13-stable/contrib/processor-trace/libipt/src/
H A Dpt_section_file.c112 long begin, end, fsize; local
143 fsize = ftell(file);
144 if (fsize < 0)
147 if (fsize < end)
/freebsd-13-stable/tests/sys/cddl/zfs/tests/hotplug/
H A Dhotplug.kshlib331 typeset -i fsize
340 fsize=$($LS -ld $FILE_EVENT_ID | $AWK '{print $5}')
344 if (( fsize != 0 )); then
349 if (( fsize == 0 )); then
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/
H A Dzfs_copies.kshlib80 typeset -i fsize=${FILESIZE%[m|M]}
83 (( cfactor = used / fsize ))
H A Dzfs_copies_002_pos.ksh91 fsize=${FILESIZE%[m|M]}
/freebsd-13-stable/stand/common/
H A Dinstall.c109 ssize_t fsize; local
112 fsize = read(fd, buf, sizeof(buf));
113 if (fsize == -1)
123 if (fsize == sizeof(buf))
126 buf[fsize] = '\0';
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/
H A Dzfs_copies.kshlib63 typeset -i fsize=${FILESIZE%[m|M]}
66 ((cfactor = used / fsize))
/freebsd-13-stable/contrib/lua/src/
H A Dldo.h48 #define checkstackGC(L,fsize) \
49 luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)

Completed in 293 milliseconds

1234