diff options
Diffstat (limited to 'include/linux/nfsd/nfsd.h')
-rw-r--r-- | include/linux/nfsd/nfsd.h | 26 |
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 | ||
124 | int nfsd_notify_change(struct inode *, struct iattr *); | 125 | int nfsd_notify_change(struct inode *, struct iattr *); |
125 | int nfsd_permission(struct svc_export *, struct dentry *, int); | 126 | int nfsd_permission(struct svc_export *, struct dentry *, int); |
127 | void 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 | ||
131 | extern struct svc_version nfsd_acl_version2; | ||
132 | #else | ||
133 | #define nfsd_acl_version2 NULL | ||
134 | #endif | ||
135 | #ifdef CONFIG_NFSD_V3_ACL | ||
136 | extern struct svc_version nfsd_acl_version3; | ||
137 | #else | ||
138 | #define nfsd_acl_version3 NULL | ||
139 | #endif | ||
140 | struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int); | ||
141 | int 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 |
132 | int nfs4_state_init(void); | 149 | void nfs4_state_init(void); |
150 | int nfs4_state_start(void); | ||
133 | void nfs4_state_shutdown(void); | 151 | void nfs4_state_shutdown(void); |
134 | time_t nfs4_lease_time(void); | 152 | time_t nfs4_lease_time(void); |
135 | void nfs4_reset_lease(time_t leasetime); | 153 | void nfs4_reset_lease(time_t leasetime); |
154 | int nfs4_reset_recoverydir(char *recdir); | ||
136 | #else | 155 | #else |
137 | static inline int nfs4_state_init(void){return 0;} | 156 | static inline void nfs4_state_init(void){}; |
157 | static inline int nfs4_state_start(void){return 0;} | ||
138 | static inline void nfs4_state_shutdown(void){} | 158 | static inline void nfs4_state_shutdown(void){} |
139 | static inline time_t nfs4_lease_time(void){return 0;} | 159 | static inline time_t nfs4_lease_time(void){return 0;} |
140 | static inline void nfs4_reset_lease(time_t leasetime){} | 160 | static inline void nfs4_reset_lease(time_t leasetime){} |
161 | static 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. |