/fs/nfsd/ |
D | nfsfh.c | 28 struct svc_export *exp = expv; in nfsd_acceptable() local 33 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable() 37 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable() 49 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable() 51 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable() 84 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 86 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 97 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() 101 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument 103 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root() [all …]
|
D | export.c | 311 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local 312 path_put(&exp->ex_path); in svc_export_put() 313 auth_domain_put(exp->ex_client); in svc_export_put() 314 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put() 315 kfree(exp->ex_uuid); in svc_export_put() 316 kfree(exp); in svc_export_put() 324 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local 327 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request() 328 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request() 444 static int secinfo_parse(char **mesg, char *buf, struct svc_export *exp) in secinfo_parse() argument [all …]
|
D | export.h | 79 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument 80 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument 81 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument 83 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp); 84 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp); 102 static inline void exp_put(struct svc_export *exp) in exp_put() argument 104 cache_put(&exp->h, exp->cd); in exp_put() 107 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument 109 cache_get(&exp->h); in exp_get() 110 return exp; in exp_get()
|
D | auth.c | 7 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) in nfsexp_flags() argument 10 struct exp_flavor_info *end = exp->ex_flavors + exp->ex_nflavors; in nfsexp_flags() 12 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags() 16 return exp->ex_flags; in nfsexp_flags() 20 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) in nfsd_setuser() argument 26 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser() 42 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 43 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 49 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 51 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() [all …]
|
D | vfs.c | 86 struct svc_export *exp = *expp, *exp2 = NULL; in nfsd_cross_mnt() local 88 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt() 95 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt() 96 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt() 112 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt() 118 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt() 129 exp2 = exp; in nfsd_cross_mnt() 148 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument 151 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent() 164 exp_put(*exp); in nfsd_lookup_parent() [all …]
|
D | nfs4xdr.c | 2098 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument 2103 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations() 2105 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations() 2217 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument 2219 struct path path = exp->ex_path; in get_parent_attributes() 2271 struct svc_export *exp, in nfsd4_encode_fattr() argument 2297 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr() 2307 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr() 2330 status = fh_compose(tempfh, exp, dentry, NULL); in nfsd4_encode_fattr() 2412 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd4_encode_fattr() [all …]
|
D | pnfs.h | 57 void nfsd4_setup_layout_type(struct svc_export *exp); 67 static inline void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
|
D | nfs4proc.c | 867 struct svc_export *exp; in nfsd4_secinfo() local 877 &exp, &dentry); in nfsd4_secinfo() 882 exp_put(exp); in nfsd4_secinfo() 885 secinfo->si_exp = exp; in nfsd4_secinfo() 1179 nfsd4_layout_verify(struct svc_export *exp, unsigned int layout_type) in nfsd4_layout_verify() argument 1181 if (!exp->ex_layout_type) { in nfsd4_layout_verify() 1186 if (exp->ex_layout_type != layout_type) { in nfsd4_layout_verify() 1202 struct svc_export *exp; in nfsd4_getdeviceinfo() local 1218 exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); in nfsd4_getdeviceinfo() 1219 if (IS_ERR(exp)) { in nfsd4_getdeviceinfo() [all …]
|
D | nfs4layouts.c | 117 void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument 119 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 121 if (!(exp->ex_flags & NFSEXP_PNFS)) in nfsd4_setup_layout_type() 127 exp->ex_layout_type = LAYOUT_BLOCK_VOLUME; in nfsd4_setup_layout_type()
|
D | nfs3xdr.c | 814 struct svc_export *exp; in compose_entry_fh() local 819 exp = cd->fh.fh_export; in compose_entry_fh() 830 if (dparent == exp->ex_path.dentry) in compose_entry_fh() 844 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
|
D | xdr4.h | 656 struct svc_fh *fhp, struct svc_export *exp,
|
/fs/ |
D | select.c | 430 unsigned long *rinp, *routp, *rexp, *inp, *outp, *exp; in do_select() local 433 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select() 440 in = *inp++; out = *outp++; ex = *exp++; in do_select() 549 fd_set __user *exp, struct timespec *end_time) in core_sys_select() argument 601 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select() 620 set_fd_set(n, exp, fds.res_ex)) in core_sys_select() 631 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument 648 ret = core_sys_select(n, inp, outp, exp, to); in SYSCALL_DEFINE5() 655 fd_set __user *exp, struct timespec __user *tsp, in do_pselect() argument 682 ret = core_sys_select(n, inp, outp, exp, to); in do_pselect() [all …]
|
D | compat.c | 1235 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in compat_core_sys_select() argument 1277 (ret = compat_get_fd_set(n, exp, fds.ex))) in compat_core_sys_select() 1296 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select() 1306 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE5() argument 1324 ret = compat_core_sys_select(n, inp, outp, exp, to); in COMPAT_SYSCALL_DEFINE5() 1334 compat_uptr_t exp; member 1345 compat_ptr(a.exp), compat_ptr(a.tvp)); in COMPAT_SYSCALL_DEFINE1() 1349 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in do_compat_pselect() argument 1379 ret = compat_core_sys_select(n, inp, outp, exp, to); in do_compat_pselect() 1400 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE6() argument [all …]
|