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

12

/freebsd-10-stable/sys/ufs/ufs/
H A Dufs_dirhash.c71 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 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));
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 Ddir.h50 * 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 Dufs_extattr.c376 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 Dufs_vnops.c134 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 Ddirent.h56 #define DIRBLKSIZ 1024 macro
/freebsd-10-stable/sbin/restore/
H A Ddirs.c95 #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 Ddir.c52 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 Dea.c65 char dbuf[DIRBLKSIZ];
H A Dpass2.c155 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 Dopendir.c130 * 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 Dext2_lookup.c79 #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 Dext2_vnops.c182 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 Dt_pathconvert.c38 char buf[DIRBLKSIZ];
/freebsd-10-stable/usr.sbin/makefs/
H A Dffs.c585 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 Dtunefs.c718 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 Dnfs.h80 #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 Dnfs_vnops.c2286 (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 Dnfs.h60 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
/freebsd-10-stable/sys/fs/nfsclient/
H A Dnfs_clrpcops.c2701 * 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 Dnfs_clvnops.c2244 * 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 Dmkfs.c947 spcleft = DIRBLKSIZ;
948 memset(iobuf, 0, DIRBLKSIZ);
957 return (DIRBLKSIZ);
/freebsd-10-stable/sys/i386/ibcs2/
H A Dibcs2_misc.c371 #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 Dnfs.h141 #define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
/freebsd-10-stable/sys/compat/svr4/
H A Dsvr4_misc.c291 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
292 buflen = max(DIRBLKSIZ, nbytes);

Completed in 223 milliseconds

12