/freebsd-13-stable/sys/ufs/ufs/ |
H A D | ufs_dirhash.c | 72 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 D | ufs_lookup.c | 309 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 D | dir.h | 52 * 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 D | ufs_extattr.c | 384 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 D | ufs_vnops.c | 141 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 D | dirs.c | 97 #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 D | opendir.c | 128 * 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 D | dir.c | 55 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 D | ea.c | 67 char dbuf[DIRBLKSIZ];
|
H A D | pass2.c | 162 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 D | dirent.h | 85 #define DIRBLKSIZ 1024 macro
|
/freebsd-13-stable/sys/fs/ext2fs/ |
H A D | ext2_lookup.c | 97 #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 D | ext2_vnops.c | 213 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 D | t_pathconvert.c | 38 char buf[DIRBLKSIZ];
|
/freebsd-13-stable/lib/libc/sys/ |
H A D | getdirentries.c | 94 * 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 D | ffs.c | 615 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 D | tunefs.c | 733 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 D | nfs.h | 82 #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 D | nfs.h | 62 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
|
/freebsd-13-stable/sbin/newfs/ |
H A D | mkfs.c | 968 spcleft = DIRBLKSIZ; 969 memset(iobuf, 0, DIRBLKSIZ); 978 return (DIRBLKSIZ);
|
/freebsd-13-stable/sys/fs/nfsclient/ |
H A D | nfs_clrpcops.c | 2901 * 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 D | nfs_clvnops.c | 2381 * 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 D | nfs.h | 144 #define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
|
H A D | nfsport.h | 1076 #define NFS_DIRBLKSIZ (16 * DIRBLKSIZ) /* Must be a multiple of DIRBLKSIZ */
|
/freebsd-13-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 1936 * 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));
|