Searched refs:e2di_mode (Results 1 – 11 of 11) sorted by relevance
143 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) in inosize()153 if ((fs2h16(dp->e2di_mode) & IFMT) == IFREG) { in inossize()160 (unsigned long long)size, fs2h16(dp->e2di_mode) & IFMT); in inossize()180 mode = fs2h16(dp->e2di_mode) & IFMT; in ckinode()581 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE"); in clri()652 printf("MODE=%o\n", fs2h16(dp->e2di_mode)); in pinode()724 dp->e2di_mode = h2fs16(type); in allocino()
131 dp->e2di_mode = h2fs16((fs2h16(dp->e2di_mode) & ~IFMT) | IFDIR); in pass2()180 dino.e2di_mode = h2fs16(IFDIR); in pass2()409 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? DSTATE : FSTATE; in pass2check()
169 mode = fs2h16(dp->e2di_mode) & IFMT; in checkinode()174 dp->e2di_mode || inosize(dp))) { in checkinode()223 dp->e2di_mode = h2fs16(IFREG|0600); in checkinode()
313 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); in fileerror()329 ((fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE")); in adjust()406 lostdir = (fs2h16(dp->e2di_mode) & IFMT) == IFDIR; in linkup()448 if ((fs2h16(dp->e2di_mode) & IFMT) != IFDIR) { in linkup()
91 switch (fs2h16(dp->e2di_mode) & IFMT) { in ftypeok()104 printf("bad file type 0%o\n", fs2h16(dp->e2di_mode)); in ftypeok()
92 new->e2di_mode = bswap16(old->e2di_mode); in e2fs_i_bswap()
111 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */ member146 #define i_e2fs_mode i_din.e2fs_din->e2di_mode
943 node.e2di_mode = EXT2_IFDIR | EXT2_LOSTFOUNDUMASK; in fsinit() 953 node.e2di_blocks[0] = alloc(sblock.e2fs_bsize, node.e2di_mode); in fsinit() 990 node.e2di_mode = EXT2_IFDIR | EXT2_UMASK; in fsinit() 1000 node.e2di_blocks[0] = alloc(node.e2di_size, node.e2di_mode); in fsinit() 1085 node.e2di_mode = EXT2_IFREG | EXT2_RESIZEINOUMASK; in init_resizeino() 1157 alloc(sblock.e2fs_bsize, node.e2di_mode); in init_resizeino() 1376 if ((ip->e2di_mode & EXT2_IFMT) != EXT2_IFLNK) { in iput()
583 if ((fp->f_di.e2di_mode & EXT2_IFMT) != EXT2_IFDIR) { in ext2fs_open()617 if ((fp->f_di.e2di_mode & EXT2_IFMT) == EXT2_IFLNK) { in ext2fs_open()799 sb->st_mode = fp->f_di.e2di_mode; in ext2fs_stat()936 new->e2di_mode = bswap16(old->e2di_mode); in e2fs_i_bswap()
544 type = dip.e2di_mode & S_IFMT; in ext2fs_print()545 if (S_ISCHR(dip.e2di_mode) || S_ISBLK(dip.e2di_mode)) { in ext2fs_print()
821 fsp->mode = dinode.e2di_mode; in ext2fs_filestat()