From: Sage Weil Date: Wed, 2 Apr 2008 23:37:00 +0000 (-0700) Subject: kclient: syncfs stub X-Git-Tag: v0.2~217 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efe104bb404d2e5854baf921f7147a81f1a61ed0;p=ceph.git kclient: syncfs stub --- diff --git a/src/TODO b/src/TODO index 4a1ac14a08b3..a72066fe355f 100644 --- 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 diff --git a/src/kernel/super.c b/src/kernel/super.c index 782eafa6edc9..343ff1005f82 100644 --- a/src/kernel/super.c +++ b/src/kernel/super.c @@ -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,