/freebsd-current/sbin/fsdb/ |
H A D | fsdbutil.c | 116 switch (DIP(dp, di_mode) & IFMT) { 124 printf("block special (%#jx)", (uintmax_t)DIP(dp, di_rdev)); 127 printf("character special (%#jx)", DIP(dp, di_rdev)); 131 if (DIP(dp, di_size) > 0 && 132 DIP(dp, di_size) < sblock.fs_maxsymlinklen && 133 DIP(dp, di_blocks) == 0) { 134 printf(" to `%.*s'\n", (int) DIP(dp, di_size), 135 DIP(dp, di_shortlink)); 147 printf("I=%ju MODE=%o SIZE=%ju", (uintmax_t)inum, DIP(dp, di_mode), 148 (uintmax_t)DIP(d [all...] |
H A D | fsdb.c | 416 DIP_SET(curinode, di_nlink, DIP(curinode, di_nlink) + 1); 418 (uintmax_t)curinum, DIP(curinode, di_nlink)); 427 DIP_SET(curinode, di_nlink, DIP(curinode, di_nlink) - 1); 429 (uintmax_t)curinum, DIP(curinode, di_nlink)); 560 switch (DIP(curinode, di_mode) & IFMT) { 563 if (DIP(curinode, di_blocks) == 0) 568 uint64_t size = DIP(curinode, di_size); 570 DIP(curinode, di_blocks) == 0) 944 type = DIP(curinode, di_mode) & IFMT; 959 DIP_SET(curinode, di_mode, DIP(curinod [all...] |
/freebsd-current/sbin/fsck_ffs/ |
H A D | pass1.c | 260 mode = DIP(dp, di_mode) & IFMT; 287 if (chkfilesize(mode, DIP(dp, di_size)) == 0) { 300 mode == IFSOCK) && DIP(dp, di_size) != 0) { 303 (uintmax_t)DIP(dp, di_size)); 308 (dev_t)DIP(dp, di_rdev) == NODEV) { 314 ndb = howmany(DIP(dp, di_size), sblock.fs_bsize); 318 (uintmax_t)DIP(dp, di_size), (uintmax_t)ndb); 329 if (DIP(dp, di_size) < (off_t)sblock.fs_maxsymlinklen) { 331 ndb = howmany(DIP(dp, di_size), 334 ndb = howmany(DIP(d [all...] |
H A D | inode.c | 75 idesc->id_filesize = DIP(dp, di_size); 76 mode = DIP(dp, di_mode) & IFMT; 78 DIP(dp, di_size) < (unsigned)sblock.fs_maxsymlinklen)) 84 if (DIP(&dino, di_size) < 0) { 85 pfatal("NEGATIVE INODE SIZE %jd\n", DIP(&dino, di_size)); 88 ndb = howmany(DIP(&dino, di_size), sblock.fs_bsize); 92 (offset = blkoff(&sblock, DIP(&dino, di_size))) != 0) 97 if (DIP(&dino, di_db[i]) == 0) { 118 idesc->id_blkno = DIP(&dino, di_db[i]); 127 remsize = DIP( [all...] |
H A D | dir.c | 177 cmd.size = (int64_t)inp->i_depth - DIP(dp, di_dirdepth); 443 (DIP(dp, di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", 459 if (DIP(dp, di_nlink) == lcnt) { 491 ((DIP(dp, di_mode) & IFMT) == IFDIR ? "DIR" : "FILE")); 494 DIP(dp, di_nlink), DIP(dp, di_nlink) - lcnt); 505 DIP_SET(dp, di_nlink, DIP(dp, di_nlink) - lcnt); 576 lostdir = (DIP(dp, di_mode) & IFMT) == IFDIR; 580 if (preen && DIP(dp, di_size) == 0) { 630 if ((DIP(d [all...] |
H A D | suj.c | 538 if (DIP(dp, di_nlink) == 0 || DIP(dp, di_mode) == 0) { 573 blksize = sblksize(fs, DIP(dip, di_size), lbn); 612 *mode = DIP(dip, di_mode); 631 blksize = sblksize(fs, DIP(dip, di_size), lbn); 632 if (diroff + DIRECTSIZ(1) > DIP(dip, di_size) || doff >= blksize) { 637 DIP(dip, di_size)); 777 size = DIP(dp, di_size); 778 mode = DIP(dp, di_mode) & IFMT; 796 if (DIP(d [all...] |
H A D | pass4.c | 100 if (DIP(ip.i_dp, di_size) == 0) {
|
H A D | setup.c | 188 if ((DIP(ip.i_dp, di_mode) & IFMT) == IFREG && 189 (DIP(ip.i_dp, di_flags) & SF_SNAPSHOT) != 0 && 293 DIP(snapip->i_dp, di_size) - lblktosize(fs, lbn));
|
H A D | pass2.c | 109 DIP_SET(dp, di_mode, DIP(dp, di_mode) & ~IFMT); 110 DIP_SET(dp, di_mode, DIP(dp, di_mode) | IFDIR); 532 (DIP(dp, di_mode) & IFMT) == IFDIR ? DSTATE : FSTATE; 533 inoinfo(dirp->d_ino)->ino_linkcnt = DIP(dp, di_nlink);
|
H A D | fsck.h | 82 #define DIP(dp, field) \ macro
|
H A D | fsutil.c | 98 switch (DIP(dp, di_mode) & IFMT) { 111 printf("bad file type 0%o\n", DIP(dp, di_mode));
|
/freebsd-current/sbin/dump/ |
H A D | traverse.c | 58 #define DIP(dp, field) \ macro 110 if ((DIP(dp, di_flags) & SF_SNAPSHOT) != 0) 112 blkest = howmany(dbtob(DIP(dp, di_blocks)), TP_BSIZE); 113 sizeest = howmany(DIP(dp, di_size), TP_BSIZE); 116 if (DIP(dp, di_size) > sblock->fs_bsize * UFS_NDADDR) { 126 (DIP(dp, di_mtime) >= (t) || DIP(dp, di_ctime) >= (t)) 132 (nonodump || (DIP(dp, di_flags) & UF_NODUMP) != UF_NODUMP)) 219 (DIP(dp, di_flags) & UF_NODUMP)) 280 filesize = DIP( [all...] |
/freebsd-current/stand/libsa/ |
H A D | ufs.c | 130 #define DIP(fp, field) \ macro 251 *disk_block_p = DIP(fp, di_db[file_block]); 273 ind_block_num = DIP(fp, di_ib[level]); 334 block_size = sblksize(fs, DIP(fp, di_size), file_block); 348 if (*size_p > DIP(fp, di_size) - fp->f_seekp) 349 *size_p = DIP(fp, di_size) - fp->f_seekp; 406 block_size = sblksize(fs, DIP(fp, di_size), file_block); 442 if (*size_p > DIP(fp, di_size) - fp->f_seekp) 443 *size_p = DIP(fp, di_size) - fp->f_seekp; 466 while (fp->f_seekp < DIP(f [all...] |
H A D | ufsread.c | 157 #define DIP(field) dp2.field macro 159 #define DIP(field) dp1.field macro 161 #define DIP(field) fs.fs_magic == FS_UFS1_MAGIC ? dp1.field : dp2.field macro 253 size = DIP(di_size); 262 addr2 = DIP(di_db[lbn]); 265 addr2 = DIP(di_ib[0]);
|
/freebsd-current/sys/ufs/ufs/ |
H A D | ufs_bmap.c | 195 *bnp = blkptrtodb(ump, DIP(ip, i_db[bn])); 218 if (IS_SNAPSHOT(ip) && DIP(ip, i_db[bn]) > 0 && 219 DIP(ip, i_db[bn]) < ump->um_seqinc) { 227 is_sequential(ump, DIP(ip, i_db[bn - 1]), 228 DIP(ip, i_db[bn])); 233 is_sequential(ump, DIP(ip, i_db[bn]), 234 DIP(ip, i_db[bn+1])); 242 daddr = DIP(ip, i_ib[ap->in_off]); 379 daddr = DIP(ip, i_db[bn]); 391 daddr = DIP(i [all...] |
H A D | inode.h | 234 * The DIP macro is used to access fields in the dinode that are 237 #define DIP(ip, field) (I_IS_UFS1(ip) ? (ip)->i_din1->d##field : \ macro
|
H A D | ufs_vnops.c | 179 DIP_SET(ip, i_modrev, DIP(ip, i_modrev) + 1); 326 vnode_create_vobject(vp, DIP(ip, i_size), ap->a_td); 956 change = DIP(ip, i_blocks); 1712 DIP_SET(fip, i_dirdepth, DIP(tdp, i_dirdepth) + 1); 2124 DIP_SET(ip, i_dirdepth, DIP(dp,i_dirdepth) + 1); 2376 bcopy(ap->a_target, DIP(ip, i_shortlink), len); 2548 return (uiomove(DIP(ip, i_shortlink), isize, ap->a_uio));
|
/freebsd-current/usr.sbin/quot/ |
H A D | quot.c | 104 #define DIP(fs, dp, field) \ macro 162 #define actualblocks(fs, dp) (DIP(fs, dp, di_blocks) / 2) 164 #define actualblocks(fs, dp) DIP(fs, dp, di_blocks) 171 sz = DIP(super, dp, di_size); 203 return (DIP(super, dp, di_mode) & IFMT) == 0; 206 switch (DIP(super, dp, di_mode) & IFMT) { 219 errx(1, "unknown IFMT 0%o", DIP(super, dp, di_mode) & IFMT); 389 && ((DIP(super, dp, di_mode) & IFMT) == IFREG 390 || (DIP(super, dp, di_mode) & IFMT) == IFDIR) 456 uses(DIP(supe [all...] |
/freebsd-current/usr.sbin/makefs/ffs/ |
H A D | ufs_inode.h | 93 #undef DIP macro 94 #define DIP(ip, field) \ macro
|
/freebsd-current/sbin/quotacheck/ |
H A D | quotacheck.c | 84 #define DIP(dp, field) \ macro 360 (mode = DIP(dp, di_mode) & IFMT) == 0) 367 if ((int)DIP(dp, di_uid) < 0 || 368 (int)DIP(dp, di_gid) < 0) { 373 DIP(dp, di_uid), DIP(dp,di_gid), 385 if (DIP(dp, di_flags) & SF_SNAPSHOT) 392 fup = addid((u_long)DIP(dp, di_gid), GRPQUOTA, 397 fup->fu_curblocks += DIP(dp, di_blocks); 400 fup = addid((u_long)DIP(d [all...] |
/freebsd-current/sys/ufs/ffs/ |
H A D | ffs_inode.c | 340 bzero(DIP(ip, i_shortlink), (uint64_t)ip->i_size); 389 blkno = DIP(ip, i_db[lbn]); 528 oldblks[UFS_NDADDR + level] = DIP(ip, i_ib[level]); 535 oldblks[i] = DIP(ip, i_db[i]); 550 newblks[i] = DIP(ip, i_db[i]); 556 newblks[UFS_NDADDR + i] = DIP(ip, i_ib[i]); 575 bn = DIP(ip, i_ib[level]); 601 bn = DIP(ip, i_db[i]); 618 bn = DIP(ip, i_db[lastblock]); 649 if (newblks[UFS_NDADDR + level] != DIP(i [all...] |
H A D | ffs_snapshot.c | 596 DIP(xp, i_db[loc]), len, xp->i_number, 598 blkno = DIP(xp, i_db[loc]); 647 if (DIP(ip, i_db[blockno]) != 0) 952 else if (passno == 2 && DIP(ip, i_db[loc])== BLK_NOCOPY) 954 else if (passno == 1 && DIP(ip, i_db[loc])== BLK_NOCOPY) 1672 dblk = DIP(ip, i_db[blkno]); 1680 DIP_SET(ip, i_blocks, DIP(ip, i_blocks) - 1744 (void) chkdq(ip, DIP(ip, i_blocks), KERNCRED, FORCE); 1809 blkno = DIP(ip, i_db[lbn]); 1898 DIP_SET(ip, i_blocks, DIP(i [all...] |
H A D | ffs_alloc.c | 204 DIP_SET(ip, i_blocks, DIP(ip, i_blocks) + delta); 339 DIP_SET(ip, i_blocks, DIP(ip, i_blocks) + delta); 423 DIP_SET(ip, i_blocks, DIP(ip, i_blocks) + delta); 1176 if (DIP(ip, i_blocks) && (fs->fs_flags & FS_UNCLEAN) == 0) { /* XXX */ 1178 fs->fs_fsmnt, (intmax_t)ino, (long)DIP(ip, i_blocks)); 1184 DIP_SET(ip, i_dirdepth, DIP(pip, i_dirdepth) + 1); 1275 depth = DIP(pip, i_dirdepth); 3353 DIP_SET(ip, i_blocks, DIP(ip, i_blocks) + cmd.size); 3375 DIP_SET(ip, i_dirdepth, DIP(ip, i_dirdepth) + cmd.size);
|
/freebsd-current/usr.sbin/makefs/ |
H A D | ffs.c | 106 #undef DIP macro 107 #define DIP(dp, field) \ macro 923 isfile = S_ISREG(DIP(din, mode)); 934 ino, din, isfile, inode_type(DIP(din, mode) & S_IFMT), 935 (long long)DIP(din, size)); 943 in.i_size = DIP(din, size); 951 if (DIP(din, size) == 0) 964 for (bufleft = DIP(din, size); bufleft > 0; bufleft -= chunk) { 979 offset = DIP(din, size) - bufleft; 998 inode_type(DIP(di [all...] |
/freebsd-current/sys/dev/sym/ |
H A D | sym_defs.h | 355 #define DIP 0x01 /* sta: host/script interrupt */ macro
|