vfs.h (f83d9396d1f63048c423efa00e4e244da10a35fd) vfs.h (7fe2a71dda349a1afa75781f0cc7975be9784d15)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>
4 */
5
6#ifndef LINUX_NFSD_VFS_H
7#define LINUX_NFSD_VFS_H
8

--- 28 unchanged lines hidden (view full) ---

37struct nfsd_file;
38
39/*
40 * Callback function for readdir
41 */
42typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
43
44/* nfsd/vfs.c */
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de>
4 */
5
6#ifndef LINUX_NFSD_VFS_H
7#define LINUX_NFSD_VFS_H
8

--- 28 unchanged lines hidden (view full) ---

37struct nfsd_file;
38
39/*
40 * Callback function for readdir
41 */
42typedef int (*nfsd_filldir_t)(void *, const char *, int, loff_t, u64, unsigned);
43
44/* nfsd/vfs.c */
45struct nfsd_attrs {
46 struct iattr *na_iattr; /* input */
47};
48
45int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
46 struct svc_export **expp);
47__be32 nfsd_lookup(struct svc_rqst *, struct svc_fh *,
48 const char *, unsigned int, struct svc_fh *);
49__be32 nfsd_lookup_dentry(struct svc_rqst *, struct svc_fh *,
50 const char *, unsigned int,
51 struct svc_export **, struct dentry **);
52__be32 nfsd_setattr(struct svc_rqst *, struct svc_fh *,
49int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
50 struct svc_export **expp);
51__be32 nfsd_lookup(struct svc_rqst *, struct svc_fh *,
52 const char *, unsigned int, struct svc_fh *);
53__be32 nfsd_lookup_dentry(struct svc_rqst *, struct svc_fh *,
54 const char *, unsigned int,
55 struct svc_export **, struct dentry **);
56__be32 nfsd_setattr(struct svc_rqst *, struct svc_fh *,
53 struct iattr *, int, time64_t);
57 struct nfsd_attrs *, int, time64_t);
54int nfsd_mountpoint(struct dentry *, struct svc_export *);
55#ifdef CONFIG_NFSD_V4
56__be32 nfsd4_set_nfs4_label(struct svc_rqst *, struct svc_fh *,
57 struct xdr_netobj *);
58__be32 nfsd4_vfs_fallocate(struct svc_rqst *, struct svc_fh *,
59 struct file *, loff_t, loff_t, int);
60__be32 nfsd4_clone_file_range(struct svc_rqst *rqstp,
61 struct nfsd_file *nf_src, u64 src_pos,
62 struct nfsd_file *nf_dst, u64 dst_pos,
63 u64 count, bool sync);
64#endif /* CONFIG_NFSD_V4 */
65__be32 nfsd_create_locked(struct svc_rqst *, struct svc_fh *,
58int nfsd_mountpoint(struct dentry *, struct svc_export *);
59#ifdef CONFIG_NFSD_V4
60__be32 nfsd4_set_nfs4_label(struct svc_rqst *, struct svc_fh *,
61 struct xdr_netobj *);
62__be32 nfsd4_vfs_fallocate(struct svc_rqst *, struct svc_fh *,
63 struct file *, loff_t, loff_t, int);
64__be32 nfsd4_clone_file_range(struct svc_rqst *rqstp,
65 struct nfsd_file *nf_src, u64 src_pos,
66 struct nfsd_file *nf_dst, u64 dst_pos,
67 u64 count, bool sync);
68#endif /* CONFIG_NFSD_V4 */
69__be32 nfsd_create_locked(struct svc_rqst *, struct svc_fh *,
66 char *name, int len, struct iattr *attrs,
70 char *name, int len, struct nfsd_attrs *attrs,
67 int type, dev_t rdev, struct svc_fh *res);
68__be32 nfsd_create(struct svc_rqst *, struct svc_fh *,
71 int type, dev_t rdev, struct svc_fh *res);
72__be32 nfsd_create(struct svc_rqst *, struct svc_fh *,
69 char *name, int len, struct iattr *attrs,
73 char *name, int len, struct nfsd_attrs *attrs,
70 int type, dev_t rdev, struct svc_fh *res);
71__be32 nfsd_access(struct svc_rqst *, struct svc_fh *, u32 *, u32 *);
72__be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
74 int type, dev_t rdev, struct svc_fh *res);
75__be32 nfsd_access(struct svc_rqst *, struct svc_fh *, u32 *, u32 *);
76__be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
73 struct svc_fh *resfhp, struct iattr *iap);
77 struct svc_fh *resfhp, struct nfsd_attrs *iap);
74__be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
75 u64 offset, u32 count, __be32 *verf);
76#ifdef CONFIG_NFSD_V4
77__be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
78 char *name, void **bufp, int *lenp);
79__be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
80 char **bufp, int *lenp);
81__be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp,

--- 79 unchanged lines hidden ---
78__be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
79 u64 offset, u32 count, __be32 *verf);
80#ifdef CONFIG_NFSD_V4
81__be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
82 char *name, void **bufp, int *lenp);
83__be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
84 char **bufp, int *lenp);
85__be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp,

--- 79 unchanged lines hidden ---