Home
last modified time | relevance | path

Searched refs:dp2 (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/usr.bin/diff/
H A Ddiffdir.c51 struct dirent *dent2, **dp2, **edp2, **dirp2 = NULL; in diffdir() local
104 dp2 = dirp2; in diffdir()
113 while (dp2 != edp2 && strcmp((*dp2)->d_name, start) < 0) in diffdir()
114 dp2++; in diffdir()
120 while (dp1 != edp1 || dp2 != edp2) { in diffdir()
122 dent2 = dp2 != edp2 ? *dp2 : NULL; in diffdir()
131 dp2++; in diffdir()
151 dp2 in diffdir()
172 diffit(struct dirent * dp,char * path1,size_t plen1,struct dirent * dp2,char * path2,size_t plen2,int flags) diffit() argument
[all...]
/freebsd/usr.sbin/lpr/chkprintcap/
H A Dchkprintcap.c228 struct dirlist *dp, *dp2, *last; in note_spool_dir() local
243 LIST_FOREACH(dp2, &dirlist, link) { in note_spool_dir()
244 if(!lessp(dp, dp2)) in note_spool_dir()
246 last = dp2; in note_spool_dir()
259 struct dirlist *dp, *dp2; in check_spool_dirs() local
261 for (dp = LIST_FIRST(&dirlist); dp; dp = dp2) { in check_spool_dirs()
262 dp2 = LIST_NEXT(dp, link); in check_spool_dirs()
264 if (dp2 != NULL && equal(dp, dp2)) { in check_spool_dirs()
266 if (strcmp(dp->path, dp2->path) == 0) { in check_spool_dirs()
268 dp->printer, dp2->printer, dp->path); in check_spool_dirs()
[all …]
/freebsd/sbin/tunefs/
H A Dtunefs.c677 if ((off_t)dp.dp2->di_size >= lblktosize(&sblock, UFS_NDADDR)) { in journal_findfile()
682 if (dp.dp2->di_db[i] == 0) in journal_findfile()
684 if ((ino = dir_search(dp.dp2->di_db[i], in journal_findfile()
685 sblksize(&sblock, (off_t)dp.dp2->di_size, i))) != 0) in journal_findfile()
796 lbn = lblkno(&sblock, dp.dp2->di_size); in journal_insertfile()
797 off = blkoff(&sblock, dp.dp2->di_size); in journal_insertfile()
798 blk = dp.dp2->di_db[lbn]; in journal_insertfile()
799 size = sblksize(&sblock, (off_t)dp.dp2->di_size, lbn); in journal_insertfile()
814 dp.dp2->di_blocks += (sblock.fs_bsize - size) / DEV_BSIZE; in journal_insertfile()
815 dp.dp2->di_db[lbn] = nblk; in journal_insertfile()
[all …]
/freebsd/sbin/dump/
H A Dtraverse.c56 struct ufs2_dinode dp2; member
60 (dp)->dp1.field : (dp)->dp2.field)
65 (dp)->dp2.field = (val); \
279 di.dp2 = dp->dp2; in mapdirs()
486 spcl.c_mode = dp->dp2.di_mode; in dumpino()
487 spcl.c_size = dp->dp2.di_size; in dumpino()
488 spcl.c_extsize = dp->dp2.di_extsize; in dumpino()
489 spcl.c_atime = _time64_to_time(dp->dp2.di_atime); in dumpino()
490 spcl.c_atimensec = dp->dp2.di_atimensec; in dumpino()
491 spcl.c_mtime = _time64_to_time(dp->dp2.di_mtime); in dumpino()
[all …]
/freebsd/sbin/fsirand/
H A Dfsirand.c104 struct ufs2_dinode *dp2; in fsirand() local
119 dp2 = NULL; in fsirand()
190 dp2 = (struct ufs2_dinode *)(void *)inodebuf; in fsirand()
198 dp1->di_gen : dp2->di_gen); in fsirand()
203 dp2->di_gen = arc4random(); in fsirand()
204 ffs_update_dinode_ckhash(sblock, dp2); in fsirand()
205 dp2++; in fsirand()
/freebsd/sbin/fsck_ffs/
H A Dgjournal.c118 if (!S_ISREG(dp->dp2.di_mode) && in gjournal_check()
119 !S_ISDIR(dp->dp2.di_mode)) { in gjournal_check()
124 if (dp->dp2.di_nlink > 0) { in gjournal_check()
144 dp->dp2 = zino.dp2; in gjournal_check()
H A Dpass1.c269 (memcmp(dp->dp2.di_db, zino.dp2.di_db, in checkinode()
271 memcmp(dp->dp2.di_ib, zino.dp2.di_ib, in checkinode()
273 dp->dp2.di_mode || dp->dp2.di_size))) { in checkinode()
405 if (sblock.fs_magic == FS_UFS2_MAGIC && dp->dp2.di_extsize > 0) { in checkinode()
406 ndb = howmany(dp->dp2.di_extsize, sblock.fs_bsize); in checkinode()
409 (offset = blkoff(&sblock, dp->dp2.di_extsize)) != 0) in checkinode()
414 if (dp->dp2.di_extb[j] == 0) in checkinode()
416 idesc->id_blkno = dp->dp2.di_extb[j]; in checkinode()
423 eascan(idesc, &dp->dp2); in checkinode()
H A Dinode.c83 dino.dp2 = dp->dp2; in ckinode()
274 if (lbn > lblkno(&sblock, dp->dp2.di_extsize - 1)) in ino_blkatoff()
277 sblksize(&sblock, dp->dp2.di_extsize, lbn)); in ino_blkatoff()
278 return (dp->dp2.di_extb[lbn]); in ino_blkatoff()
582 if (memcmp(dp->dp2.di_db, zino.dp2.di_db, in getnextinode()
584 memcmp(dp->dp2.di_ib, zino.dp2.di_ib, in getnextinode()
586 dp->dp2.di_mode || dp->dp2.di_size) in getnextinode()
1042 if (sblock.fs_magic == FS_UFS2_MAGIC && dp->dp2.di_extsize > 0) { in check_blkcnt()
1043 ndb = howmany(dp->dp2.di_extsize, sblock.fs_bsize); in check_blkcnt()
1046 (offset = blkoff(&sblock, dp->dp2.di_extsize)) != 0) in check_blkcnt()
[all …]
H A Dfsck.h80 struct ufs2_dinode dp2; member
84 (dp)->dp1.field : (dp)->dp2.field)
90 (dp)->dp2.field = (val); \
393 (dp)->dp2 = zino.dp2; \
H A Dglobs.c158 bzero(&zino.dp2, sizeof(struct ufs2_dinode)); in fsckinit()
/freebsd/sbin/clri/
H A Dclri.c98 generation = dp.dp2->di_gen + 1; in main()
99 memset(dp.dp2, 0, sizeof(*dp.dp2)); in main()
100 dp.dp2->di_gen = generation; in main()
/freebsd/sbin/newfs/
H A Dmkfs.c94 struct ufs2_dinode dp2; member
98 (dp)->dp1.field : (dp)->dp2.field)
710 struct ufs2_dinode *dp2; in initcg() local
853 dp2 = (struct ufs2_dinode *)(&iobuf[start]); in initcg()
859 dp2->di_gen = newfs_random(); in initcg()
860 dp2++; in initcg()
956 node.dp2.di_atime = utime; in fsinit()
957 node.dp2.di_mtime = utime; in fsinit()
958 node.dp2.di_ctime = utime; in fsinit()
959 node.dp2.di_birthtime = utime; in fsinit()
[all …]
/freebsd/stand/libsa/
H A Dufsread.c157 #define DIP(field) dp2.field
161 #define DIP(field) fs.fs_magic == FS_UFS1_MAGIC ? dp1.field : dp2.field
172 static struct ufs2_dinode dp2; in fsread_size() local
238 memcpy(&dp2, (struct ufs2_dinode *)(void *)blkbuf + n, in fsread_size()
239 sizeof(dp2)); in fsread_size()
245 memcpy(&dp2, (struct ufs2_dinode *)(void *)blkbuf + n, in fsread_size()
246 sizeof(dp2)); in fsread_size()
/freebsd/sbin/fsdb/
H A Dfsdbutil.c150 t = _time64_to_time(dp->dp2.di_birthtime); in printstat()
153 dp->dp2.di_birthnsec); in printstat()
158 t = _time64_to_time(dp->dp2.di_mtime); in printstat()
165 t = _time64_to_time(dp->dp2.di_ctime); in printstat()
172 t = _time64_to_time(dp->dp2.di_atime); in printstat()
H A Dfsdb.c580 find_blks64(curinode->dp2.di_db, UFS_NDADDR, wantedblk64) : in CMDFUNCSTART()
589 compare_blk64(wantedblk64, curinode->dp2.di_ib[i]) : in CMDFUNCSTART()
591 if (founddatablk(is_ufs2 ? curinode->dp2.di_ib[i] : in CMDFUNCSTART()
598 if (is_ufs2 ? (curinode->dp2.di_ib[i] != 0) : in CMDFUNCSTART()
601 find_indirblks64(curinode->dp2.di_ib[i], i, in CMDFUNCSTART()
1227 curinode->dp2.di_birthtime = _time_to_time64(secs); in CMDFUNCSTART()
1228 curinode->dp2.di_birthnsec = nsecs; in CMDFUNCSTART()
1244 curinode->dp2.di_mtime = _time_to_time64(secs); in CMDFUNCSTART()
1261 curinode->dp2.di_atime = _time_to_time64(secs); in CMDFUNCSTART()
1278 curinode->dp2.di_ctime = _time_to_time64(secs); in CMDFUNCSTART()
/freebsd/lib/libufs/
H A Dinode.c81 disk->d_dp.dp2 = &((struct ufs2_dinode *)inoblock)[inum - min]; in getinode()
84 if (ffs_verify_dinode_ckhash(fs, disk->d_dp.dp2) == 0) in getinode()
102 ffs_update_dinode_ckhash(fs, disk->d_dp.dp2); in putinode()
H A Dcgroup.c139 struct ufs2_dinode *dp2; in cgialloc() local
159 dp2 = (struct ufs2_dinode *)&block; in cgialloc()
161 dp2->di_gen = arc4random(); in cgialloc()
162 dp2++; in cgialloc()
H A Dlibufs.h45 struct ufs2_dinode *dp2; member
/freebsd/tools/diag/prtblknos/
H A Dprtblknos.c38 struct ufs2_dinode dp2; member
65 size = dp->dp2.di_size; in prtblknos()
66 mode = dp->dp2.di_mode; in prtblknos()
99 dp->dp2.di_shortlink); in prtblknos()
130 blkno = dp->dp2.di_db[i]; in prtblknos()
141 blkno = dp->dp2.di_ib[i]; in prtblknos()
H A Dmain.c37 struct ufs2_dinode *dp2; member
/freebsd/sys/fs/nfsclient/
H A Dnfs_clsubs.c270 struct nfsdmap *dp, *dp2; in ncl_getcookie() local
298 dp2 = malloc(sizeof (struct nfsdmap), in ncl_getcookie()
300 dp2->ndm_eocookie = 0; in ncl_getcookie()
301 LIST_INSERT_AFTER(dp, dp2, ndm_list); in ncl_getcookie()
302 dp = dp2; in ncl_getcookie()
H A Dnfs_clnode.c282 struct nfsdmap *dp, *dp2; in ncl_reclaim() local
341 dp2 = dp; in ncl_reclaim()
343 free(dp2, M_NFSDIROFF); in ncl_reclaim()
/freebsd/sbin/ffsinfo/
H A Dffsinfo.c504 if (dp.dp2->di_nlink == 0) { in dump_whole_ufs2_inode()
514 DBG_DUMP_INO(&sblock, comment, dp.dp2); in dump_whole_ufs2_inode()
525 rb = howmany(dp.dp2->di_size, sblock.fs_bsize) - UFS_NDADDR; in dump_whole_ufs2_inode()
530 if (bread(&disk, fsbtodb(&sblock, dp.dp2->di_ib[0]), in dump_whole_ufs2_inode()
543 if (bread(&disk, fsbtodb(&sblock, dp.dp2->di_ib[1]), in dump_whole_ufs2_inode()
572 if (bread(&disk, fsbtodb(&sblock, dp.dp2->di_ib[2]), in dump_whole_ufs2_inode()
/freebsd/usr.sbin/makefs/ffs/
H A Dmkfs.c629 struct ufs2_dinode *dp2; in initcg() local
775 dp2 = (struct ufs2_dinode *)(&iobuf[start]); in initcg()
782 dp2->di_gen = random(); in initcg()
783 dp2++; in initcg()
/freebsd/usr.sbin/makefs/
H A Dffs.c1100 struct ufs2_dinode *dp2, *dip; in ffs_write_inode()
1132 dp2 = (struct ufs2_dinode *)buf; in ffs_write_inode()
1183 &dp2[ino_to_fsbo(fs, ino)]); in ffs_write_inode()
1188 dp2[ino_to_fsbo(fs, ino)] = dp->ffs2_din; in ffs_write_inode()
1097 struct ufs2_dinode *dp2, *dip; ffs_write_inode() local

12