Home
last modified time | relevance | path

Searched refs:reclen (Results 1 – 7 of 7) sorted by relevance

/f-stack/freebsd/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c108 uint64_t reclen; in zpool_history_unpack() local
113 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
116 for (i = 0, reclen = 0; i < sizeof (reclen); i++) in zpool_history_unpack()
117 reclen += (uint64_t)(((uchar_t *)buf)[i]) << (8*i); in zpool_history_unpack()
119 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
123 if (nvlist_unpack(buf + sizeof (reclen), reclen, &nv, 0) != 0) in zpool_history_unpack()
125 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
126 buf += sizeof (reclen) + reclen; in zpool_history_unpack()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dspa_history.c127 uint64_t firstread, reclen, phys_bof; in spa_history_advance_bof() local
128 char buf[sizeof (reclen)]; in spa_history_advance_bof()
132 firstread = MIN(sizeof (reclen), shpp->sh_phys_max_off - phys_bof); in spa_history_advance_bof()
137 if (firstread != sizeof (reclen)) { in spa_history_advance_bof()
139 shpp->sh_pool_create_len, sizeof (reclen) - firstread, in spa_history_advance_bof()
144 reclen = LE_64(*((uint64_t *)buf)); in spa_history_advance_bof()
145 shpp->sh_bof += reclen + sizeof (reclen); in spa_history_advance_bof()
260 size_t reclen; in spa_history_log_sync() local
338 le_len = LE_64((uint64_t)reclen); in spa_history_log_sync()
341 ret = spa_history_write(spa, record_packed, reclen, shpp, tx); in spa_history_log_sync()
[all …]
H A Dzil.c380 int reclen; in zil_parse() local
403 reclen = lr->lrc_reclen; in zil_parse()
1657 reclen = lrc->lrc_reclen; in zil_lwb_commit()
1670 if (reclen > lwb_sp || (reclen + dlen > lwb_sp && in zil_lwb_commit()
1695 bcopy(lrc, lr_buf, reclen); in zil_lwb_commit()
1715 dbuf = lr_buf + reclen; in zil_lwb_commit()
1768 lwb->lwb_nused += reclen + dnow; in zil_lwb_commit()
1777 zilog->zl_cur_used += reclen; in zil_lwb_commit()
3503 uint64_t reclen = lr->lrc_reclen; in zil_replay_log_record() local
3535 bcopy(lr, zr->zr_lr, reclen); in zil_replay_log_record()
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dextdirent.h53 #define EDIRENT_NAMELEN(reclen) \ argument
54 ((reclen) - (offsetof(edirent_t, ed_name[0])))
/f-stack/freebsd/kern/
H A Dkern_linker.c1784 int error, len, extlen, reclen, flags; in linker_lookup_file() local
1796 reclen = pathlen + strlen(sep) + namelen + extlen + 1; in linker_lookup_file()
1797 result = malloc(reclen, M_LINKER, M_WAITOK); in linker_lookup_file()
1843 ssize_t reclen; in linker_hints_lookup() local
1851 pathbuf = malloc(reclen, M_LINKER, M_WAITOK); in linker_hints_lookup()
1852 snprintf(pathbuf, reclen, "%.*s%s%s", pathlen, path, sep, in linker_hints_lookup()
1876 UIO_SYSSPACE, IO_NODELOCKED, cred, NOCRED, &reclen, td); in linker_hints_lookup()
1882 if (reclen != 0) { in linker_hints_lookup()
1883 printf("can't read %zd\n", reclen); in linker_hints_lookup()
1897 reclen = *intp++; in linker_hints_lookup()
[all …]
H A Dvfs_default.c293 int error, reclen; in get_next_dirent() local
334 reclen = dp->d_reclen; in get_next_dirent()
338 if (reclen < DIRENT_MINSIZE) in get_next_dirent()
341 *cpos += reclen; in get_next_dirent()
342 *len -= reclen; in get_next_dirent()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c1776 ushort_t reclen; in zfs_readdir() local
1851 reclen = EDIRENT_RECLEN(strlen(zap.za_name)); in zfs_readdir()
1853 reclen = DIRENT64_RECLEN(strlen(zap.za_name)); in zfs_readdir()
1858 if (outcount + reclen > bufsize) { in zfs_readdir()
1873 eodp->ed_reclen = reclen; in zfs_readdir()
1879 EDIRENT_NAMELEN(reclen)); in zfs_readdir()
1880 eodp = (edirent_t *)((intptr_t)eodp + reclen); in zfs_readdir()
1886 odp->d_reclen = reclen; in zfs_readdir()
1893 odp = (dirent64_t *)((intptr_t)odp + reclen); in zfs_readdir()
1895 outcount += reclen; in zfs_readdir()