]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: added a proc function to read client data
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 11 Feb 2009 00:21:20 +0000 (16:21 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 11 Feb 2009 00:21:20 +0000 (16:21 -0800)
src/kernel/proc.c

index de9e9bca690c91ab4b2f11bd3231c4d3fd0f354a..49c5167b3865665605638c838b6fac361adefc91 100644 (file)
@@ -200,10 +200,19 @@ void ceph_proc_cleanup(void)
        remove_proc_entry("fs/ceph", NULL);
 }
 
+static int ceph_proc_client_read(char *page, char **start, off_t off,
+                      int count, int *eof, void *data)
+{
+       return 0;
+}
+
 void ceph_proc_register_client(struct ceph_client *client)
 {
        char str[16];
+       struct proc_dir_entry *pde;
 
        snprintf(str, sizeof(str), "%d", client->whoami);
        client->proc_entry = proc_mkdir(str, proc_fs_ceph_clients);
+
+       pde = create_proc_read_entry("data", 0, client->proc_entry, ceph_proc_client_read, client);
 }