Home
last modified time | relevance | path

Searched refs:i_mode (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/ufs/ufs/
H A Dufs_inode.c77 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 Dufs_acl.c85 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 Dufs_vnops.c895 DIP_SET(ip, i_mode, ip->i_mode); in ufs_chmod()
1015 DIP_SET(ip, i_mode, ip->i_mode); in ufs_chown()
1653 IFTODT(fip->i_mode), in ufs_rename()
1834 DIP_SET(ip, i_mode, dmode); in ufs_do_posix1e_acl_inheritance_dir()
1846 DIP_SET(ip, i_mode, dmode); in ufs_do_posix1e_acl_inheritance_dir()
1917 DIP_SET(ip, i_mode, mode); in ufs_do_posix1e_acl_inheritance_file()
1928 DIP_SET(ip, i_mode, mode); in ufs_do_posix1e_acl_inheritance_file()
2120 DIP_SET(ip, i_mode, dmode); in ufs_mkdir()
2820 (pdir->i_mode & ISUID) && in ufs_makeinode()
2875 DIP_SET(ip, i_mode, mode); in ufs_makeinode()
[all …]
H A Dinode.h135 uint16_t i_mode; /* IFMT, permissions; see below. */ member
177 atomic_store_short(&(_ip)->i_mode, _mode); \
H A Dufs_lookup.c122 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 Ddb_disasm.c1239 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()
1476 i_mode = 0; in db_disasm()
[all …]
/freebsd/lib/libstdbuf/
H A Dstdbuf.c103 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 Dext2_inode_cnv.c62 "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 Dext2_vnops.c548 ip->i_mode &= ~ALLPERMS; in ext2_chmod()
549 ip->i_mode |= (mode & ALLPERMS); in ext2_chmod()
736 if (S_ISDIR(ip->i_mode) && in ext2_inc_nlink()
1176 ip->i_mode = dmode; in ext2_do_posix1e_acl_inheritance_dir()
1187 ip->i_mode = dmode; in ext2_do_posix1e_acl_inheritance_dir()
1252 ip->i_mode = mode; in ext2_do_posix1e_acl_inheritance_file()
1262 ip->i_mode = mode; in ext2_do_posix1e_acl_inheritance_file()
1355 ip->i_mode = dmode; in ext2_mkdir()
1962 (pdir->i_mode & ISUID) && in ext2_makeinode()
1974 ip->i_mode = mode; in ext2_makeinode()
[all …]
H A Dext2_acl.c71 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 Dext2_inode.c606 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 Dinode.h94 uint16_t i_mode; /* IFMT, permissions; see below. */ member
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_acl.h74 __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 Dzfs_znode_impl.h62 #define ZTOTYPE(zp) (ZTOI(zp)->i_mode)
/freebsd/sys/i386/i386/
H A Ddb_disasm.c95 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 Dzpl_xattr.c971 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 Dzfs_vnops_os.c516 if (!S_ISDIR(ZTOI(zdp)->i_mode)) { in zfs_lookup()
806 if (S_ISDIR(ZTOI(zp)->i_mode)) { in zfs_create()
825 if (S_ISREG(ZTOI(zp)->i_mode) && in zfs_create()
1051 if (S_ISDIR(ZTOI(zp)->i_mode)) { in zfs_remove()
1968 (!S_ISREG(ip->i_mode) && !S_ISDIR(ip->i_mode))) { in zfs_setattr()
1989 (!S_ISREG(ip->i_mode) && !S_ISDIR(ip->i_mode)))) { in zfs_setattr()
2015 if (mask & ATTR_SIZE && !S_ISREG(ip->i_mode) && !S_ISFIFO(ip->i_mode)) { in zfs_setattr()
2228 if ((!S_ISREG(ip->i_mode) && in zfs_setattr()
2580 ASSERT(S_ISREG(ip->i_mode)); in zfs_setattr()
3533 if (S_ISDIR(sip->i_mode)) { in zfs_link()
[all …]
H A Dzfs_dir.c614 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 Dzfs_acl.c827 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 Dzfs_znode_os.c406 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 Dzpl_export.c121 if (!dir || !S_ISDIR(dir->i_mode)) in zpl_get_name()
/freebsd/sys/fs/p9fs/
H A Dp9fs_vnops.c382 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 Dp9fs.h50 uint32_t i_mode; /* mode of the inode */ member
/freebsd/lib/libprocstat/
H A Dcommon_kvm.c108 vn->vn_mode = (mode_t)inode.i_mode; in ufs_filestat()
/freebsd/sys/ufs/ffs/
H A Dffs_vnops.c1031 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()

12