/freebsd-10-stable/sys/ufs/ufs/ |
H A D | ufs_dirhash.c | 71 static int ufs_mindirhashsize = DIRBLKSIZ * 5; 374 KASSERT(ip->i_size >= DIRBLKSIZ, ("ufsdirhash_build size")); 379 dirblocks = howmany(ip->i_size, DIRBLKSIZ); 430 dh->dh_blkfree[i] = DIRBLKSIZ / DIRALIGN; 445 DIRBLKSIZ - (pos & (DIRBLKSIZ - 1))) { 542 * the DIRBLKSIZ-sized block is stored in *prevoffp (if the entry 639 DIRBLKSIZ - (offset & (DIRBLKSIZ - 1))) { 648 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)); 505 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); 510 if ((dp->i_offset & (DIRBLKSIZ - 1)) == 0) 520 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); [all...] |
H A D | dir.h | 50 * A directory consists of some number of blocks of DIRBLKSIZ 51 * bytes, where DIRBLKSIZ is chosen such that it can be transferred 54 * Each DIRBLKSIZ byte block contains some number of directory entry 64 * entries which have dp->d_reclen > DIRSIZ(fmt, dp). All DIRBLKSIZ bytes 74 #define DIRBLKSIZ DEV_BSIZE macro
|
H A D | ufs_extattr.c | 376 dirbuf = malloc(DIRBLKSIZ, M_TEMP, M_WAITOK); 394 auio.uio_resid = DIRBLKSIZ; 396 aiov.iov_len = DIRBLKSIZ; 404 edp = (struct dirent *)&dirbuf[DIRBLKSIZ - auio.uio_resid];
|
H A D | ufs_vnops.c | 134 0, DIRBLKSIZ - 12, DT_DIR, 2, ".." 138 0, DIRBLKSIZ - 12, 2, ".." 1945 vnode_pager_setsize(tvp, DIRBLKSIZ); 1946 if ((error = UFS_BALLOC(tvp, (off_t)0, DIRBLKSIZ, cnp->cn_cred, 1949 ip->i_size = DIRBLKSIZ; 1950 DIP_SET(ip, i_size, DIRBLKSIZ); 1960 blkoff = DIRBLKSIZ; 1963 (bp->b_data + blkoff))->d_reclen = DIRBLKSIZ; 1964 blkoff += DIRBLKSIZ; 2211 ~(size_t)(DIRBLKSIZ [all...] |
/freebsd-10-stable/include/ |
H A D | dirent.h | 56 #define DIRBLKSIZ 1024 macro
|
/freebsd-10-stable/sbin/restore/ |
H A D | dirs.c | 95 #undef DIRBLKSIZ macro 96 #define DIRBLKSIZ 1024 macro 101 char dd_buf[DIRBLKSIZ]; 345 i = DIRBLKSIZ - (loc & (DIRBLKSIZ - 1)); 381 char dirbuf[DIRBLKSIZ]; 392 if (dirloc + dp->d_reclen > DIRBLKSIZ) { 394 DIRBLKSIZ - prev; 395 if (fwrite(dirbuf, DIRBLKSIZ, 1, df) != 1) 410 ((struct direct *)(dirbuf + prev))->d_reclen = DIRBLKSIZ [all...] |
/freebsd-10-stable/sbin/fsck_ffs/ |
H A D | dir.c | 52 0, DIRBLKSIZ, DT_UNKNOWN, 0, "", 57 0, DIRBLKSIZ - 12, DT_DIR, 2, ".." 105 char dbuf[DIRBLKSIZ]; 110 (idesc->id_filesize & (DIRBLKSIZ - 1)) != 0) 111 idesc->id_filesize = roundup(idesc->id_filesize, DIRBLKSIZ); 150 if (idesc->id_loc % DIRBLKSIZ == 0 && idesc->id_filesize > 0 && 160 dp->d_reclen = DIRBLKSIZ; 167 idesc->id_loc += DIRBLKSIZ; 168 idesc->id_filesize -= DIRBLKSIZ; 178 if ((idesc->id_loc % DIRBLKSIZ) [all...] |
H A D | ea.c | 65 char dbuf[DIRBLKSIZ];
|
H A D | pass2.c | 155 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ); 161 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) { 166 (intmax_t)inp->i_isize, DIRBLKSIZ); 170 (intmax_t)inp->i_isize, DIRBLKSIZ); 173 inp->i_isize = roundup(inp->i_isize, DIRBLKSIZ); 177 roundup(inp->i_isize, DIRBLKSIZ));
|
/freebsd-10-stable/lib/libc/gen/ |
H A D | opendir.c | 130 * Use the system page size if that is a multiple of DIRBLKSIZ. 135 if ((incr % DIRBLKSIZ) != 0) 136 incr = DIRBLKSIZ; 167 * Always make at least DIRBLKSIZ bytes 170 if (space < DIRBLKSIZ) { 301 * Use the system page size if that is a multiple of DIRBLKSIZ. 306 if ((incr % DIRBLKSIZ) != 0) 307 incr = DIRBLKSIZ;
|
/freebsd-10-stable/sys/fs/ext2fs/ |
H A D | ext2_lookup.c | 79 #undef DIRBLKSIZ macro 146 int DIRBLKSIZ = VTOI(ap->a_vp)->i_e2fs->e2fs_bsize; local 183 ~(size_t)(DIRBLKSIZ - 1); 330 int DIRBLKSIZ = VTOI(vdp)->i_e2fs->e2fs_bsize; local 378 i_offset = roundup2(dp->i_size, DIRBLKSIZ); 415 endsearch = roundup2(dp->i_size, DIRBLKSIZ); 434 (entryoffsetinblock & (DIRBLKSIZ - 1)) == 0) { 490 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); 499 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); 546 dp->i_diroff = i_offset &~ (DIRBLKSIZ 829 int DIRBLKSIZ = VTOI(dp)->i_e2fs->e2fs_bsize; local 871 int DIRBLKSIZ = ip->i_e2fs->e2fs_bsize; local [all...] |
H A D | ext2_vnops.c | 182 0, DIRBLKSIZ - 12, 2, EXT2_FT_DIR, ".." 186 0, DIRBLKSIZ - 12, 2, EXT2_FT_UNKNOWN, ".." 1161 * note that in ext2 DIRBLKSIZ == blocksize, not DEV_BSIZE so let's 1164 #undef DIRBLKSIZ macro 1165 #define DIRBLKSIZ VTOI(dvp)->i_e2fs->e2fs_bsize macro 1166 dirtemplate.dotdot_reclen = DIRBLKSIZ - 12; 1176 if (DIRBLKSIZ > VFSTOEXT2(dvp->v_mount)->um_mountp->mnt_stat.f_bsize) 1180 ip->i_size = DIRBLKSIZ; 1203 #undef DIRBLKSIZ macro 1204 #define DIRBLKSIZ DEV_BSIZ macro [all...] |
/freebsd-10-stable/contrib/netbsd-tests/fs/hfs/ |
H A D | t_pathconvert.c | 38 char buf[DIRBLKSIZ];
|
/freebsd-10-stable/usr.sbin/makefs/ |
H A D | ffs.c | 585 if (this + curdirsize > roundup(curdirsize, DIRBLKSIZ)) \ 586 curdirsize = roundup(curdirsize, DIRBLKSIZ); \ 1032 if (reclen + dbuf->cur + llen > roundup(dbuf->size, DIRBLKSIZ)) { 1035 dbuf->size + DIRBLKSIZ); 1036 if ((newbuf = realloc(dbuf->buf, dbuf->size + DIRBLKSIZ)) == NULL) 1039 dbuf->size += DIRBLKSIZ; 1040 memset(dbuf->buf + dbuf->size - DIRBLKSIZ, 0, DIRBLKSIZ); 1041 dbuf->cur = dbuf->size - DIRBLKSIZ;
|
/freebsd-10-stable/sbin/tunefs/ |
H A D | tunefs.c | 718 for (; off < sblock.fs_bsize; off += DIRBLKSIZ) { 721 dp->d_reclen = DIRBLKSIZ; 728 * free offset of 'off'. DIRBLKSIZ blocks after off are initialized as 744 dp->d_reclen = DIRBLKSIZ; 748 dir_clear_block(block, off + DIRBLKSIZ);
|
/freebsd-10-stable/sys/nfsclient/ |
H A D | nfs.h | 80 #define NFS_DIRBLKSIZ 4096 /* Must be a multiple of DIRBLKSIZ */ 82 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
|
H A D | nfs_vnops.c | 2286 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && 2287 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0, 2305 * truncated to a multiple of DIRBLKSIZ. 2367 left = DIRBLKSIZ - blksiz; 2386 if (blksiz == DIRBLKSIZ) 2431 * Fill last record, iff any, out to a multiple of DIRBLKSIZ 2435 left = DIRBLKSIZ - blksiz; 2491 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && 2492 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0, 2511 * truncated to a multiple of DIRBLKSIZ [all...] |
/freebsd-10-stable/sys/nfsserver/ |
H A D | nfs.h | 60 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
|
/freebsd-10-stable/sys/fs/nfsclient/ |
H A D | nfs_clrpcops.c | 2701 * end of the directory, or uio_resid == 0, with all DIRBLKSIZ chunks 2749 (uio_uio_resid(uiop) & (DIRBLKSIZ - 1)) == 0, 2754 * adding one additional DIRBLKSIZ makes sense. Since uio_resid 2755 * and nm_readdirsize are both exact multiples of DIRBLKSIZ, this 2760 readsize = uio_uio_resid(uiop) + DIRBLKSIZ; 2989 left = DIRBLKSIZ - blksiz; 3006 if (blksiz == DIRBLKSIZ) 3100 * Fill last record, iff any, out to a multiple of DIRBLKSIZ 3104 left = DIRBLKSIZ - blksiz; 3128 * Add extra empty records to any remaining DIRBLKSIZ chunk [all...] |
H A D | nfs_clvnops.c | 2244 * DIRBLKSIZ boundaries. As such, we need to limit the size 2245 * to an exact multiple of DIRBLKSIZ, to avoid copying a partial 2248 left = uio->uio_resid % DIRBLKSIZ; 2265 /* Add the partial DIRBLKSIZ (left) back in. */ 2285 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && 2286 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0, 2345 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && 2346 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0,
|
/freebsd-10-stable/sbin/newfs/ |
H A D | mkfs.c | 947 spcleft = DIRBLKSIZ; 948 memset(iobuf, 0, DIRBLKSIZ); 957 return (DIRBLKSIZ);
|
/freebsd-10-stable/sys/i386/ibcs2/ |
H A D | ibcs2_misc.c | 371 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro 372 buflen = max(DIRBLKSIZ, uap->nbytes); 534 buflen = max(DIRBLKSIZ, uap->nbytes);
|
/freebsd-10-stable/sys/fs/nfs/ |
H A D | nfs.h | 141 #define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
|
/freebsd-10-stable/sys/compat/svr4/ |
H A D | svr4_misc.c | 291 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro 292 buflen = max(DIRBLKSIZ, nbytes);
|