Searched refs:hole (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-current/tools/test/stress2/tools/
H A Dlsholes.c42 off_t data, hole, pos; local
60 fprintf(stderr, "Min hole size is %ld, file size is %jd.\n",
66 hole = lseek(fd, pos, SEEK_HOLE);
67 if (hole == -1 && errno != ENXIO)
73 if (hole >= 0 && data >= 0 && hole > data) {
74 siz = hole - data;
80 if (hole >= 0 && data >= 0 && hole < data) {
81 siz = data - hole;
[all...]
/freebsd-current/bin/cp/tests/
H A Dsparse.c25 off_t hole, end; local
29 (hole = lseek(fd, 0, SEEK_HOLE)) < 0 ||
33 if (end > hole) {
35 printf("%s: hole at %zu\n", filename, (size_t)hole);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/
H A Dbclone_crossfs_hole.ksh42 bclone_test hole $filesize false $TESTSRCDIR $TESTDSTDIR
H A Dbclone_samefs_hole.ksh41 bclone_test hole $filesize false $TESTSRCDIR $TESTSRCDIR
H A Dbclone_common.kshlib162 hole)
/freebsd-current/tools/test/stress2/misc/
H A Dseekhole.sh43 Min hole size is 32768, file size is 524288000.
45 hole #2 @ 32768, size=32768
47 hole #4 @ 98304, size=32768
49 hole #6 @ 163840, size=524091392
51 hole #8 @ 524288000, size=0
H A Dtmpfs24.sh43 Min hole size is 4096, file size is 524288000.
45 hole #2 @ 4096, size=4096
47 hole #4 @ 12288, size=4096
49 hole #6 @ 20480, size=524267520
50 <<Missing EOF hole>>
H A Dtruncate6.sh100 off_t hole, data, pos;
110 hole = lseek(fd, 0, SEEK_HOLE); // 0
115 if (hole != 0 && data != 131072) {
116 printf("--> hole = %jd, data = %jd, pos = %jd\n",
117 (intmax_t)hole, (intmax_t)data, (intmax_t)pos);
H A Dzfs12.sh30 # lseek(SEEK_HOLE): finds hole
100 off_t hole;
125 if ((hole = lseek(fd, 0, SEEK_HOLE)) == -1)
127 if (hole != SIZ)
128 printf("--> hole = %jd, file size=%jd\n",
129 (intmax_t)hole, (intmax_t)SIZ);
132 return (hole == SIZ ? 0 : 1);
/freebsd-current/sys/netinet/
H A Dtcp_sack.c467 struct sackhole *hole; local
475 hole = (struct sackhole *)uma_zalloc(V_sack_hole_zone, M_NOWAIT);
476 if (hole == NULL)
479 hole->start = start;
480 hole->end = end;
481 hole->rxmit = start;
486 return hole;
493 tcp_sackhole_free(struct tcpcb *tp, struct sackhole *hole) argument
496 uma_zfree(V_sack_hole_zone, hole);
506 * Insert new SACK hole int
512 struct sackhole *hole; local
536 tcp_sackhole_remove(struct tcpcb *tp, struct sackhole *hole) argument
1040 struct sackhole *hole = NULL; local
[all...]
/freebsd-current/sys/modules/netgraph/
H A DMakefile23 hole \
/freebsd-current/usr.bin/mkimg/
H A Dimage.c399 off_t cur, data, end, hole, pos, iof; local
430 hole = lseek(fd, cur, SEEK_HOLE);
431 if (hole == -1)
432 hole = end;
441 if (hole == end && data == end)
444 if (cur == hole && data > hole) {
445 hole = pos;
448 blk += (pos - hole) / secsz;
451 bytesize += pos - hole;
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/
H A Dslog_replay_volume.ksh131 if fallocate --punch-hole 2>&1 | grep -q "unrecognized option"; then
132 log_note "fallocate(1) does not support --punch-hole"
135 log_must fallocate --punch-hole -l 128K -o 512K $MNTPNT/discard
136 log_must fallocate --punch-hole -l 512K -o 1M $MNTPNT/discard
/freebsd-current/sbin/hastd/
H A Dtoken.l77 hole { DP; return HOLE; }
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_origin.ksh41 typeset dsB=$POOL/hole@snap
H A Dredacted.kshlib127 log_must zfs clone $sendfs@snap0 $POOL/hole
128 mntpnt=$(get_prop mountpoint $POOL/hole)
130 log_must zfs snapshot $POOL/hole@snap
H A Dredacted_incrementals.ksh60 log_must eval "zfs send -i $sendfs@snap0 $POOL/hole@snap >$stream"
90 log_mustnot zfs redact $POOL/int@snap book6 $POOL/hole@snap
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Ddmu_object.c385 * Return (in *objectp) the next object which is allocated (or a hole)
390 dmu_object_next(objset_t *os, uint64_t *objectp, boolean_t hole, uint64_t txg) argument
416 if (hole) {
425 if (hole) {
444 (hole ? DNODE_FIND_HOLE : 0), &offset, 0, DNODES_PER_BLOCK, txg);
H A Dzfs_vnops.c112 boolean_t hole; local
120 hole = B_TRUE;
122 hole = B_FALSE;
129 error = dmu_offset_next(ZTOZSB(zp)->z_os, zp->z_id, hole, &noff);
137 if (hole)
144 * We could find a hole that begins after the logical end-of-file,
146 * EOF falls mid-block, then indicate that the "virtual hole"
151 ASSERT(hole);
H A Ddmu_zfetch.c440 uint_t hole = 0;
445 hole += r->start - f;
447 if (hole <= r->end >> zfetch_hole_shift)
H A Ddnode.c1374 * to ensure the hole at the specified object offset is large enough to
1796 * detect a hole where there is really data, leading to silent corruption.
2369 * Set i to the blockid of the next non-hole
2492 * Scans a block at the indicated "level" looking for a hole or data,
2518 boolean_t hole; local
2523 hole = ((flags & DNODE_FIND_HOLE) != 0);
2525 ASSERT(txg == 0 || !hole);
2537 if (hole)
2575 if ((dnp[i].dn_type == DMU_OT_NONE) == hole)
2591 if (hole)
[all...]
/freebsd-current/sys/netgraph/
H A Dng_hole.c43 * This node is a 'black hole' that simply discards everything it receives
113 NETGRAPH_INIT(hole, &typestruct);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_support_format_iso9660.c2280 int hole, parent; local
2324 * Start with hole at end, walk it up tree to find insertion point.
2326 hole = heap->cnt++;
2327 while (hole > 0) {
2328 parent = (hole - 1)/2;
2331 heap->reqs[hole].offset = offset;
2332 heap->reqs[hole].file = file;
2335 /* Move parent into hole <==> move hole up tree. */
2336 heap->reqs[hole]
3015 int hole, parent; local
[all...]
H A Darchive_read_support_format_tar.c116 int hole; member in struct:sparse_block
558 if (!sb->hole)
646 if (!tar->sparse_list->hole)
648 /* Current is hole data and skip this. */
662 /* Do not consume the hole of a sparse file. */
665 if (!p->hole) {
2568 * data and hole pairs. The way recording sparse information by Solaris'
2570 * consist of both data and hole.
2578 int hole = 1; local
2602 tar->sparse_last->hole
[all...]
/freebsd-current/crypto/openssl/ssl/statem/
H A Dstatem_lib.c1727 * (creating a hole between TLSv1.3 and TLSv1.1) can still
2008 * @real_max: The highest version below the lowest compile time version hole
2009 * where that hole lies above at least one run-time enabled
2029 int hole; local
2064 * (protocol version client is disabled at compile-time) is also a "hole".
2066 * Our initial state is hole == 1, version == 0. That is, versions above
2067 * the first version in the method table are disabled (a "hole" above
2070 * Whenever "hole == 1", and we hit an enabled method, its version becomes
2072 * method. We're no longer in a hole, so "hole" become
[all...]

Completed in 382 milliseconds

12