/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() 90 struct svc_export *exp) in nfsd_setuser_and_check_port() argument 92 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port() 103 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port() 107 struct dentry *dentry, struct svc_export *exp) in check_pseudo_root() argument 109 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 | 88 struct svc_export *exp = *expp, *exp2 = NULL; in nfsd_cross_mnt() local 90 struct path path = {.mnt = mntget(exp->ex_path.mnt), in nfsd_cross_mnt() 97 if (path.mnt == exp->ex_path.mnt && path.dentry == dentry && in nfsd_cross_mnt() 98 nfsd_mountpoint(dentry, exp) == 2) { in nfsd_cross_mnt() 114 if (err == -ENOENT && !(exp->ex_flags & NFSEXP_V4ROOT)) in nfsd_cross_mnt() 120 (exp->ex_flags & NFSEXP_CROSSMOUNT) || EX_NOHIDE(exp2)) { in nfsd_cross_mnt() 131 exp2 = exp; in nfsd_cross_mnt() 150 …parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **exp, struct dentry **de… in nfsd_lookup_parent() argument 153 struct path path = {.mnt = mntget((*exp)->ex_path.mnt), in nfsd_lookup_parent() 166 exp_put(*exp); in nfsd_lookup_parent() [all …]
|
D | nfs4xdr.c | 2138 struct svc_rqst *rqstp, struct svc_export *exp) in nfsd4_encode_fs_locations() argument 2143 struct nfsd4_fs_locations *fslocs = &exp->ex_fslocs; in nfsd4_encode_fs_locations() 2145 status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); in nfsd4_encode_fs_locations() 2255 static int get_parent_attributes(struct svc_export *exp, struct kstat *stat) in get_parent_attributes() argument 2257 struct path path = exp->ex_path; in get_parent_attributes() 2309 struct svc_export *exp, in nfsd4_encode_fattr() argument 2335 .mnt = exp->ex_path.mnt, in nfsd4_encode_fattr() 2345 if (exp->ex_fslocs.migrated) { in nfsd4_encode_fattr() 2368 status = fh_compose(tempfh, exp, dentry, NULL); in nfsd4_encode_fattr() 2450 if (exp->ex_flags & NFSEXP_NOSUBTREECHECK) in nfsd4_encode_fattr() [all …]
|
D | pnfs.h | 70 void nfsd4_setup_layout_type(struct svc_export *exp); 80 static inline void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument
|
D | nfs4layouts.c | 126 void nfsd4_setup_layout_type(struct svc_export *exp) in nfsd4_setup_layout_type() argument 129 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 132 if (!(exp->ex_flags & NFSEXP_PNFS)) in nfsd4_setup_layout_type() 142 exp->ex_layout_types |= 1 << LAYOUT_FLEX_FILES; in nfsd4_setup_layout_type() 149 exp->ex_layout_types |= 1 << LAYOUT_BLOCK_VOLUME; in nfsd4_setup_layout_type() 156 exp->ex_layout_types |= 1 << LAYOUT_SCSI; in nfsd4_setup_layout_type()
|
D | nfs4proc.c | 866 struct svc_export *exp; in nfsd4_secinfo() local 875 &exp, &dentry); in nfsd4_secinfo() 880 exp_put(exp); in nfsd4_secinfo() 883 secinfo->si_exp = exp; in nfsd4_secinfo() 1269 nfsd4_layout_verify(struct svc_export *exp, unsigned int layout_type) in nfsd4_layout_verify() argument 1271 if (!exp->ex_layout_types) { in nfsd4_layout_verify() 1277 !(exp->ex_layout_types & (1 << layout_type))) { in nfsd4_layout_verify() 1293 struct svc_export *exp; in nfsd4_getdeviceinfo() local 1309 exp = rqst_exp_find(rqstp, map->fsid_type, map->fsid); in nfsd4_getdeviceinfo() 1310 if (IS_ERR(exp)) { in nfsd4_getdeviceinfo() [all …]
|
D | nfs3xdr.c | 815 struct svc_export *exp; in compose_entry_fh() local 820 exp = cd->fh.fh_export; in compose_entry_fh() 840 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh()
|
D | xdr4.h | 694 struct svc_fh *fhp, struct svc_export *exp,
|
/fs/ |
D | select.c | 434 unsigned long *rinp, *routp, *rexp, *inp, *outp, *exp; in do_select() local 437 inp = fds->in; outp = fds->out; exp = fds->ex; in do_select() 444 in = *inp++; out = *outp++; ex = *exp++; in do_select() 553 fd_set __user *exp, struct timespec64 *end_time) in core_sys_select() argument 605 (ret = get_fd_set(n, exp, fds.ex))) in core_sys_select() 624 set_fd_set(n, exp, fds.res_ex)) in core_sys_select() 635 fd_set __user *, exp, struct timeval __user *, tvp) in SYSCALL_DEFINE5() argument 652 ret = core_sys_select(n, inp, outp, exp, to); in SYSCALL_DEFINE5() 659 fd_set __user *exp, struct timespec __user *tsp, in do_pselect() argument 688 ret = core_sys_select(n, inp, outp, exp, to); in do_pselect() [all …]
|
D | compat.c | 1224 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in compat_core_sys_select() argument 1266 (ret = compat_get_fd_set(n, exp, fds.ex))) in compat_core_sys_select() 1285 compat_set_fd_set(n, exp, fds.res_ex)) in compat_core_sys_select() 1295 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE5() argument 1313 ret = compat_core_sys_select(n, inp, outp, exp, to); in COMPAT_SYSCALL_DEFINE5() 1323 compat_uptr_t exp; member 1334 compat_ptr(a.exp), compat_ptr(a.tvp)); in COMPAT_SYSCALL_DEFINE1() 1338 compat_ulong_t __user *outp, compat_ulong_t __user *exp, in do_compat_pselect() argument 1368 ret = compat_core_sys_select(n, inp, outp, exp, to); in do_compat_pselect() 1389 compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, in COMPAT_SYSCALL_DEFINE6() argument [all …]
|