Version increased to unfs3_0.9.22+dfsg-1maemo3
[unfs3] / unfs3 / fh_cache.h
1 /*
2  * UNFS3 filehandle cache
3  * (C) 2003, Pascal Schmidt
4  * see file LICENSE for license details
5  */
6
7 #ifndef UNFS3_FH_CACHE_H
8 #define UNFS3_FH_CACHE_H
9
10 /* statistics */
11 extern int fh_cache_max;
12 extern int fh_cache_use;
13 extern int fh_cache_hit;
14
15 void fh_cache_init(void);
16
17 char *fh_decomp(nfs_fh3 fh);
18 unfs3_fh_t fh_comp(const char *path, struct svc_req *rqstp, int need_dir);
19 unfs3_fh_t *fh_comp_ptr(const char *path, struct svc_req *rqstp, int need_dir);
20
21 char *fh_cache_add(uint32 dev, uint64 ino, const char *path);
22
23 #endif