From: Yehuda Sadeh Date: Wed, 11 Feb 2009 00:21:20 +0000 (-0800) Subject: kclient: added a proc function to read client data X-Git-Tag: v0.7~216 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b82ea40b22355ce7e50eb433046d6550aab49d4;p=ceph.git kclient: added a proc function to read client data --- diff --git a/src/kernel/proc.c b/src/kernel/proc.c index de9e9bca690c..49c5167b3865 100644 --- a/src/kernel/proc.c +++ b/src/kernel/proc.c @@ -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); }