]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: syncfs stub
authorSage Weil <sage@newdream.net>
Wed, 2 Apr 2008 23:37:00 +0000 (16:37 -0700)
committerSage Weil <sage@newdream.net>
Wed, 2 Apr 2008 23:37:00 +0000 (16:37 -0700)
src/TODO
src/kernel/super.c

index 4a1ac14a08b3f18fb5395adf0cd5ae5f98ecb4ac..a72066fe355f656745c305345a6b67d05f3e3ccf 100644 (file)
--- a/src/TODO
+++ b/src/TODO
@@ -18,8 +18,6 @@ userspace client
 kernel client
 - setattr should check lease before believing something is a no-op
 - trim expired leases so we don't indefinitely hold dcache refs...
-- carry wrbuffer/rdcache caps until data is flushed
-  - this should make the utimes bit kick in
 - procfs/debugfs
   - adjust granular debug levels too
     - should we be using debugfs?
@@ -28,13 +26,15 @@ kernel client
 - convert rest of ceph_fs.h to le32/le64 notation, cleaning up userspace appropriately
 - vfs
  - can we use dentry_path(), if it gets merged into mainline?
-- osd client
-  - readpages (readahead)
-  - async (caching) mode
-  - sync mode (write-through)
+- io / osd client
+  - carry wrbuffer/rdcache caps until data is flushed
+    - this should make the utimes bit kick in
+    - invalidate cache pages?
+  - kick requests when new map arrives
+  - sync?
+  - sync on unmount?
   - capability changes (flush.. need way to initiate/block on writeback initiated by mds)
   - osd ack vs commit handling.  hmm!
-  - handle map changes (resubmit ops)
 - mon client
   - work out message resend logic..?
 - unmount
index 782eafa6edc9221344da5f29fe1ef6b0f7b72429..343ff1005f82873d8c6f38733bd30f5c75fe6099 100644 (file)
@@ -73,6 +73,13 @@ static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)
 }
 
 
+static int ceph_syncfs(struct super_block *sb, int wait)
+{
+       dout(10, "sync_fs %d\n", wait);
+       return 0;
+}
+
+
 /**
  * ceph_show_options - Show mount options in /proc/mounts
  * @m: seq_file to write to
@@ -192,7 +199,7 @@ static const struct super_operations ceph_sops = {
        .alloc_inode    = ceph_alloc_inode,
        .destroy_inode  = ceph_destroy_inode,
        .write_inode    = ceph_write_inode,
-/*     .sync_fs        = ceph_syncfs, */
+       .sync_fs        = ceph_syncfs, 
        .put_super      = ceph_put_super,
        .show_options   = ceph_show_options,
        .statfs         = ceph_statfs,