| /NextBSD/sys/ufs/ufs/ |
| HD | ufs_dirhash.c | 71 static int ufs_mindirhashsize = DIRBLKSIZ * 5; 369 KASSERT(ip->i_size >= DIRBLKSIZ, ("ufsdirhash_build size")); in ufsdirhash_build() 374 dirblocks = howmany(ip->i_size, DIRBLKSIZ); in ufsdirhash_build() 425 dh->dh_blkfree[i] = DIRBLKSIZ / DIRALIGN; in ufsdirhash_build() 440 DIRBLKSIZ - (pos & (DIRBLKSIZ - 1))) { in ufsdirhash_build() 634 DIRBLKSIZ - (offset & (DIRBLKSIZ - 1))) { in ufsdirhash_lookup() 643 if (offset & (DIRBLKSIZ - 1)) { in ufsdirhash_lookup() 721 pos = dirblock * DIRBLKSIZ; in ufsdirhash_findfree() 727 for (i = 0; i < DIRBLKSIZ; ) { in ufsdirhash_findfree() 737 if (i > DIRBLKSIZ) { in ufsdirhash_findfree() [all …]
|
| HD | ufs_lookup.c | 322 i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup_ino() 354 endsearch = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup_ino() 376 (entryoffsetinblock & (DIRBLKSIZ - 1)) == 0) { in ufs_lookup_ino() 389 DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1)) || in ufs_lookup_ino() 394 i = DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1)); in ufs_lookup_ino() 518 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup_ino() 523 if ((dp->i_offset & (DIRBLKSIZ - 1)) == 0) in ufs_lookup_ino() 533 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); in ufs_lookup_ino() 580 dp->i_diroff = i_offset &~ (DIRBLKSIZ - 1); in ufs_lookup_ino() 601 if ((dp->i_offset & (DIRBLKSIZ - 1)) == 0) in ufs_lookup_ino() [all …]
|
| HD | dir.h | 74 #define DIRBLKSIZ DEV_BSIZE macro
|
| HD | ufs_vnops.c | 134 0, DIRBLKSIZ - 12, DT_DIR, 2, ".." 138 0, DIRBLKSIZ - 12, 2, ".." 1915 if ((error = UFS_BALLOC(tvp, (off_t)0, DIRBLKSIZ, cnp->cn_cred, 1918 ip->i_size = DIRBLKSIZ; 1919 DIP_SET(ip, i_size, DIRBLKSIZ); 1930 blkoff = DIRBLKSIZ; 1933 (bp->b_data + blkoff))->d_reclen = DIRBLKSIZ; 1934 blkoff += DIRBLKSIZ; 2179 ~(size_t)(DIRBLKSIZ - 1);
|
| HD | ufs_extattr.c | 374 dirbuf = malloc(DIRBLKSIZ, M_TEMP, M_WAITOK); in ufs_extattr_iterate_directory() 392 auio.uio_resid = DIRBLKSIZ; in ufs_extattr_iterate_directory() 394 aiov.iov_len = DIRBLKSIZ; in ufs_extattr_iterate_directory() 402 edp = (struct dirent *)&dirbuf[DIRBLKSIZ - auio.uio_resid]; in ufs_extattr_iterate_directory()
|
| /NextBSD/sbin/fsck_ffs/ |
| HD | dir.c | 53 0, DIRBLKSIZ, DT_UNKNOWN, 0, "", 58 0, DIRBLKSIZ - 12, DT_DIR, 2, ".." 106 char dbuf[DIRBLKSIZ]; in dirscan() 111 (idesc->id_filesize & (DIRBLKSIZ - 1)) != 0) in dirscan() 112 idesc->id_filesize = roundup(idesc->id_filesize, DIRBLKSIZ); in dirscan() 151 if (idesc->id_loc % DIRBLKSIZ == 0 && idesc->id_filesize > 0 && in fsck_readdir() 161 dp->d_reclen = DIRBLKSIZ; in fsck_readdir() 168 idesc->id_loc += DIRBLKSIZ; in fsck_readdir() 169 idesc->id_filesize -= DIRBLKSIZ; in fsck_readdir() 179 if ((idesc->id_loc % DIRBLKSIZ) == 0) in fsck_readdir() [all …]
|
| HD | pass2.c | 155 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ); in pass2() 161 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) { in pass2() 166 (intmax_t)inp->i_isize, DIRBLKSIZ); in pass2() 170 (intmax_t)inp->i_isize, DIRBLKSIZ); in pass2() 173 inp->i_isize = roundup(inp->i_isize, DIRBLKSIZ); in pass2() 177 roundup(inp->i_isize, DIRBLKSIZ)); in pass2()
|
| HD | ea.c | 65 char dbuf[DIRBLKSIZ]; in eascan()
|
| /NextBSD/sys/fs/ext2fs/ |
| HD | ext2_lookup.c | 79 #undef DIRBLKSIZ 136 int DIRBLKSIZ = VTOI(ap->a_vp)->i_e2fs->e2fs_bsize; in ext2_readdir() local 170 ~(size_t)(DIRBLKSIZ - 1); in ext2_readdir() 320 int DIRBLKSIZ = VTOI(vdp)->i_e2fs->e2fs_bsize; in ext2_lookup_ino() local 379 endsearch = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino() 401 (entryoffsetinblock & (DIRBLKSIZ - 1)) == 0) { in ext2_lookup_ino() 418 i = DIRBLKSIZ - (entryoffsetinblock & (DIRBLKSIZ - 1)); in ext2_lookup_ino() 512 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino() 521 dp->i_endoff = roundup2(enduseful, DIRBLKSIZ); in ext2_lookup_ino() 568 dp->i_diroff = i_offset &~ (DIRBLKSIZ - 1); in ext2_lookup_ino() [all …]
|
| HD | ext2_vnops.c | 182 0, DIRBLKSIZ - 12, 2, EXT2_FT_DIR, ".." 186 0, DIRBLKSIZ - 12, 2, EXT2_FT_UNKNOWN, ".." 1162 #undef DIRBLKSIZ in ext2_mkdir() 1163 #define DIRBLKSIZ VTOI(dvp)->i_e2fs->e2fs_bsize in ext2_mkdir() macro 1164 dirtemplate.dotdot_reclen = DIRBLKSIZ - 12; in ext2_mkdir() 1174 if (DIRBLKSIZ > VFSTOEXT2(dvp->v_mount)->um_mountp->mnt_stat.f_bsize) in ext2_mkdir() 1178 ip->i_size = DIRBLKSIZ; in ext2_mkdir() 1201 #undef DIRBLKSIZ in ext2_mkdir() 1202 #define DIRBLKSIZ DEV_BSIZE in ext2_mkdir() macro
|
| /NextBSD/sbin/restore/ |
| HD | dirs.c | 95 #undef DIRBLKSIZ 96 #define DIRBLKSIZ 1024 macro 101 char dd_buf[DIRBLKSIZ]; 345 i = DIRBLKSIZ - (loc & (DIRBLKSIZ - 1)); in putdir() 381 char dirbuf[DIRBLKSIZ]; 392 if (dirloc + dp->d_reclen > DIRBLKSIZ) { in putent() 394 DIRBLKSIZ - prev; in putent() 395 if (fwrite(dirbuf, DIRBLKSIZ, 1, df) != 1) in putent() 410 ((struct direct *)(dirbuf + prev))->d_reclen = DIRBLKSIZ - prev; in flushent() 444 (void) lseek(dirp->dd_fd, base + (loc & ~(DIRBLKSIZ - 1)), SEEK_SET); in rst_seekdir() [all …]
|
| HD | interactive.c | 707 #undef DIRBLKSIZ
|
| /NextBSD/lib/libc/gen/ |
| HD | opendir.c | 135 if ((incr % DIRBLKSIZ) != 0) in _filldir() 136 incr = DIRBLKSIZ; in _filldir() 170 if (space < DIRBLKSIZ) { in _filldir() 306 if ((incr % DIRBLKSIZ) != 0) in __opendir_common() 307 incr = DIRBLKSIZ; in __opendir_common()
|
| /NextBSD/usr.sbin/makefs/ |
| HD | ffs.c | 593 if (this + curdirsize > roundup(curdirsize, DIRBLKSIZ)) \ in ffs_size_dir() 594 curdirsize = roundup(curdirsize, DIRBLKSIZ); \ in ffs_size_dir() 1040 if (reclen + dbuf->cur + llen > roundup(dbuf->size, DIRBLKSIZ)) { in ffs_make_dirbuf() 1043 dbuf->size + DIRBLKSIZ); in ffs_make_dirbuf() 1044 if ((newbuf = realloc(dbuf->buf, dbuf->size + DIRBLKSIZ)) == NULL) in ffs_make_dirbuf() 1047 dbuf->size += DIRBLKSIZ; in ffs_make_dirbuf() 1048 memset(dbuf->buf + dbuf->size - DIRBLKSIZ, 0, DIRBLKSIZ); in ffs_make_dirbuf() 1049 dbuf->cur = dbuf->size - DIRBLKSIZ; in ffs_make_dirbuf()
|
| /NextBSD/include/ |
| HD | dirent.h | 56 #define DIRBLKSIZ 1024 macro
|
| /NextBSD/contrib/netbsd-tests/fs/hfs/ |
| HD | t_pathconvert.c | 38 char buf[DIRBLKSIZ]; in ATF_TC_BODY()
|
| /NextBSD/sbin/tunefs/ |
| HD | tunefs.c | 718 for (; off < sblock.fs_bsize; off += DIRBLKSIZ) { in dir_clear_block() 721 dp->d_reclen = DIRBLKSIZ; in dir_clear_block() 744 dp->d_reclen = DIRBLKSIZ; in dir_insert() 748 dir_clear_block(block, off + DIRBLKSIZ); in dir_insert()
|
| /NextBSD/sys/nfsclient/ |
| HD | nfs.h | 82 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
|
| /NextBSD/sys/nfsserver/ |
| HD | nfs.h | 60 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro
|
| /NextBSD/sys/fs/nfsclient/ |
| HD | nfs_clrpcops.c | 2714 (uio_uio_resid(uiop) & (DIRBLKSIZ - 1)) == 0, in nfsrpc_readdir() 2725 readsize = uio_uio_resid(uiop) + DIRBLKSIZ; in nfsrpc_readdir() 2954 left = DIRBLKSIZ - blksiz; in nfsrpc_readdir() 2971 if (blksiz == DIRBLKSIZ) in nfsrpc_readdir() 3069 left = DIRBLKSIZ - blksiz; in nfsrpc_readdir() 3104 dp->d_reclen = DIRBLKSIZ; in nfsrpc_readdir() 3105 uio_iov_base_add(uiop, DIRBLKSIZ); in nfsrpc_readdir() 3106 uio_iov_len_add(uiop, -(DIRBLKSIZ)); in nfsrpc_readdir() 3107 uio_uio_resid_add(uiop, -(DIRBLKSIZ)); in nfsrpc_readdir() 3108 uiop->uio_offset += DIRBLKSIZ; in nfsrpc_readdir() [all …]
|
| HD | nfs_clvnops.c | 2247 left = uio->uio_resid % DIRBLKSIZ; in nfs_readdir() 2284 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && in ncl_readdirrpc() 2285 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0, in ncl_readdirrpc() 2344 (uiop->uio_offset & (DIRBLKSIZ - 1)) == 0 && in ncl_readdirplusrpc() 2345 (uiop->uio_resid & (DIRBLKSIZ - 1)) == 0, in ncl_readdirplusrpc()
|
| /NextBSD/sys/i386/ibcs2/ |
| HD | ibcs2_misc.c | 359 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro 360 buflen = max(DIRBLKSIZ, uap->nbytes); 521 buflen = max(DIRBLKSIZ, uap->nbytes);
|
| /NextBSD/sbin/newfs/ |
| HD | mkfs.c | 925 spcleft = DIRBLKSIZ; in makedir() 926 memset(iobuf, 0, DIRBLKSIZ); in makedir() 935 return (DIRBLKSIZ); in makedir()
|
| /NextBSD/sys/fs/nfs/ |
| HD | nfs.h | 141 #define NFS_READDIRBLKSIZ DIRBLKSIZ /* Minimal nm_readdirsize */
|
| /NextBSD/sys/compat/svr4/ |
| HD | svr4_misc.c | 289 #define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ macro 290 buflen = max(DIRBLKSIZ, nbytes);
|