X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=unfs3%2Ffh_cache.h;fp=unfs3%2Ffh_cache.h;h=5801709d646842eb043d85a692608d0fd9a85d45;hb=1ddb92b899989e26e26a4491251d4bc61be22918;hp=0000000000000000000000000000000000000000;hpb=af6b53b5ca2a8493dd5caca8a3a134a46b03272e;p=unfs3 diff --git a/unfs3/fh_cache.h b/unfs3/fh_cache.h new file mode 100644 index 0000000..5801709 --- /dev/null +++ b/unfs3/fh_cache.h @@ -0,0 +1,23 @@ +/* + * UNFS3 filehandle cache + * (C) 2003, Pascal Schmidt + * see file LICENSE for license details + */ + +#ifndef UNFS3_FH_CACHE_H +#define UNFS3_FH_CACHE_H + +/* statistics */ +extern int fh_cache_max; +extern int fh_cache_use; +extern int fh_cache_hit; + +void fh_cache_init(void); + +char *fh_decomp(nfs_fh3 fh); +unfs3_fh_t fh_comp(const char *path, struct svc_req *rqstp, int need_dir); +unfs3_fh_t *fh_comp_ptr(const char *path, struct svc_req *rqstp, int need_dir); + +char *fh_cache_add(uint32 dev, uint64 ino, const char *path); + +#endif