• Home
  • Raw
  • Download

Lines Matching refs:mode

49 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode)  in unixmode2p9mode()  argument
53 res = mode & 0777; in unixmode2p9mode()
54 if (S_ISDIR(mode)) in unixmode2p9mode()
58 if (S_ISSOCK(mode)) in unixmode2p9mode()
60 if (S_ISFIFO(mode)) in unixmode2p9mode()
62 if (S_ISBLK(mode)) in unixmode2p9mode()
64 if (S_ISCHR(mode)) in unixmode2p9mode()
68 if ((mode & S_ISUID) == S_ISUID) in unixmode2p9mode()
70 if ((mode & S_ISGID) == S_ISGID) in unixmode2p9mode()
72 if ((mode & S_ISVTX) == S_ISVTX) in unixmode2p9mode()
88 int mode = stat->mode; in p9mode2perm() local
90 res = mode & S_IALLUGO; in p9mode2perm()
92 if ((mode & P9_DMSETUID) == P9_DMSETUID) in p9mode2perm()
95 if ((mode & P9_DMSETGID) == P9_DMSETGID) in p9mode2perm()
98 if ((mode & P9_DMSETVTX) == P9_DMSETVTX) in p9mode2perm()
115 u32 mode = stat->mode; in p9mode2unixmode() local
120 if ((mode & P9_DMDIR) == P9_DMDIR) in p9mode2unixmode()
122 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode()
124 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
127 else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
130 else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode()
206 wstat->mode = ~0; in v9fs_blank_wstat()
252 struct inode *inode, umode_t mode, dev_t rdev) in v9fs_init_inode() argument
256 inode_init_owner(&init_user_ns, inode, NULL, mode); in v9fs_init_inode()
263 switch (mode & S_IFMT) { in v9fs_init_inode()
335 mode, mode & S_IFMT); in v9fs_init_inode()
351 struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) in v9fs_get_inode() argument
357 p9_debug(P9_DEBUG_VFS, "super block: %p mode: %ho\n", sb, mode); in v9fs_get_inode()
365 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode()
599 struct dentry *dentry, char *extension, u32 perm, u8 mode) in v9fs_create() argument
626 err = p9_client_fcreate(ofid, name, perm, mode, extension); in v9fs_create()
685 struct dentry *dentry, umode_t mode, bool excl) in v9fs_vfs_create() argument
688 u32 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_create()
712 struct dentry *dentry, umode_t mode) in v9fs_vfs_mkdir() argument
722 perm = unixmode2p9mode(v9ses, mode | S_IFDIR); in v9fs_vfs_mkdir()
804 struct file *file, unsigned int flags, umode_t mode) in v9fs_vfs_atomic_open() argument
830 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_atomic_open()
1096 wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); in v9fs_vfs_setattr()
1151 umode_t mode; in v9fs_stat2inode() local
1184 mode = p9mode2perm(v9ses, stat); in v9fs_stat2inode()
1185 mode |= inode->i_mode & ~S_IALLUGO; in v9fs_stat2inode()
1186 inode->i_mode = mode; in v9fs_stat2inode()
1249 if (!(st->mode & P9_DMSYMLINK)) { in v9fs_vfs_get_link()
1364 struct dentry *dentry, umode_t mode, dev_t rdev) in v9fs_vfs_mknod() argument
1372 dir->i_ino, dentry, mode, in v9fs_vfs_mknod()
1376 if (S_ISBLK(mode)) in v9fs_vfs_mknod()
1378 else if (S_ISCHR(mode)) in v9fs_vfs_mknod()
1383 perm = unixmode2p9mode(v9ses, mode); in v9fs_vfs_mknod()