aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd/nfsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nfsd/nfsd.h')
-rw-r--r--include/linux/nfsd/nfsd.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h
index 8f85d9a59607..6d5a24f3fc6d 100644
--- a/include/linux/nfsd/nfsd.h
+++ b/include/linux/nfsd/nfsd.h
@@ -15,6 +15,7 @@
15#include <linux/unistd.h> 15#include <linux/unistd.h>
16#include <linux/dirent.h> 16#include <linux/dirent.h>
17#include <linux/fs.h> 17#include <linux/fs.h>
18#include <linux/posix_acl.h>
18#include <linux/mount.h> 19#include <linux/mount.h>
19 20
20#include <linux/nfsd/debug.h> 21#include <linux/nfsd/debug.h>
@@ -123,21 +124,41 @@ int nfsd_statfs(struct svc_rqst *, struct svc_fh *,
123 124
124int nfsd_notify_change(struct inode *, struct iattr *); 125int nfsd_notify_change(struct inode *, struct iattr *);
125int nfsd_permission(struct svc_export *, struct dentry *, int); 126int nfsd_permission(struct svc_export *, struct dentry *, int);
127void nfsd_sync_dir(struct dentry *dp);
128
129#if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL)
130#ifdef CONFIG_NFSD_V2_ACL
131extern struct svc_version nfsd_acl_version2;
132#else
133#define nfsd_acl_version2 NULL
134#endif
135#ifdef CONFIG_NFSD_V3_ACL
136extern struct svc_version nfsd_acl_version3;
137#else
138#define nfsd_acl_version3 NULL
139#endif
140struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int);
141int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *);
142#endif
126 143
127 144
128/* 145/*
129 * NFSv4 State 146 * NFSv4 State
130 */ 147 */
131#ifdef CONFIG_NFSD_V4 148#ifdef CONFIG_NFSD_V4
132int nfs4_state_init(void); 149void nfs4_state_init(void);
150int nfs4_state_start(void);
133void nfs4_state_shutdown(void); 151void nfs4_state_shutdown(void);
134time_t nfs4_lease_time(void); 152time_t nfs4_lease_time(void);
135void nfs4_reset_lease(time_t leasetime); 153void nfs4_reset_lease(time_t leasetime);
154int nfs4_reset_recoverydir(char *recdir);
136#else 155#else
137static inline int nfs4_state_init(void){return 0;} 156static inline void nfs4_state_init(void){};
157static inline int nfs4_state_start(void){return 0;}
138static inline void nfs4_state_shutdown(void){} 158static inline void nfs4_state_shutdown(void){}
139static inline time_t nfs4_lease_time(void){return 0;} 159static inline time_t nfs4_lease_time(void){return 0;}
140static inline void nfs4_reset_lease(time_t leasetime){} 160static inline void nfs4_reset_lease(time_t leasetime){}
161static inline int nfs4_reset_recoverydir(char *recdir) {return 0;}
141#endif 162#endif
142 163
143/* 164/*
@@ -210,6 +231,7 @@ void nfsd_lockd_shutdown(void);
210#define nfserr_reclaim_bad __constant_htonl(NFSERR_RECLAIM_BAD) 231#define nfserr_reclaim_bad __constant_htonl(NFSERR_RECLAIM_BAD)
211#define nfserr_badname __constant_htonl(NFSERR_BADNAME) 232#define nfserr_badname __constant_htonl(NFSERR_BADNAME)
212#define nfserr_cb_path_down __constant_htonl(NFSERR_CB_PATH_DOWN) 233#define nfserr_cb_path_down __constant_htonl(NFSERR_CB_PATH_DOWN)
234#define nfserr_locked __constant_htonl(NFSERR_LOCKED)
213 235
214/* error codes for internal use */ 236/* error codes for internal use */
215/* if a request fails due to kmalloc failure, it gets dropped. 237/* if a request fails due to kmalloc failure, it gets dropped.