/fs/9p/ |
D | v9fs.c | 116 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) in v9fs_parse_options() argument 126 v9ses->afid = ~0; in v9fs_parse_options() 127 v9ses->debug = 0; in v9fs_parse_options() 128 v9ses->cache = CACHE_NONE; in v9fs_parse_options() 130 v9ses->cachetag = NULL; in v9fs_parse_options() 132 v9ses->session_lock_timeout = P9_LOCK_TIMEOUT; in v9fs_parse_options() 158 v9ses->debug = option; in v9fs_parse_options() 172 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options() 173 if (!uid_valid(v9ses->dfltuid)) { in v9fs_parse_options() 188 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options() [all …]
|
D | vfs_inode.c | 64 static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) in unixmode2p9mode() argument 70 if (v9fs_proto_dotu(v9ses)) { in unixmode2p9mode() 71 if (v9ses->nodev == 0) { in unixmode2p9mode() 98 static int p9mode2perm(struct v9fs_session_info *v9ses, in p9mode2perm() argument 105 if (v9fs_proto_dotu(v9ses)) { in p9mode2perm() 125 static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, in p9mode2unixmode() argument 132 res = p9mode2perm(v9ses, stat); in p9mode2unixmode() 136 else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) in p9mode2unixmode() 138 else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) in p9mode2unixmode() 139 && (v9ses->nodev == 0)) in p9mode2unixmode() [all …]
|
D | vfs_super.c | 76 v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, in v9fs_fill_super() argument 80 sb->s_blocksize_bits = fls(v9ses->maxdata - 1); in v9fs_fill_super() 83 if (v9fs_proto_dotl(v9ses)) { in v9fs_fill_super() 88 sb->s_bdi = &v9ses->bdi; in v9fs_fill_super() 89 if (v9ses->cache) in v9fs_fill_super() 93 if (!v9ses->cache) in v9fs_fill_super() 97 if ((v9ses->flags & V9FS_ACL_MASK) == V9FS_POSIX_ACL) in v9fs_fill_super() 119 struct v9fs_session_info *v9ses = NULL; in v9fs_mount() local 126 v9ses = kzalloc(sizeof(struct v9fs_session_info), GFP_KERNEL); in v9fs_mount() 127 if (!v9ses) in v9fs_mount() [all …]
|
D | cache.c | 49 int v9fs_random_cachetag(struct v9fs_session_info *v9ses) in v9fs_random_cachetag() argument 51 v9ses->cachetag = kmalloc(CACHETAG_LEN, GFP_KERNEL); in v9fs_random_cachetag() 52 if (!v9ses->cachetag) in v9fs_random_cachetag() 55 return scnprintf(v9ses->cachetag, CACHETAG_LEN, "%lu", jiffies); in v9fs_random_cachetag() 61 struct v9fs_session_info *v9ses; in v9fs_cache_session_get_key() local 64 v9ses = (struct v9fs_session_info *)cookie_netfs_data; in v9fs_cache_session_get_key() 66 v9ses, buffer, bufmax); in v9fs_cache_session_get_key() 68 if (v9ses->cachetag) in v9fs_cache_session_get_key() 69 klen = strlen(v9ses->cachetag); in v9fs_cache_session_get_key() 74 memcpy(buffer, v9ses->cachetag, klen); in v9fs_cache_session_get_key() [all …]
|
D | v9fs.h | 144 extern void v9fs_session_close(struct v9fs_session_info *v9ses); 145 extern void v9fs_session_cancel(struct v9fs_session_info *v9ses); 146 extern void v9fs_session_begin_cancel(struct v9fs_session_info *v9ses); 153 extern struct inode *v9fs_inode_from_fid(struct v9fs_session_info *v9ses, 159 extern struct inode *v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, 180 static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses) in v9fs_proto_dotu() argument 182 return v9ses->flags & V9FS_PROTO_2000U; in v9fs_proto_dotu() 185 static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses) in v9fs_proto_dotl() argument 187 return v9ses->flags & V9FS_PROTO_2000L; in v9fs_proto_dotl() 199 v9fs_get_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_get_inode_from_fid() argument [all …]
|
D | fid.c | 93 static int build_path_from_dentry(struct v9fs_session_info *v9ses, in build_path_from_dentry() argument 122 struct v9fs_session_info *v9ses; in v9fs_fid_lookup_with_uid() local 125 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_fid_lookup_with_uid() 126 access = v9ses->flags & V9FS_ACCESS_MASK; in v9fs_fid_lookup_with_uid() 135 down_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 143 up_read(&v9ses->rename_sem); in v9fs_fid_lookup_with_uid() 152 if (v9fs_proto_dotu(v9ses) || v9fs_proto_dotl(v9ses)) in v9fs_fid_lookup_with_uid() 155 uname = v9ses->uname; in v9fs_fid_lookup_with_uid() 157 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid() 158 v9ses->aname); in v9fs_fid_lookup_with_uid() [all …]
|
D | vfs_inode_dotl.c | 121 struct v9fs_session_info *v9ses = sb->s_fs_info; in v9fs_qid_iget_dotl() local 141 retval = v9fs_init_inode(v9ses, inode, in v9fs_qid_iget_dotl() 161 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument 256 struct v9fs_session_info *v9ses; in v9fs_vfs_atomic_open_dotl() local 273 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_atomic_open_dotl() 321 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_atomic_open_dotl() 335 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_vfs_atomic_open_dotl() 359 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_vfs_atomic_open_dotl() 388 struct v9fs_session_info *v9ses; in v9fs_vfs_mkdir_dotl() local 400 v9ses = v9fs_inode2v9ses(dir); in v9fs_vfs_mkdir_dotl() [all …]
|
D | acl.c | 60 struct v9fs_session_info *v9ses; in v9fs_get_acl() local 62 v9ses = v9fs_inode2v9ses(inode); in v9fs_get_acl() 63 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || in v9fs_get_acl() 64 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_get_acl() 102 struct v9fs_session_info *v9ses; in v9fs_iop_get_acl() local 104 v9ses = v9fs_inode2v9ses(inode); in v9fs_iop_get_acl() 105 if (((v9ses->flags & V9FS_ACCESS_MASK) != V9FS_ACCESS_CLIENT) || in v9fs_iop_get_acl() 106 ((v9ses->flags & V9FS_ACL_MASK) != V9FS_POSIX_ACL)) { in v9fs_iop_get_acl() 219 struct v9fs_session_info *v9ses; in v9fs_xattr_get_acl() local 226 v9ses = v9fs_dentry2v9ses(dentry); in v9fs_xattr_get_acl() [all …]
|
D | vfs_file.c | 63 struct v9fs_session_info *v9ses; in v9fs_file_open() local 69 v9ses = v9fs_inode2v9ses(inode); in v9fs_file_open() 70 if (v9fs_proto_dotl(v9ses)) in v9fs_file_open() 74 v9fs_proto_dotu(v9ses)); in v9fs_file_open() 87 (!v9fs_proto_dotu(v9ses) && !v9fs_proto_dotl(v9ses))) in v9fs_file_open() 93 if ((v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) && in v9fs_file_open() 112 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) in v9fs_file_open() 157 struct v9fs_session_info *v9ses; in v9fs_file_do_lock() local 193 v9ses = v9fs_inode2v9ses(file_inode(filp)); in v9fs_file_do_lock() 208 if (schedule_timeout_interruptible(v9ses->session_lock_timeout) in v9fs_file_do_lock()
|
D | vfs_dentry.c | 93 struct v9fs_session_info *v9ses; in v9fs_lookup_revalidate() local 98 v9ses = v9fs_inode2v9ses(inode); in v9fs_lookup_revalidate() 99 if (v9fs_proto_dotl(v9ses)) in v9fs_lookup_revalidate()
|
D | cache.h | 33 extern void v9fs_cache_session_get_cookie(struct v9fs_session_info *v9ses); 34 extern void v9fs_cache_session_put_cookie(struct v9fs_session_info *v9ses);
|
D | v9fs_vfs.h | 63 int v9fs_init_inode(struct v9fs_session_info *v9ses,
|