/fs/nfsd/ |
D | nfsfh.c | 29 struct svc_export *exp = expv; in nfsd_acceptable() local 34 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable() 38 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable() 50 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable() 52 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable() 101 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 103 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 114 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() 118 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument 120 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root() [all …]
|
D | export.c | 325 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local 326 path_put(&exp->ex_path); in svc_export_put() 327 auth_domain_put(exp->ex_client); in svc_export_put() 328 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put() 329 kfree(exp->ex_uuid); in svc_export_put() 330 kfree_rcu(exp, ex_rcu); in svc_export_put() 338 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local 341 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request() 342 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request() 459 static int secinfo_parse(char **mesg, char *buf, struct svc_export *exp) in secinfo_parse() argument [all …]
|
D | export.h | 82 #define EX_ISSYNC(exp) (!((exp)->ex_flags & NFSEXP_ASYNC)) argument 83 #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) argument 84 #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) argument 86 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp); 87 __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp); 105 static inline void exp_put(struct svc_export *exp) in exp_put() argument 107 cache_put(&exp->h, exp->cd); in exp_put() 110 static inline struct svc_export *exp_get(struct svc_export *exp) in exp_get() argument 112 cache_get(&exp->h); in exp_get() 113 return exp; in exp_get()
|
D | auth.c | 8 int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp) in nfsexp_flags() argument 11 struct exp_flavor_info *end = exp->ex_flavors + exp->ex_nflavors; in nfsexp_flags() 13 for (f = exp->ex_flavors; f < end; f++) { in nfsexp_flags() 17 return exp->ex_flags; in nfsexp_flags() 21 int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) in nfsd_setuser() argument 27 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser() 43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 52 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() [all …]
|
D | vfs.c | 62 struct svc_export *exp = *expp, *exp2 = NULL; in nfsd_cross_mnt() local 64 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt() 71 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt() 72 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt() 88 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt() 94 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt() 105 exp2 = exp; in nfsd_cross_mnt() 124 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument 127 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent() 140 exp_put(*exp); in nfsd_lookup_parent() [all …]
|
D | nfs4xdr.c | 2000 struct svc_export *exp) in encode_change() argument 2002 if (exp->ex_flags & NFSEXP_V4ROOT) { in encode_change() 2003 *p++ = cpu_to_be32(convert_to_wallclock(exp->cd->flush_time)); in encode_change() 2232 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument 2237 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations() 2239 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations() 2349 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument 2351 struct path path = exp->ex_path; in get_parent_attributes() 2403 struct svc_export *exp, in nfsd4_encode_fattr() argument 2431 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr() [all …]
|
D | pnfs.h | 71 void nfsd4_setup_layout_type(struct svc_export *exp); 81 static inline void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
|
D | nfs4layouts.c | 127 void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument 130 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 133 if (!(exp->ex_flags & NFSEXP_PNFS)) in nfsd4_setup_layout_type() 137 exp->ex_layout_types |= 1 << LAYOUT_FLEX_FILES; in nfsd4_setup_layout_type() 143 exp->ex_layout_types |= 1 << LAYOUT_BLOCK_VOLUME; in nfsd4_setup_layout_type() 150 exp->ex_layout_types |= 1 << LAYOUT_SCSI; in nfsd4_setup_layout_type()
|
D | nfs4proc.c | 100 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support() local 107 !(exp->ex_flags & NFSEXP_SECURITY_LABEL)) in check_attr_support() 878 struct svc_export *exp; in nfsd4_secinfo() local 887 &exp, &dentry); in nfsd4_secinfo() 892 exp_put(exp); in nfsd4_secinfo() 895 secinfo->si_exp = exp; in nfsd4_secinfo() 1528 nfsd4_layout_verify(struct svc_export *exp, unsigned int layout_type) in nfsd4_layout_verify() argument 1530 if (!exp->ex_layout_types) { in nfsd4_layout_verify() 1536 !(exp->ex_layout_types & (1 << layout_type))) { in nfsd4_layout_verify() 1552 struct svc_export *exp; in nfsd4_getdeviceinfo() local [all …]
|
D | nfs3xdr.c | 850 struct svc_export *exp; in compose_entry_fh() local 855 exp = cd->fh.fh_export; in compose_entry_fh() 875 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
|
D | xdr4.h | 739 struct svc_fh *fhp, struct svc_export *exp,
|
/fs/ |
D | select.c | 506 unsigned long *rinp, *routp, *rexp, *inp, *outp, *exp; in do_select() local 509 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select() 517 in = *inp++; out = *outp++; ex = *exp++; in do_select() 622 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() argument 671 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select() 690 set_fd_set(n, exp, fds.res_ex)) in core_sys_select() 701 fd_set __user *exp, struct timeval __user *tvp) in kern_select() argument 718 ret = core_sys_select(n, inp, outp, exp, to); in kern_select() 723 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument 725 return kern_select(n, inp, outp, exp, tvp); in SYSCALL_DEFINE5() [all …]
|