/freebsd-current/usr.sbin/fifolog/fifolog_create/ |
H A D | fifolog_create.c | 54 int64_t recsize; local 58 recsize = 0; 64 if (expand_number(optarg, &recsize)) 84 if (size != 0 && reccnt != 0 && recsize != 0) { /* N N N */ 85 if (size != reccnt * recsize) 87 } else if (size != 0 && reccnt != 0 && recsize == 0) { /* N N Z */ 91 recsize = size / reccnt; 92 } else if (size != 0 && reccnt == 0 && recsize != 0) { /* N Z N */ 93 if (size % recsize) 95 } else if (size != 0 && reccnt == 0 && recsize [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_embedded.ksh | 25 # 1. Create recsize sized files with embedded blocks from size 512b to 16k. 45 typeset recsize send_obj recv_obj 55 for recsize in 512 1024 2048 4096 8192 16384; do 56 send_obj=$(get_objnum $send_mnt/$recsize) 57 recv_obj=$(get_objnum $recv_mnt/$recsize) 59 log_must diff $send_mnt/$recsize $recv_mnt/$recsize 70 for recsize in 512 2048 8192; do 71 log_must dd if=/dev/urandom of=$clone_mnt/$recsize bs=$recsize coun [all...] |
H A D | redacted_mixed_recsize.ksh | 25 # 1. Create two dataset one with recsize 512, and one 1m and create a 2m file. 26 # 2. For each dataset, create clones of both 512 and 1m recsize and modify 29 # into both a dataset inheriting a 512 recsize and a 1m one. 40 log_must zfs create -o recsize=512 $POOL/512 44 log_must zfs clone -o recsize=1m $POOL/512@snap $POOL/1mclone 49 log_must zfs create -o recsize=1m $POOL/1m 53 log_must zfs clone -o recsize=512 $POOL/1m@snap $POOL/512clone 59 log_must zfs create -o recsize=512 $POOL2/512 60 log_must zfs create -o recsize=1m $POOL2/1m
|
H A D | redacted.kshlib | 58 typeset bs=$(get_prop recsize $sendfs) 67 typeset recsize 69 for recsize in 512 1024 2048 4096 8192 16384; do 71 log_must mkholes -d $((recsize - 8)):8 $mntpnt/$recsize 73 log_must dd if=/dev/urandom of=$mntpnt/$recsize bs=8 \ 74 count=1 seek=$(((recsize / 8) - 1)) 120 typeset bs=$(get_prop recsize $sendfs)
|
H A D | redacted_panic.ksh | 41 log_must zfs create -o recsize=8k $sendfs
|
/freebsd-current/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 44 fifolog_create(const char *fn, off_t size, ssize_t recsize) argument 64 if (recsize == 0) 65 recsize = 512; 85 if (i == 0 && (u > recsize || (recsize % u) != 0)) 86 recsize = u; 97 size = recsize * (off_t)(24*60*60); 102 buf = calloc(1, recsize); 107 be32enc(buf + FIFOLOG_OFF_BS, recsize); 108 if (recsize ! [all...] |
H A D | fifolog_int.c | 67 i = ioctl(f->fd, DIOCGSECTORSIZE, &f->recsize); 76 f->recsize = 512; 78 } else if (f->recsize < 64) { 87 f->recbuf = malloc(f->recsize); 92 i = pread(f->fd, f->recbuf, f->recsize, 0); 93 if (i < 0 || i < (int)f->recsize) 107 f->recsize = u; 110 if (u != f->recsize) { 113 f->recsize = u; 114 f->recbuf = malloc(f->recsize); [all...] |
H A D | libfifolog_int.h | 33 ssize_t recsize; member in struct:fifolog_file
|
H A D | libfifolog.h | 32 const char *fifolog_create(const char *fn, off_t size, ssize_t recsize);
|
H A D | fifolog_write_poll.c | 157 f->obufsize = f->ff->recsize; 202 assert(l <= (long)f->ff->recsize); /* NB: l includes h */ 209 if (l < (long)f->ff->recsize && fl == Z_NO_FLUSH) 212 w = f->ff->recsize - l; 214 be32enc(f->obuf + f->ff->recsize - 4, w); 217 f->obuf[f->ff->recsize - 1] = (uint8_t)w; 223 i = pwrite(f->ff->fd, f->obuf, f->ff->recsize, 224 (f->recno + 1) * f->ff->recsize); 225 if (i != f->ff->recsize)
|
H A D | fifolog_reader.c | 70 fr->obuf = calloc(16, fr->ff->recsize); 73 fr->olen = fr->ff->recsize * 16; 202 fprintf(stderr, "Read from %jx\n", o * fr->ff->recsize); 269 zs->avail_in = fr->ff->recsize - 5; 272 zs->avail_in -= fr->ff->recbuf[fr->ff->recsize - 1]; 275 be32dec(fr->ff->recbuf + fr->ff->recsize - 4);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send-c_embedded_blocks.ksh | 37 typeset objs obj recsize 52 for recsize in "${recsize_prop_vals[@]}"; do 54 [[ $recsize -eq $((32 * 1024)) ]] && break 57 log_must truncate -s $recsize $dir/$recsize 58 log_must dd if=/dev/urandom of=$dir/$recsize \ 59 seek=$((recsize - 8)) bs=1 count=8 conv=notrunc 61 log_must mkholes -h 0:$((recsize - 8)) -d $((recsize - 8)):8 \ 62 $dir/$recsize [all...] |
H A D | send-cpL_varied_recsize.ksh | 22 # Verify compressed send works correctly with datasets of varying recsize. 27 # and that the recsize property and that of a received file is correct 33 # | recsize | flags | (disabled) | (disabled) | (enabled) | (enabled) | 64 # For a received stream, verify the recsize (prop and file) match expectations. 74 typeset read_recsize=$(get_prop recsize $recv_ds) 124 typeset recsize=$1 128 typeset send_ds=$TESTPOOL/$recsize 130 typeset recv_ds=$recv_pool/$recsize 148 [[ $recsize = $large && $flags =~ 'c' && ! $flags =~ 'L' ]] && \ 163 log_assert "Verify compressed send works with datasets of varying recsize [all...] |
/freebsd-current/sys/geom/label/ |
H A D | g_label_ntfs.c | 103 int recsize, j; local 120 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : 122 if (recsize <= 0 || recsize > maxphys || recsize % pp->sectorsize != 0) 126 recsize * NTFS_VOLUMEINO; 130 filerecp = g_read_data(cp, voloff, recsize, NULL); 138 recoff <= recsize - 2 * sizeof(uint32_t); 145 if (recsize - recoff < atr->reclen)
|
/freebsd-current/tools/test/gpioevents/ |
H A D | gpioevents.c | 217 ssize_t reccount, recsize, res; local 220 recsize = sizeof(struct gpio_event_detail); 222 recsize = sizeof(struct gpio_event_summary); 235 if ((res % recsize) != 0) { 238 getprogname(), res, file, recsize); 240 reccount = res / recsize; 382 size_t recsize; local 394 recsize = sizeof(struct gpio_event_detail); 396 recsize = sizeof(struct gpio_event_summary); 422 if ((res % recsize) ! [all...] |
/freebsd-current/usr.sbin/fstyp/ |
H A D | ntfs.c | 142 int recsize; local 155 recsize = (mftrecsz > 0) ? (mftrecsz * bf->bf_bps * bf->bf_spc) : (1 << -mftrecsz); 158 recsize * NTFS_VOLUMEINO; 160 filerecp = read_buf(fp, voloff, recsize);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_recsize.ksh | 23 # Verify that nopwrite works regardless of recsize property setting. 27 # 2. For each possible recsize, create a clone that inherits the compress and 51 log_must zfs set recsize=$rs $origin/clone
|
/freebsd-current/contrib/one-true-awk/ |
H A D | lib.c | 44 int recsize = RECSIZE; variable 242 found = fnematch(pfa, inf, &buf, &bufsize, recsize); 246 found = fnematch(pfa, inf, &buf, &bufsize, recsize); 265 recsize, &rr, "readrec 1")) 273 if (!adjbuf(&buf, &bufsize, 2+rr-buf, recsize, &rr, 279 if (!adjbuf(&buf, &bufsize, 1+rr-buf, recsize, &rr, "readrec 3")) 318 recsize, &rr, "readcsvrec 1")) 327 if (!adjbuf(&buf, &bufsize, 1+rr-buf, recsize, &rr, "readcsvrec 4")) 644 if (!adjbuf(&record, &recsize, 1+strlen(p)+r-record, recsize, [all...] |
H A D | run.c | 197 while (getrec(&record, &recsize, true) > 0) { 408 int bufsize = recsize; 448 n = getrec(&record, &recsize, true); 478 int bufsz = recsize; 496 if (!adjbuf(&buf, &bufsz, tlen + 1, recsize, 0, func)) { 1086 int fmtsz = recsize; 1108 adjbuf(&buf, &bufsize, MAXNUMSIZE+1+p-buf, recsize, &p, "format1"); 1121 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, &p, "format2"); 1123 if (!adjbuf(&fmt, &fmtsz, MAXNUMSIZE+1+t-fmt, recsize, &t, "format3")) 1145 adjbuf(&buf, &bufsize, fmtwd+1+p-buf, recsize, [all...] |
H A D | main.c | 218 recinit(recsize);
|
H A D | awk.h | 65 extern int recsize; /* size of current record, orig RECSIZE */
|
/freebsd-current/sys/dev/gpio/ |
H A D | gpioc.c | 717 size_t recsize; local 724 recsize = sizeof(struct gpio_event_summary); 726 recsize = sizeof(struct gpio_event_detail); 728 if (uio->uio_resid < recsize) 746 while (err == 0 && uio->uio_resid >= recsize && 765 err = uiomove(recbuf.data, recsize, uio); 1015 size_t recsize; local 1024 recsize = sizeof(struct gpio_event_summary); 1026 recsize = sizeof(struct gpio_event_detail); 1027 kn->kn_data = recsize * number_of_event [all...] |
/freebsd-current/sys/ufs/ufs/ |
H A D | ufs_quota.c | 1273 off_t base, recsize; local 1411 recsize = sizeof(struct dqblk64); 1414 recsize = sizeof(struct dqblk32); 1420 aiov.iov_len = recsize; 1421 auio.uio_resid = recsize; 1422 auio.uio_offset = base + id * recsize; 1428 if (auio.uio_resid == recsize && error == 0) { 1548 off_t base, recsize; local 1603 recsize = sizeof(struct dqblk64); 1607 recsize [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_log.c | 735 size_t recsize = sizeof (lr_setattr_t); local 747 recsize = sizeof (*lr) + ZIL_XVAT_SIZE(xvap->xva_mapsize); 750 recsize += fuidp->z_domain_str_sz; 752 itx = zil_itx_create(txtype, recsize); 796 size_t recsize = sizeof (lr_setsaxattr_t); local 804 recsize += (namelen + size); 805 itx = zil_itx_create(txtype, recsize);
|
/freebsd-current/sbin/fsck_ffs/ |
H A D | suj.c | 2282 int recsize; local 2308 for (rec = (void *)block; size; size -= recsize, 2309 rec = (struct jsegrec *)((uintptr_t)rec + recsize)) { 2310 recsize = real_dev_bsize; 2317 jblocks_advance(suj_jblocks, recsize); 2324 jblocks_advance(suj_jblocks, recsize); 2328 recsize = blocks * real_dev_bsize; 2329 if (recsize > size) { 2336 recsize <= fs->fs_bsize) 2340 "%d > %d\n", recsize, siz [all...] |