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

12

/netbsd-6-1-5-RELEASE/sys/stand/
H A Dls.c90 char dirbuf[DIRBLKSIZ];
93 while ((size = read(fd, dirbuf, DIRBLKSIZ)) == DIRBLKSIZ)
/netbsd-6-1-5-RELEASE/sys/ufs/ufs/
H A Ddir.h51 * A directory consists of some number of blocks of DIRBLKSIZ
52 * bytes, where DIRBLKSIZ is chosen such that it can be transferred
55 * Each DIRBLKSIZ byte block contains some number of directory entry
65 * entries which have dp->d_reclen > DIRSIZ(fmt, dp). All DIRBLKSIZ bytes
75 #undef DIRBLKSIZ macro
76 #define DIRBLKSIZ DEV_BSIZE macro
H A Dufs_extattr.c501 dirbuf = kmem_alloc(DIRBLKSIZ, KM_SLEEP);
518 auio.uio_resid = DIRBLKSIZ;
520 aiov.iov_len = DIRBLKSIZ;
529 * XXXRW: While in UFS, we always get DIRBLKSIZ returns from
534 edp = (struct dirent *)&dirbuf[DIRBLKSIZ];
573 kmem_free(dirbuf, DIRBLKSIZ);
/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/
H A Ddir.c60 .dot_reclen = DIRBLKSIZ,
69 .dotdot_reclen = DIRBLKSIZ - 12,
80 .dotdot_reclen = DIRBLKSIZ - 12,
138 char dbuf[DIRBLKSIZ];
144 (idesc->id_filesize & (DIRBLKSIZ - 1)) != 0)
145 idesc->id_filesize = roundup(idesc->id_filesize, DIRBLKSIZ);
184 if (idesc->id_loc % DIRBLKSIZ == 0 && idesc->id_filesize > 0 &&
195 dp->d_reclen = DIRBLKSIZ;
204 idesc->id_loc += DIRBLKSIZ;
205 idesc->id_filesize -= DIRBLKSIZ;
[all...]
H A Dpass2.c136 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ);
143 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) {
147 pathbuf, (unsigned long) inp->i_isize, DIRBLKSIZ);
150 inp->i_isize = roundup(inp->i_isize, DIRBLKSIZ);
/netbsd-6-1-5-RELEASE/sbin/restore/
H A Ddirs.c98 #undef DIRBLKSIZ macro
99 #define DIRBLKSIZ 1024 macro
104 char dd_buf[DIRBLKSIZ];
372 i = DIRBLKSIZ - (loc & (DIRBLKSIZ - 1));
406 char dirbuf[DIRBLKSIZ];
417 if (dirloc + dp->d_reclen > DIRBLKSIZ) {
419 DIRBLKSIZ - prev;
420 (void) fwrite(dirbuf, 1, DIRBLKSIZ, df);
434 ((struct direct *)(dirbuf + prev))->d_reclen = DIRBLKSIZ
[all...]
/netbsd-6-1-5-RELEASE/regress/sys/fs/getdents/
H A Dgetdents.c77 char u_buf[DIRBLKSIZ];
124 p->sz = ret = getdents(fd, p->u.u_buf, DIRBLKSIZ);
153 p->sz = ret = getdents(fd, p->u.u_buf, DIRBLKSIZ);
174 char buf[DIRBLKSIZ];
185 ret = getdents(fd, buf, DIRBLKSIZ);
/netbsd-6-1-5-RELEASE/sys/arch/ia64/stand/efi/libefi/
H A Defifs_ls.c133 char dirbuf[DIRBLKSIZ];
174 while ((size = read(fd, dirbuf, DIRBLKSIZ)) == DIRBLKSIZ) {
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dinitdir.c63 * If the machine's page size is an exact multiple of DIRBLKSIZ,
68 if (((pagesz = getpagesize()) % DIRBLKSIZ) == 0)
71 incr = DIRBLKSIZ;
108 * Always make at least DIRBLKSIZ bytes
111 if (space < DIRBLKSIZ) {
/netbsd-6-1-5-RELEASE/distrib/utils/libhack/
H A Dopendir.c82 dirp->dd_len = DIRBLKSIZ;
/netbsd-6-1-5-RELEASE/include/
H A Ddirent.h55 #define DIRBLKSIZ 1024 macro
/netbsd-6-1-5-RELEASE/sbin/newfs_lfs/
H A Dmake_lfs.c280 * entries in protodir fir in the first DIRBLKSIZ.
288 spcleft = DIRBLKSIZ;
682 make_dinode(ROOTINO, dip, howmany(DIRBLKSIZ,fs->lfs_fsize), fs);
684 VTOI(vp)->i_lfs_osize = dip->di_size = DIRBLKSIZ;
691 btofsb(fs, roundup(DIRBLKSIZ,fs->lfs_fsize));
692 for (i = 0; i < NDADDR && i < howmany(DIRBLKSIZ, fs->lfs_bsize); i++)
694 if (DIRBLKSIZ < fs->lfs_bsize)
696 roundup(DIRBLKSIZ,fs->lfs_fsize);
706 make_dinode(LOSTFOUNDINO, dip, howmany(DIRBLKSIZ,fs->lfs_fsize), fs);
708 VTOI(vp)->i_lfs_osize = dip->di_size = DIRBLKSIZ;
[all...]
/netbsd-6-1-5-RELEASE/tests/fs/hfs/
H A Dt_pathconvert.c38 char buf[DIRBLKSIZ];
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/
H A Ddir.c62 .dot_reclen = DIRBLKSIZ,
71 .dotdot_reclen = DIRBLKSIZ - 12,
82 .dotdot_reclen = DIRBLKSIZ - 12,
157 #if DIRBLKSIZ > APPLEUFS_DIRBLKSIZ
158 char dbuf[DIRBLKSIZ];
706 #if DIRBLKSIZ > APPLEUFS_DIRBLKSIZ
707 char firstblk[DIRBLKSIZ];
H A Dsetup.c537 dirblksiz = DIRBLKSIZ;
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/
H A Dffs.c573 if (this + curdirsize > roundup(curdirsize, DIRBLKSIZ)) \
574 curdirsize = roundup(curdirsize, DIRBLKSIZ); \
1017 if (reclen + dbuf->cur + llen > roundup(dbuf->size, DIRBLKSIZ)) {
1020 dbuf->size + DIRBLKSIZ);
1021 if ((newbuf = realloc(dbuf->buf, dbuf->size + DIRBLKSIZ)) == NULL)
1024 dbuf->size += DIRBLKSIZ;
1025 memset(dbuf->buf + dbuf->size - DIRBLKSIZ, 0, DIRBLKSIZ);
1026 dbuf->cur = dbuf->size - DIRBLKSIZ;
/netbsd-6-1-5-RELEASE/sys/arch/acorn32/stand/nbfs/
H A Dnbfs.c344 char dirbuf[DIRBLKSIZ];
357 while (FS_READ(f.f_ops)(&f, dirbuf, DIRBLKSIZ, &resid) == 0 &&
362 edp = (struct direct *) (dirbuf + DIRBLKSIZ);
/netbsd-6-1-5-RELEASE/sbin/fsck_ext2fs/
H A Ddir.c87 .dot_reclen = DIRBLKSIZ,
96 .dotdot_reclen = DIRBLKSIZ - 12,
101 #undef DIRBLKSIZ macro
/netbsd-6-1-5-RELEASE/sbin/newfs/
H A Dmkfs.c1011 { 0, DIRBLKSIZ, 0, 0, 0 },
1016 { 0, DIRBLKSIZ, 0, 0 },
1032 int dirblksiz = DIRBLKSIZ;
1260 int dirblksiz = DIRBLKSIZ;
1264 memset(buf, 0, DIRBLKSIZ);
/netbsd-6-1-5-RELEASE/usr.sbin/installboot/
H A Dffs.c62 #undef DIRBLKSIZ macro
/netbsd-6-1-5-RELEASE/sys/kern/
H A Dvfs_getcwd.c50 #include <ufs/ufs/dir.h> /* XXX only for DIRBLKSIZ */
157 dirbuflen = DIRBLKSIZ;
/netbsd-6-1-5-RELEASE/sys/lib/libsa/
H A Dufs.c898 if (buf_size < DIRBLKSIZ)
/netbsd-6-1-5-RELEASE/sys/ufs/ffs/
H A Dffs_vfsops.c729 ump->um_dirblksiz = DIRBLKSIZ;
1212 ump->um_dirblksiz = DIRBLKSIZ;
/netbsd-6-1-5-RELEASE/sys/ufs/lfs/
H A Dlfs_vfsops.c1030 ump->um_dirblksiz = DIRBLKSIZ;
H A Dlfs_vnops.c856 0, DIRBLKSIZ - 12, DT_DIR, 2, ".."

Completed in 323 milliseconds

12