Searched refs:DIRBLKSIZ (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-13-stable/sys/ufs/ufs/
H A Dufs_dirhash.c72 static int ufs_mindirhashsize = DIRBLKSIZ * 5;
377 KASSERT(ip->i_size >= DIRBLKSIZ, ("ufsdirhash_build size"));
382 dirblocks = howmany(ip->i_size, DIRBLKSIZ);
433 dh->dh_blkfree[i] = DIRBLKSIZ / DIRALIGN;
448 DIRBLKSIZ - (pos & (DIRBLKSIZ - 1))) {
545 * the DIRBLKSIZ-sized block is stored in *prevoffp (if the entry
642 DIRBLKSIZ - (offset & (DIRBLKSIZ - 1))) {
651 if (offset & (DIRBLKSIZ
[all...]
H A Dufs_lookup.c309 i_offset = roundup2(dp->i_size, DIRBLKSIZ);
341 endsearch = roundup2(dp->i_size, DIRBLKSIZ);
363 (entryoffsetinblock & (DIRBLKSIZ - 1)) == 0) {
376 DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1)) ||
381 i = DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1));
504 SET_I_OFFSET(dp, roundup2(dp->i_size, DIRBLKSIZ));
509 if ((I_OFFSET(dp) & (DIRBLKSIZ - 1)) == 0)
519 SET_I_ENDOFF(dp, roundup2(enduseful, DIRBLKSIZ));
1223 rounddown2(I_OFFSET(dp), DIRBLKSIZ)); local
[all...]
H A Ddir.h52 * A directory consists of some number of blocks of DIRBLKSIZ
53 * bytes, where DIRBLKSIZ is chosen such that it can be transferred
56 * Each DIRBLKSIZ byte block contains some number of directory entry
66 * entries which have dp->d_reclen > DIRSIZ(fmt, dp). All DIRBLKSIZ bytes
76 #define DIRBLKSIZ DEV_BSIZE macro
H A Dufs_extattr.c384 dirbuf = malloc(DIRBLKSIZ, M_TEMP, M_WAITOK);
402 auio.uio_resid = DIRBLKSIZ;
404 aiov.iov_len = DIRBLKSIZ;
412 edp = (struct dirent *)&dirbuf[DIRBLKSIZ - auio.uio_resid];
H A Dufs_vnops.c141 0, DIRBLKSIZ - 12, DT_DIR, 2, ".."
145 0, DIRBLKSIZ - 12, 2, ".."
2093 vnode_pager_setsize(tvp, DIRBLKSIZ);
2094 if ((error = UFS_BALLOC(tvp, (off_t)0, DIRBLKSIZ, cnp->cn_cred,
2097 ip->i_size = DIRBLKSIZ;
2098 DIP_SET(ip, i_size, DIRBLKSIZ);
2108 blkoff = DIRBLKSIZ;
2111 (bp->b_data + blkoff))->d_reclen = DIRBLKSIZ;
2112 blkoff += DIRBLKSIZ;
2368 ~(size_t)(DIRBLKSIZ
[all...]
/freebsd-13-stable/sbin/restore/
H A Ddirs.c97 #undef DIRBLKSIZ macro
98 #define DIRBLKSIZ 1024 macro
103 char dd_buf[DIRBLKSIZ];
348 i = DIRBLKSIZ - (loc & (DIRBLKSIZ - 1));
384 char dirbuf[DIRBLKSIZ];
395 if (dirloc + dp->d_reclen > DIRBLKSIZ) {
397 DIRBLKSIZ - prev;
398 if (fwrite(dirbuf, DIRBLKSIZ, 1, df) != 1)
413 ((struct direct *)(dirbuf + prev))->d_reclen = DIRBLKSIZ
[all...]
/freebsd-13-stable/lib/libc/gen/
H A Dopendir.c128 * Use the system page size if that is a multiple of DIRBLKSIZ.
133 if ((incr % DIRBLKSIZ) != 0)
134 incr = DIRBLKSIZ;
165 * Always make at least DIRBLKSIZ bytes
168 if (space < DIRBLKSIZ) {
315 * Use the system page size if that is a multiple of DIRBLKSIZ.
320 if ((incr % DIRBLKSIZ) != 0)
321 incr = DIRBLKSIZ;
/freebsd-13-stable/sbin/fsck_ffs/
H A Ddir.c55 0, DIRBLKSIZ, DT_UNKNOWN, 0, "",
60 0, DIRBLKSIZ - 12, DT_DIR, 2, ".."
108 char dbuf[DIRBLKSIZ];
113 (idesc->id_filesize & (DIRBLKSIZ - 1)) != 0)
114 idesc->id_filesize = roundup(idesc->id_filesize, DIRBLKSIZ);
168 if (idesc->id_loc % DIRBLKSIZ != 0 || dircheck(idesc, bp, dp) != 0) {
178 idesc->id_loc % DIRBLKSIZ == 0)
196 size = DIRBLKSIZ - (idesc->id_loc % DIRBLKSIZ);
228 spaceleft = DIRBLKSIZ
[all...]
H A Dea.c67 char dbuf[DIRBLKSIZ];
H A Dpass2.c162 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ);
169 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) {
174 (intmax_t)inp->i_isize, DIRBLKSIZ);
178 (intmax_t)inp->i_isize, DIRBLKSIZ);
181 inp->i_isize = roundup(inp->i_isize, DIRBLKSIZ);
185 roundup(inp->i_isize, DIRBLKSIZ));
/freebsd-13-stable/include/
H A Ddirent.h85 #define DIRBLKSIZ 1024 macro
/freebsd-13-stable/sys/fs/ext2fs/
H A Dext2_lookup.c97 #undef DIRBLKSIZ macro
164 int DIRBLKSIZ = VTOI(ap->a_vp)->i_e2fs->e2fs_bsize; local
201 ~(size_t)(DIRBLKSIZ - 1);
350 int DIRBLKSIZ = VTOI(vdp)->i_e2fs->e2fs_bsize; local
398 i_offset = roundup2(dp->i_size, DIRBLKSIZ);
435 endsearch = roundup2(dp->i_size, DIRBLKSIZ);
507 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
516 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ);
563 dp->i_diroff = rounddown2(i_offset, DIRBLKSIZ);
588 if ((dp->i_offset & (DIRBLKSIZ
846 int DIRBLKSIZ = VTOI(dp)->i_e2fs->e2fs_bsize; local
944 int DIRBLKSIZ = ip->i_e2fs->e2fs_bsize; local
[all...]
H A Dext2_vnops.c213 0, htole16(DIRBLKSIZ - 12), 2, EXT2_FT_DIR, ".."
217 0, htole16(DIRBLKSIZ - 12), 2, EXT2_FT_UNKNOWN, ".."
1382 * note that in ext2 DIRBLKSIZ == blocksize, not DEV_BSIZE so let's
1385 #undef DIRBLKSIZ macro
1386 #define DIRBLKSIZ VTOI(dvp)->i_e2fs->e2fs_bsize macro
1387 dirtemplate.dotdot_reclen = htole16(DIRBLKSIZ - 12);
1388 buf = malloc(DIRBLKSIZ, M_TEMP, M_WAITOK | M_ZERO);
1393 ext2_init_dirent_tail(EXT2_DIRENT_TAIL(buf, DIRBLKSIZ));
1398 DIRBLKSIZ, (off_t)0, UIO_SYSSPACE,
1406 if (DIRBLKSIZ > VFSTOEXT
1444 #undef DIRBLKSIZ macro
1445 #define DIRBLKSIZ macro
[all...]
/freebsd-13-stable/contrib/netbsd-tests/fs/hfs/
H A Dt_pathconvert.c38 char buf[DIRBLKSIZ];
/freebsd-13-stable/lib/libc/sys/
H A Dgetdirentries.c94 * up to the next DIRBLKSIZ. This will guarnatee enough room exists in
100 len = roundup(nbytes / 4, DIRBLKSIZ);
/freebsd-13-stable/usr.sbin/makefs/
H A Dffs.c615 if (this + curdirsize > roundup(curdirsize, DIRBLKSIZ)) \
616 curdirsize = roundup(curdirsize, DIRBLKSIZ); \
1066 if (reclen + dbuf->cur + llen > roundup(dbuf->size, DIRBLKSIZ)) {
1069 dbuf->size + DIRBLKSIZ);
1070 newbuf = erealloc(dbuf->buf, dbuf->size + DIRBLKSIZ);
1072 dbuf->size += DIRBLKSIZ;
1073 memset(dbuf->buf + dbuf->size - DIRBLKSIZ, 0, DIRBLKSIZ);
1074 dbuf->cur = dbuf->size - DIRBLKSIZ;
/freebsd-13-stable/sbin/tunefs/
H A Dtunefs.c733 for (; off < sblock.fs_bsize; off += DIRBLKSIZ) {
736 dp->d_reclen = DIRBLKSIZ;
743 * free offset of 'off'. DIRBLKSIZ blocks after off are initialized as
759 dp->d_reclen = DIRBLKSIZ;
763 dir_clear_block(block, off + DIRBLKSIZ);
/freebsd-13-stable/sys/nfsclient/
H A Dnfs.h82 #define NFS_DIRBLKSIZ 4096 /* Must be a multiple of DIRBLKSIZ */
84 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
/freebsd-13-stable/sys/nfsserver/
H A Dnfs.h62 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
/freebsd-13-stable/sbin/newfs/
H A Dmkfs.c968 spcleft = DIRBLKSIZ;
969 memset(iobuf, 0, DIRBLKSIZ);
978 return (DIRBLKSIZ);
/freebsd-13-stable/sys/fs/nfsclient/
H A Dnfs_clrpcops.c2901 * end of the directory, or uio_resid == 0, with all DIRBLKSIZ chunks
2948 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0,
2953 * adding one additional DIRBLKSIZ makes sense. Since uio_resid
2954 * and nm_readdirsize are both exact multiples of DIRBLKSIZ, this
2959 readsize = uiop->uio_resid + DIRBLKSIZ;
3193 left = DIRBLKSIZ - blksiz;
3216 if (blksiz == DIRBLKSIZ)
3313 * Fill last record, iff any, out to a multiple of DIRBLKSIZ
3317 left = DIRBLKSIZ - blksiz;
3343 * Add extra empty records to any remaining DIRBLKSIZ chunk
[all...]
H A Dnfs_clvnops.c2381 * DIRBLKSIZ boundaries. As such, we need to limit the size
2382 * to an exact multiple of DIRBLKSIZ, to avoid copying a partial
2385 left = uio->uio_resid % DIRBLKSIZ;
2402 /* Add the partial DIRBLKSIZ (left) back in. */
2422 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 &&
2423 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0,
2486 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 &&
2487 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0,
/freebsd-13-stable/sys/fs/nfs/
H A Dnfs.h144 #define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
H A Dnfsport.h1076 #define NFS_DIRBLKSIZ (16 * DIRBLKSIZ) /* Must be a multiple of DIRBLKSIZ */
/freebsd-13-stable/sys/fs/nfsserver/
H A Dnfs_nfsdport.c1936 * count rounded up to a multiple of DIRBLKSIZ <= NFS_MAXREADDIR
1992 siz = ((cnt + DIRBLKSIZ - 1) & ~(DIRBLKSIZ - 1));
2264 * next multiple of DIRBLKSIZ.
2274 siz = ((siz + DIRBLKSIZ - 1) & ~(DIRBLKSIZ - 1));

Completed in 200 milliseconds

12