/freebsd/sys/ufs/ufs/ |
H A D | ufs_inode.c | 77 if (ip->i_mode == 0 || ip->i_nlink <= 0 || in ufs_need_inactive() 117 if (ip->i_mode == 0) in ufs_inactive() 164 if (ip->i_nlink <= 0 && ip->i_mode != 0 && !UFS_RDONLY(ip) && in ufs_inactive() 180 mode = ip->i_mode; in ufs_inactive() 181 ip->i_mode = 0; in ufs_inactive() 182 DIP_SET(ip, i_mode, 0); in ufs_inactive() 206 if (ip->i_mode == 0 && (vp->v_iflag & VI_OWEINACT) == 0) in ufs_inactive()
|
H A D | ufs_acl.c | 85 ACL_USER_OBJ, ip->i_mode); in ufs_sync_acl_from_inode() 96 ACL_OTHER, ip->i_mode); in ufs_sync_acl_from_inode() 122 ACL_GROUP_OBJ, ip->i_mode); in ufs_sync_acl_from_inode() 128 ip->i_mode); in ufs_sync_acl_from_inode() 142 newmode = ip->i_mode & ACL_PRESERVE_MASK; in ufs_sync_inode_from_acl() 145 DIP_SET(ip, i_mode, ip->i_mode); in ufs_sync_inode_from_acl() 172 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid); in ufs_getacl_nfs4_internal() 410 mode = ip->i_mode; in ufs_setacl_nfs4_internal() 414 newmode = ip->i_mode & ACL_PRESERVE_MASK; in ufs_setacl_nfs4_internal() 417 DIP_SET(ip, i_mode, ip->i_mode); in ufs_setacl_nfs4_internal()
|
H A D | ufs_vnops.c | 457 error = vaccess(vp->v_type, ip->i_mode, in ufs_accessx() 467 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid, in ufs_accessx() 504 mode = atomic_load_short(&ip->i_mode); in ufs_fplookup_vexec() 538 sb->st_mode = (ip->i_mode & ~IFMT) | VTTOIF(vp->v_type); in ufs_stat() 599 vap->va_mode = ip->i_mode & ~IFMT; in ufs_getattr() 627 vap->va_type = IFTOVT(ip->i_mode); in ufs_getattr() 892 newmode = ip->i_mode & ~ALLPERMS; in ufs_chmod() 895 DIP_SET(ip, i_mode, ip->i_mode); in ufs_chmod() 1012 if ((ip->i_mode & (ISUID | ISGID)) && (ouid != uid || ogid != gid)) { in ufs_chown() 1014 UFS_INODE_SET_MODE(ip, ip->i_mode & ~(ISUID | ISGID)); in ufs_chown() [all …]
|
H A D | inode.h | 135 uint16_t i_mode; /* IFMT, permissions; see below. */ member 177 atomic_store_short(&(_ip)->i_mode, _mode); \
|
H A D | ufs_lookup.c | 122 if ((VTOI(vdp)->i_mode & ISVTX) && in ufs_delete_denied() 735 if (error == 0 && VTOI(tdp)->i_mode == 0) { in ufs_lookup_ino() 828 newdirp->d_type = IFTODT(ip->i_mode); in ufs_makedirentry() 1469 MPASS((ip->i_mode & IFMT) == IFDIR); in ufs_assert_inode_offset_owner() 1492 MPASS((ip->i_mode & IFMT) == IFDIR); in ufs_set_inode_offset_owner()
|
/freebsd/sys/amd64/amd64/ |
H A D | db_disasm.c | 110 int i_mode; /* addressing modes */ member 1239 int i_mode; in db_disasm() local 1340 i_mode = ip->i_mode; in db_disasm() 1346 i_mode = ip->i_mode; in db_disasm() 1358 i_mode = ip->i_mode; in db_disasm() 1364 i_mode = ip->i_mode; in db_disasm() 1374 i_mode = 0; in db_disasm() 1379 i_mode = 0; in db_disasm() 1384 i_mode = 0; in db_disasm() 1389 i_mode = 0; in db_disasm() [all …]
|
/freebsd/lib/libstdbuf/ |
H A D | stdbuf.c | 103 char *i_mode, *o_mode, *e_mode; in stdbuf() local 105 i_mode = getenv("_STDBUF_I"); in stdbuf() 111 if (i_mode != NULL) in stdbuf() 112 change_buf(stdin, i_mode); in stdbuf()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_inode_cnv.c | 62 "n/a", in->i_mode, in->i_flags, in->i_gen, in->i_facl); in ext2_print_inode() 166 ip->i_mode = ip->i_nlink ? le16toh(ei->e2di_mode) : 0; in ext2_ei2i() 168 (ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) { in ext2_ei2i() 185 if (S_ISREG(ip->i_mode)) in ext2_ei2i() 222 if (S_ISCHR(ip->i_mode) || S_ISBLK(ip->i_mode)) { in ext2_ei2i() 260 ei->e2di_mode = htole16(ip->i_mode); in ext2_i2ei() 263 if (S_ISREG(ip->i_mode)) in ext2_i2ei() 314 if (S_ISCHR(ip->i_mode) || S_ISBLK(ip->i_mode)) { in ext2_i2ei()
|
H A D | ext2_vnops.c | 341 error = vaccess(vp->v_type, ip->i_mode, ip->i_uid, ip->i_gid, in ext2_access() 359 vap->va_mode = ip->i_mode & ~IFMT; in ext2_getattr() 379 vap->va_type = IFTOVT(ip->i_mode); in ext2_getattr() 548 ip->i_mode &= ~ALLPERMS; in ext2_chmod() 549 ip->i_mode |= (mode & ALLPERMS); in ext2_chmod() 593 if ((ip->i_mode & (ISUID | ISGID)) && (ouid != uid || ogid != gid)) { in ext2_chown() 595 ip->i_mode &= ~(ISUID | ISGID); in ext2_chown() 736 if (S_ISDIR(ip->i_mode) && in ext2_inc_nlink() 753 if (!S_ISDIR(ip->i_mode) || ip->i_nlink > 2) in ext2_dec_nlink() 847 if ((ip->i_mode & IFMT) == IFDIR) { in ext2_rename() [all …]
|
H A D | ext2_acl.c | 71 ACL_USER_OBJ, ip->i_mode); in ext2_sync_acl_from_inode() 82 ACL_OTHER, ip->i_mode); in ext2_sync_acl_from_inode() 108 ACL_GROUP_OBJ, ip->i_mode); in ext2_sync_acl_from_inode() 114 ip->i_mode); in ext2_sync_acl_from_inode() 122 ip->i_mode &= ACL_PRESERVE_MASK; in ext2_sync_inode_from_acl() 123 ip->i_mode |= acl_posix1e_acl_to_mode(acl); in ext2_sync_inode_from_acl()
|
H A D | ext2_inode.c | 606 if (ip->i_mode == 0) in ext2_inactive() 612 mode = ip->i_mode; in ext2_inactive() 613 ip->i_mode = 0; in ext2_inactive() 624 if (ip->i_mode == 0) in ext2_inactive()
|
H A D | inode.h | 94 uint16_t i_mode; /* IFMT, permissions; see below. */ member
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_acl.h | 74 __field(umode_t, i_mode) 107 __entry->i_mode = zn->z_inode.i_mode; 132 __entry->i_bytes, __entry->i_mode, __entry->i_generation,
|
H A D | zfs_znode_impl.h | 62 #define ZTOTYPE(zp) (ZTOI(zp)->i_mode)
|
/freebsd/sys/i386/i386/ |
H A D | db_disasm.c | 95 int i_mode; /* addressing modes */ member 1155 int i_mode; in db_disasm() local 1262 i_mode = ip->i_mode; in db_disasm() 1274 i_mode = ip->i_mode; in db_disasm() 1280 i_mode = ip->i_mode; in db_disasm() 1290 i_mode = 0; in db_disasm() 1295 i_mode = 0; in db_disasm() 1302 i_mode = 0; in db_disasm() 1330 i_mode != 0; in db_disasm() 1331 i_mode >>= 8, first = false) in db_disasm() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_xattr.c | 971 if (S_ISLNK(ip->i_mode)) in zpl_set_acl_impl() 978 umode_t mode = ip->i_mode; in zpl_set_acl_impl() 990 if (ip->i_mode != mode) { in zpl_set_acl_impl() 991 ip->i_mode = ITOZ(ip)->z_mode = mode; in zpl_set_acl_impl() 1005 if (!S_ISDIR(ip->i_mode)) in zpl_set_acl_impl() 1127 if (!S_ISLNK(ip->i_mode)) { in zpl_init_acl() 1132 ITOZ(ip)->z_mode = (ip->i_mode &= ~current_umask()); in zpl_init_acl() 1142 if (S_ISDIR(ip->i_mode)) { in zpl_init_acl() 1148 mode = ip->i_mode; in zpl_init_acl() 1151 ip->i_mode = ITOZ(ip)->z_mode = mode; in zpl_init_acl() [all …]
|
H A D | zfs_vnops_os.c | 456 if (!S_ISDIR(ZTOI(zdp)->i_mode)) { in zfs_lookup() 507 if (!S_ISDIR(ZTOI(zdp)->i_mode)) { in zfs_lookup() 797 if (S_ISDIR(ZTOI(zp)->i_mode)) { in zfs_create() 816 if (S_ISREG(ZTOI(zp)->i_mode) && in zfs_create() 1042 if (S_ISDIR(ZTOI(zp)->i_mode)) { in zfs_remove() 1455 if (!S_ISDIR(ZTOI(zp)->i_mode)) { in zfs_rmdir() 1959 (!S_ISREG(ip->i_mode) && !S_ISDIR(ip->i_mode))) { in zfs_setattr() 1980 (!S_ISREG(ip->i_mode) && !S_ISDIR(ip->i_mode)))) { in zfs_setattr() 2001 if (mask & ATTR_SIZE && S_ISDIR(ip->i_mode)) { in zfs_setattr() 2006 if (mask & ATTR_SIZE && !S_ISREG(ip->i_mode) && !S_ISFIFO(ip->i_mode)) { in zfs_setattr() [all …]
|
H A D | zfs_dir.c | 614 ASSERT(S_ISREG(ZTOI(xzp)->i_mode) || in zfs_purgedir() 615 S_ISLNK(ZTOI(xzp)->i_mode)); in zfs_purgedir() 670 if (S_ISDIR(ZTOI(zp)->i_mode) && (zp->z_pflags & ZFS_XATTR)) { in zfs_rmnode() 690 if (S_ISREG(ZTOI(zp)->i_mode)) { in zfs_rmnode() 809 int zp_is_dir = S_ISDIR(ZTOI(zp)->i_mode); in zfs_link_create() 954 int zp_is_dir = S_ISDIR(ZTOI(zp)->i_mode); in zfs_drop_nlink_locked() 1031 int zp_is_dir = S_ISDIR(ZTOI(zp)->i_mode); in zfs_link_destroy()
|
H A D | zfs_acl.c | 827 VERIFY(zfs_copy_ace_2_fuid(ZTOZSB(zp), ZTOI(zp)->i_mode, in zfs_acl_xform() 1183 zp->z_mode = ZTOI(zp)->i_mode = in zfs_acl_chown_setattr() 1371 zp->z_mode = ZTOI(zp)->i_mode = mode; in zfs_aclset_common() 1638 zfs_acl_chmod(S_ISDIR(ZTOI(zp)->i_mode), mode, B_TRUE, in zfs_acl_chmod_setattr() 2145 error = zfs_vsec_2_aclp(zfsvfs, ZTOI(zp)->i_mode, vsecp, cr, &fuidp, in zfs_setacl() 2234 (!Z_ISDEV(ZTOI(zp)->i_mode) || (v4_mode & WRITE_MASK_ATTRS))) { in zfs_zaccess_dataset_check() 2328 if (S_ISDIR(ZTOI(zp)->i_mode) && in zfs_zaccess_aces_check() 2526 S_ISDIR(ZTOI(zp)->i_mode) && in zfs_zaccess_common() 2561 (S_ISDIR(ZTOI(zdp)->i_mode))); in zfs_fastaccesschk_execute() 2635 is_attr = ((zp->z_pflags & ZFS_XATTR) && S_ISDIR(ZTOI(zp)->i_mode)); in zfs_zaccess() [all …]
|
H A D | zfs_znode_os.c | 406 switch (ip->i_mode & S_IFMT) { in zfs_inode_set_ops() 433 init_special_inode(ip, ip->i_mode, rdev); in zfs_inode_set_ops() 439 (u_longlong_t)ip->i_ino, ip->i_mode); in zfs_inode_set_ops() 442 ip->i_mode = S_IFREG | 0644; in zfs_inode_set_ops() 486 ip->i_mode = zp->z_mode; in zfs_znode_update_vfs() 569 zp->z_mode = ip->i_mode = mode; in zfs_znode_alloc() 924 (*zpp)->z_mode = ZTOI(*zpp)->i_mode = mode; in zfs_mknode() 1255 zp->z_mode = ZTOI(zp)->i_mode = mode; in zfs_rezget()
|
H A D | zpl_export.c | 121 if (!dir || !S_ISDIR(dir->i_mode)) in zpl_get_name()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vnops.c | 382 if ((dnp->inode.i_mode & ISVTX) && in p9fs_lookup() 887 P9_DEBUG(VOPS, "%s: %u %u\n", __func__, inode->i_mode, IFTOVT(inode->i_mode)); in p9fs_getattr_dotl() 905 vap->va_type = IFTOVT(inode->i_mode); in p9fs_getattr_dotl() 906 vap->va_mode = inode->i_mode; in p9fs_getattr_dotl() 974 inode->i_mode = stat->st_mode; in p9fs_stat_vnode_dotl() 975 vp->v_type = IFTOVT(inode->i_mode); in p9fs_stat_vnode_dotl() 999 p9attr->mode = inode->i_mode; in p9fs_inode_to_iattr() 1053 if ((inode->i_mode & (ISUID | ISGID)) && in p9fs_chown() 1057 inode->i_mode &= ~(ISUID | ISGID); in p9fs_chown() 1111 nmode = inode->i_mode; in p9fs_chmod() [all …]
|
H A D | p9fs.h | 50 uint32_t i_mode; /* mode of the inode */ member
|
/freebsd/lib/libprocstat/ |
H A D | common_kvm.c | 108 vn->vn_mode = (mode_t)inode.i_mode; in ufs_filestat()
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_vnops.c | 1031 if ((ip->i_mode & (ISUID | ISGID)) && resid > uio->uio_resid && in ffs_write() 1035 UFS_INODE_SET_MODE(ip, ip->i_mode & ~(ISUID | ISGID)); in ffs_write() 1036 DIP_SET(ip, i_mode, ip->i_mode); in ffs_write() 1283 if ((ip->i_mode & (ISUID | ISGID)) && resid > uio->uio_resid && ucred) { in ffs_extwrite() 1286 UFS_INODE_SET_MODE(ip, ip->i_mode & ~(ISUID | ISGID)); in ffs_extwrite() 1287 dp->di_mode = ip->i_mode; in ffs_extwrite()
|