/fs/nfsd/ |
D | nfsfh.c | 30 struct svc_export *exp = expv; in nfsd_acceptable() local 35 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd_acceptable() 39 while (tdentry != exp->ex_path.dentry && !IS_ROOT(tdentry)) { in nfsd_acceptable() 51 if (tdentry != exp->ex_path.dentry) in nfsd_acceptable() 53 rv = (tdentry == exp->ex_path.dentry); in nfsd_acceptable() 102 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 104 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 115 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() 119 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument 121 if (!(exp->ex_flags & NFSEXP_V4ROOT)) in check_pseudo_root() [all …]
|
D | export.c | 336 struct svc_export *exp = container_of(ref, struct svc_export, h.ref); in svc_export_put() local 337 path_put(&exp->ex_path); in svc_export_put() 338 auth_domain_put(exp->ex_client); in svc_export_put() 339 nfsd4_fslocs_free(&exp->ex_fslocs); in svc_export_put() 340 kfree(exp->ex_uuid); in svc_export_put() 341 kfree_rcu(exp, ex_rcu); in svc_export_put() 354 struct svc_export *exp = container_of(h, struct svc_export, h); in svc_export_request() local 357 qword_add(bpp, blen, exp->ex_client->name); in svc_export_request() 358 pth = d_path(&exp->ex_path, *bpp, *blen); in svc_export_request() 475 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 | 2296 struct svc_export *exp) in encode_change() argument 2298 if (exp->ex_flags & NFSEXP_V4ROOT) { in encode_change() 2299 *p++ = cpu_to_be32(convert_to_wallclock(exp->cd->flush_time)); in encode_change() 2528 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument 2533 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations() 2535 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations() 2645 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument 2647 struct path path = exp->ex_path; in get_parent_attributes() 2699 struct svc_export *exp, in nfsd4_encode_fattr() argument 2727 .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 | 102 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support() local 109 !(exp->ex_flags & NFSEXP_SECURITY_LABEL)) in check_attr_support() 894 struct svc_export *exp; in nfsd4_secinfo() local 903 &exp, &dentry); in nfsd4_secinfo() 908 exp_put(exp); in nfsd4_secinfo() 911 secinfo->si_exp = exp; in nfsd4_secinfo() 1826 nfsd4_layout_verify(struct svc_export *exp, unsigned int layout_type) in nfsd4_layout_verify() argument 1828 if (!exp->ex_layout_types) { in nfsd4_layout_verify() 1834 !(exp->ex_layout_types & (1 << layout_type))) { in nfsd4_layout_verify() 1850 struct svc_export *exp; in nfsd4_getdeviceinfo() local [all …]
|
D | nfs3xdr.c | 856 struct svc_export *exp; in compose_entry_fh() local 861 exp = cd->fh.fh_export; in compose_entry_fh() 872 if (dparent == exp->ex_path.dentry) in compose_entry_fh() 884 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
|
D | xdr4.h | 792 struct svc_fh *fhp, struct svc_export *exp,
|
/fs/ |
D | select.c | 508 unsigned long *rinp, *routp, *rexp, *inp, *outp, *exp; in do_select() local 511 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select() 519 in = *inp++; out = *outp++; ex = *exp++; in do_select() 625 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() argument 674 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select() 693 set_fd_set(n, exp, fds.res_ex)) in core_sys_select() 704 fd_set __user *exp, struct __kernel_old_timeval __user *tvp) in kern_select() argument 721 ret = core_sys_select(n, inp, outp, exp, to); in kern_select() 726 fd_set __user *, exp, struct __kernel_old_timeval __user *, tvp) in SYSCALL_DEFINE5() argument 728 return kern_select(n, inp, outp, exp, tvp); in SYSCALL_DEFINE5() [all …]
|