Home
last modified time | relevance | path

Searched refs:e2di_mode (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/sbin/fsck_ext2fs/
H A Dinode.c143 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()
H A Dpass2.c131 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()
H A Dpass1.c169 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()
H A Ddir.c313 (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()
H A Dutilities.c91 switch (fs2h16(dp->e2di_mode) & IFMT) { in ftypeok()
104 printf("bad file type 0%o\n", fs2h16(dp->e2di_mode)); in ftypeok()
/netbsd-src/sys/ufs/ext2fs/
H A Dext2fs_bswap.c92 new->e2di_mode = bswap16(old->e2di_mode); in e2fs_i_bswap()
H A Dext2fs_dinode.h111 uint16_t e2di_mode; /* 0: IFMT, permissions; see below. */ member
146 #define i_e2fs_mode i_din.e2fs_din->e2di_mode
/netbsd-src/sbin/newfs_ext2fs/
H A Dmke2fs.c943 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()
/netbsd-src/sys/lib/libsa/
H A Dext2fs.c583 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()
/netbsd-src/usr.sbin/pstat/
H A Dpstat.c544 type = dip.e2di_mode & S_IFMT; in ext2fs_print()
545 if (S_ISCHR(dip.e2di_mode) || S_ISBLK(dip.e2di_mode)) { in ext2fs_print()
/netbsd-src/usr.bin/fstat/
H A Dfstat.c821 fsp->mode = dinode.e2di_mode; in ext2fs_filestat()