Added initial unfs3 sources for version 0.9.22+dfsg-1maemo2
[unfs3] / unfs3 / fh_cache.h
diff --git a/unfs3/fh_cache.h b/unfs3/fh_cache.h
new file mode 100644 (file)
index 0000000..5801709
--- /dev/null
@@ -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