diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-06-24 01:04:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:36 -0400 |
commit | c7b9a45927e74c81d6562153f7fde9d32da00159 (patch) | |
tree | d21fb5d43052bce7469c168d1ad485c821a42079 /include/linux/nfsd | |
parent | 190e4fbf96037e5e526ba3210f2bcc2a3b6fe964 (diff) |
[PATCH] knfsd: nfsd4: reboot recovery
This patch adds the code to create and remove client subdirectories from the
recovery directory, as described in the previous patch comment.
Signed-off-by: Andy Adamson <andros@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r-- | include/linux/nfsd/state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 19481ab122df..a84a3fa99be1 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -131,6 +131,7 @@ struct nfs4_client { | |||
131 | nfs4_verifier cl_confirm; /* generated by server */ | 131 | nfs4_verifier cl_confirm; /* generated by server */ |
132 | struct nfs4_callback cl_callback; /* callback info */ | 132 | struct nfs4_callback cl_callback; /* callback info */ |
133 | atomic_t cl_count; /* ref count */ | 133 | atomic_t cl_count; /* ref count */ |
134 | u32 cl_firststate; /* recovery dir creation */ | ||
134 | }; | 135 | }; |
135 | 136 | ||
136 | /* struct nfs4_client_reset | 137 | /* struct nfs4_client_reset |
@@ -282,6 +283,10 @@ extern void nfsd4_init_recdir(char *recdir_name); | |||
282 | extern int nfsd4_recdir_load(void); | 283 | extern int nfsd4_recdir_load(void); |
283 | extern void nfsd4_shutdown_recdir(void); | 284 | extern void nfsd4_shutdown_recdir(void); |
284 | extern int nfs4_client_to_reclaim(const char *name); | 285 | extern int nfs4_client_to_reclaim(const char *name); |
286 | extern int nfs4_has_reclaimed_state(const char *name); | ||
287 | extern void nfsd4_recdir_purge_old(void); | ||
288 | extern int nfsd4_create_clid_dir(struct nfs4_client *clp); | ||
289 | extern void nfsd4_remove_clid_dir(struct nfs4_client *clp); | ||
285 | 290 | ||
286 | static inline void | 291 | static inline void |
287 | nfs4_put_stateowner(struct nfs4_stateowner *so) | 292 | nfs4_put_stateowner(struct nfs4_stateowner *so) |