]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
*** empty log message ***
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 18 May 2006 18:31:32 +0000 (18:31 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 18 May 2006 18:31:32 +0000 (18:31 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@772 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/client/FileCache.h [new file with mode: 0644]

diff --git a/ceph/client/FileCache.h b/ceph/client/FileCache.h
new file mode 100644 (file)
index 0000000..aea592d
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef __FILECACHE_H
+#define __FILECACHE_H
+
+#include "Filer.h"
+
+class FileCache {
+  ObjectCacher *oc;
+  Filer filer;
+  inodeno_t ino;
+  
+ public:
+  FileCache(ObjectCacher *_oc, inodeno_t _ino) : 
+       oc(_oc), 
+       filer(_oc), ino(_ino) {}
+  
+  void flush_dirty(Context *onflush=0);     // blocks if !onfinish
+  void release_clean(Context *onfinish=0);  // blocks if !onfinish
+};
+
+
+#endif