Home
last modified time | relevance | path

Searched refs:io_bytes (Results 1 – 6 of 6) sorted by relevance

/dragonfly/sbin/fsck_hammer2/
HDreconstruct.c232 size_t bytes, io_bytes, boff; in read_media() local
249 io_bytes = HAMMER2_LBUFSIZE; in read_media()
250 while (io_bytes + boff < bytes) in read_media()
251 io_bytes <<= 1; in read_media()
253 if (io_bytes > sizeof(*media)) { in read_media()
263 ret = read(fd, media, io_bytes); in read_media()
267 } else if (ret != (ssize_t)io_bytes) { in read_media()
283 size_t bytes, io_bytes, boff; in write_media() local
297 io_bytes = HAMMER2_LBUFSIZE; in write_media()
298 while (io_bytes + boff < bytes) in write_media()
[all …]
HDdestroy.c115 size_t bytes, io_bytes, boff; in read_media() local
132 io_bytes = HAMMER2_LBUFSIZE; in read_media()
133 while (io_bytes + boff < bytes) in read_media()
134 io_bytes <<= 1; in read_media()
136 if (io_bytes > sizeof(*media)) { in read_media()
146 ret = read(fd, media, io_bytes); in read_media()
150 } else if (ret != (ssize_t)io_bytes) { in read_media()
166 size_t bytes, io_bytes, boff; in write_media() local
180 io_bytes = HAMMER2_LBUFSIZE; in write_media()
181 while (io_bytes + boff < bytes) in write_media()
[all …]
HDtest.c668 size_t bytes, io_bytes, boff; in read_media() local
684 io_bytes = HAMMER2_LBUFSIZE; in read_media()
685 while (io_bytes + boff < bytes) in read_media()
686 io_bytes <<= 1; in read_media()
688 if (io_bytes > sizeof(*media)) in read_media()
694 if (read(fd, media, io_bytes) != (ssize_t)io_bytes) in read_media()
/dragonfly/sbin/hammer2/
HDcmd_info.c388 size_t io_bytes; in h2pfs_check() local
401 io_bytes = bytes; in h2pfs_check()
404 io_bytes = HAMMER2_LBUFSIZE; in h2pfs_check()
405 while (io_bytes + boff < bytes) in h2pfs_check()
406 io_bytes <<= 1; in h2pfs_check()
408 if (io_bytes > sizeof(media)) { in h2pfs_check()
414 if (read(fd, &media, io_bytes) != (ssize_t)io_bytes) { in h2pfs_check()
HDcmd_debug.c776 size_t io_bytes; in show_bref() local
783 io_bytes = HAMMER2_LBUFSIZE; in show_bref()
784 while (io_bytes + boff < bytes) in show_bref()
785 io_bytes <<= 1; in show_bref()
787 if (io_bytes > sizeof(media)) { in show_bref()
795 if (read(fd, &media, io_bytes) != (ssize_t)io_bytes) { in show_bref()
/dragonfly/usr.sbin/fstyp/
HDhammer2.c130 size_t bytes, io_bytes, boff, fbytes; in read_media() local
146 io_bytes = HAMMER2_LBUFSIZE; in read_media()
147 while (io_bytes + boff < bytes) in read_media()
148 io_bytes <<= 1; in read_media()
150 if (io_bytes > sizeof(hammer2_media_data_t)) { in read_media()
173 media = read_buf(fp, io_base, io_bytes); in read_media()