2 #include "ceph_debug.h"
4 #include <linux/backing-dev.h>
6 #include <linux/inet.h>
8 #include <linux/module.h>
9 #include <linux/mount.h>
10 #include <linux/parser.h>
11 #include <linux/rwsem.h>
12 #include <linux/sched.h>
13 #include <linux/seq_file.h>
14 #include <linux/statfs.h>
15 #include <linux/string.h>
16 #include <linux/version.h>
17 #include <linux/vmalloc.h>
21 #include "mon_client.h"
24 * Ceph superblock operations
26 * Handle the basics of mounting, unmounting.
31 * find filename portion of a path (/foo/bar/baz -> baz)
33 const char *ceph_file_part(const char *s, int len)
35 const char *e = s + len;
37 while (e != s && *(e-1) != '/')
46 static void ceph_put_super(struct super_block *s)
48 struct ceph_client *cl = ceph_client(s);
51 ceph_mdsc_close_sessions(&cl->mdsc);
55 static int ceph_statfs(struct dentry *dentry, struct kstatfs *buf)
57 struct ceph_client *client = ceph_inode_to_client(dentry->d_inode);
58 struct ceph_monmap *monmap = client->monc.monmap;
59 struct ceph_statfs st;
64 err = ceph_monc_do_statfs(&client->monc, &st);
69 buf->f_type = CEPH_SUPER_MAGIC; /* ?? */
72 * express utilization in terms of large blocks to avoid
73 * overflow on 32-bit machines.
75 buf->f_bsize = 1 << CEPH_BLOCK_SHIFT;
76 buf->f_blocks = le64_to_cpu(st.kb) >> (CEPH_BLOCK_SHIFT-10);
77 buf->f_bfree = (le64_to_cpu(st.kb) - le64_to_cpu(st.kb_used)) >>
78 (CEPH_BLOCK_SHIFT-10);
79 buf->f_bavail = le64_to_cpu(st.kb_avail) >> (CEPH_BLOCK_SHIFT-10);
81 buf->f_files = le64_to_cpu(st.num_objects);
83 buf->f_namelen = PATH_MAX;
84 buf->f_frsize = PAGE_CACHE_SIZE;
86 /* leave fsid little-endian, regardless of host endianness */
87 fsid = *(u64 *)(&monmap->fsid) ^ *((u64 *)&monmap->fsid + 1);
88 buf->f_fsid.val[0] = fsid & 0xffffffff;
89 buf->f_fsid.val[1] = fsid >> 32;
95 static int ceph_syncfs(struct super_block *sb, int wait)
97 dout("sync_fs %d\n", wait);
98 ceph_osdc_sync(&ceph_client(sb)->osdc);
99 ceph_mdsc_sync(&ceph_client(sb)->mdsc);
100 dout("sync_fs %d done\n", wait);
106 * ceph_show_options - Show mount options in /proc/mounts
107 * @m: seq_file to write to
108 * @mnt: mount descriptor
110 static int ceph_show_options(struct seq_file *m, struct vfsmount *mnt)
112 struct ceph_client *client = ceph_sb_to_client(mnt->mnt_sb);
113 struct ceph_mount_args *args = client->mount_args;
115 if (args->flags & CEPH_OPT_FSID)
116 seq_printf(m, ",fsidmajor=%llu,fsidminor%llu",
117 le64_to_cpu(*(__le64 *)&args->fsid.fsid[0]),
118 le64_to_cpu(*(__le64 *)&args->fsid.fsid[8]));
119 if (args->flags & CEPH_OPT_NOSHARE)
120 seq_puts(m, ",noshare");
121 if (args->flags & CEPH_OPT_DIRSTAT)
122 seq_puts(m, ",dirstat");
123 if ((args->flags & CEPH_OPT_RBYTES) == 0)
124 seq_puts(m, ",norbytes");
125 if (args->flags & CEPH_OPT_NOCRC)
126 seq_puts(m, ",nocrc");
127 if (args->flags & CEPH_OPT_NOASYNCREADDIR)
128 seq_puts(m, ",noasyncreaddir");
129 if (strcmp(args->snapdir_name, CEPH_SNAPDIRNAME_DEFAULT))
130 seq_printf(m, ",snapdirname=%s", args->snapdir_name);
132 seq_printf(m, ",name=%s", args->name);
134 seq_puts(m, ",secret=<hidden>");
141 struct kmem_cache *ceph_inode_cachep;
142 struct kmem_cache *ceph_cap_cachep;
143 struct kmem_cache *ceph_dentry_cachep;
144 struct kmem_cache *ceph_file_cachep;
146 static void ceph_inode_init_once(void *foo)
148 struct ceph_inode_info *ci = foo;
149 inode_init_once(&ci->vfs_inode);
152 static int __init init_caches(void)
154 ceph_inode_cachep = kmem_cache_create("ceph_inode_info",
155 sizeof(struct ceph_inode_info),
156 __alignof__(struct ceph_inode_info),
157 (SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD),
158 ceph_inode_init_once);
159 if (ceph_inode_cachep == NULL)
162 ceph_cap_cachep = KMEM_CACHE(ceph_cap,
163 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD);
164 if (ceph_cap_cachep == NULL)
167 ceph_dentry_cachep = KMEM_CACHE(ceph_dentry_info,
168 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD);
169 if (ceph_dentry_cachep == NULL)
172 ceph_file_cachep = KMEM_CACHE(ceph_file_info,
173 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD);
174 if (ceph_file_cachep == NULL)
180 kmem_cache_destroy(ceph_dentry_cachep);
182 kmem_cache_destroy(ceph_cap_cachep);
184 kmem_cache_destroy(ceph_inode_cachep);
188 static void destroy_caches(void)
190 kmem_cache_destroy(ceph_inode_cachep);
191 kmem_cache_destroy(ceph_cap_cachep);
192 kmem_cache_destroy(ceph_dentry_cachep);
193 kmem_cache_destroy(ceph_file_cachep);
198 * ceph_umount_begin - initiate forced umount. Tear down down the
199 * mount, skipping steps that may hang while waiting for server(s).
201 static void ceph_umount_begin(struct super_block *sb)
203 struct ceph_client *client = ceph_sb_to_client(sb);
205 dout("ceph_umount_begin - starting forced umount\n");
208 client->mount_state = CEPH_MOUNT_SHUTDOWN;
212 static const struct super_operations ceph_super_ops = {
213 .alloc_inode = ceph_alloc_inode,
214 .destroy_inode = ceph_destroy_inode,
215 .write_inode = ceph_write_inode,
216 .sync_fs = ceph_syncfs,
217 .put_super = ceph_put_super,
218 .show_options = ceph_show_options,
219 .statfs = ceph_statfs,
220 .umount_begin = ceph_umount_begin,
224 const char *ceph_msg_type_name(int type)
227 case CEPH_MSG_SHUTDOWN: return "shutdown";
228 case CEPH_MSG_PING: return "ping";
229 case CEPH_MSG_AUTH: return "auth";
230 case CEPH_MSG_AUTH_REPLY: return "auth_reply";
231 case CEPH_MSG_MON_MAP: return "mon_map";
232 case CEPH_MSG_MON_GET_MAP: return "mon_get_map";
233 case CEPH_MSG_MON_SUBSCRIBE: return "mon_subscribe";
234 case CEPH_MSG_MON_SUBSCRIBE_ACK: return "mon_subscribe_ack";
235 case CEPH_MSG_STATFS: return "statfs";
236 case CEPH_MSG_STATFS_REPLY: return "statfs_reply";
237 case CEPH_MSG_MDS_MAP: return "mds_map";
238 case CEPH_MSG_CLIENT_SESSION: return "client_session";
239 case CEPH_MSG_CLIENT_RECONNECT: return "client_reconnect";
240 case CEPH_MSG_CLIENT_REQUEST: return "client_request";
241 case CEPH_MSG_CLIENT_REQUEST_FORWARD: return "client_request_forward";
242 case CEPH_MSG_CLIENT_REPLY: return "client_reply";
243 case CEPH_MSG_CLIENT_CAPS: return "client_caps";
244 case CEPH_MSG_CLIENT_CAPRELEASE: return "client_cap_release";
245 case CEPH_MSG_CLIENT_SNAP: return "client_snap";
246 case CEPH_MSG_CLIENT_LEASE: return "client_lease";
247 case CEPH_MSG_OSD_MAP: return "osd_map";
248 case CEPH_MSG_OSD_OP: return "osd_op";
249 case CEPH_MSG_OSD_OPREPLY: return "osd_opreply";
250 default: return "unknown";
266 Opt_caps_wanted_delay_min,
267 Opt_caps_wanted_delay_max,
268 Opt_readdir_max_entries,
275 /* string args above */
286 static match_table_t arg_tokens = {
287 {Opt_fsidmajor, "fsidmajor=%ld"},
288 {Opt_fsidminor, "fsidminor=%ld"},
289 {Opt_monport, "monport=%d"},
290 {Opt_wsize, "wsize=%d"},
291 {Opt_rsize, "rsize=%d"},
292 {Opt_osdtimeout, "osdtimeout=%d"},
293 {Opt_mount_timeout, "mount_timeout=%d"},
294 {Opt_caps_wanted_delay_min, "caps_wanted_delay_min=%d"},
295 {Opt_caps_wanted_delay_max, "caps_wanted_delay_max=%d"},
296 {Opt_readdir_max_entries, "readdir_max_entries=%d"},
298 {Opt_snapdirname, "snapdirname=%s"},
299 {Opt_name, "name=%s"},
300 {Opt_secret, "secret=%s"},
301 /* string args above */
303 {Opt_noshare, "noshare"},
304 {Opt_dirstat, "dirstat"},
305 {Opt_nodirstat, "nodirstat"},
306 {Opt_rbytes, "rbytes"},
307 {Opt_norbytes, "norbytes"},
308 {Opt_nocrc, "nocrc"},
309 {Opt_noasyncreaddir, "noasyncreaddir"},
314 static struct ceph_mount_args *parse_mount_args(int flags, char *options,
315 const char *dev_name,
318 struct ceph_mount_args *args;
321 substring_t argstr[MAX_OPT_ARGS];
323 args = kzalloc(sizeof(*args), GFP_KERNEL);
325 return ERR_PTR(-ENOMEM);
326 args->mon_addr = kcalloc(CEPH_MAX_MON, sizeof(*args->mon_addr),
331 dout("parse_mount_args %p, dev_name '%s'\n", args, dev_name);
333 /* start with defaults */
334 args->sb_flags = flags;
335 args->flags = CEPH_OPT_DEFAULT;
336 args->osd_timeout = 5; /* seconds */
337 args->mount_timeout = CEPH_MOUNT_TIMEOUT_DEFAULT; /* seconds */
338 args->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT;
339 args->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT;
340 args->rsize = CEPH_MOUNT_RSIZE_DEFAULT;
341 args->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL);
342 args->cap_release_safety = CEPH_CAPS_PER_RELEASE * 4;
343 args->max_readdir = 1024;
345 /* ip1[:port1][,ip2[:port2]...]:/subdir/in/fs */
349 *path = strstr(dev_name, ":/");
351 pr_err("device name is missing path (no :/ in %s)\n",
357 err = ceph_parse_ips(dev_name, *path, args->mon_addr,
358 CEPH_MAX_MON, &args->num_mon);
364 dout("server path '%s'\n", *path);
366 /* parse mount options */
367 while ((c = strsep(&options, ",")) != NULL) {
368 int token, intval, ret;
372 token = match_token((char *)c, arg_tokens, argstr);
374 pr_err("bad mount option at '%s'\n", c);
377 if (token < Opt_last_int) {
378 ret = match_int(&argstr[0], &intval);
380 pr_err("bad mount option arg (not int) "
384 dout("got int token %d val %d\n", token, intval);
385 } else if (token > Opt_last_int && token < Opt_last_string) {
386 dout("got string token %d val %s\n", token,
389 dout("got token %d\n", token);
393 *(__le64 *)&args->fsid.fsid[0] = cpu_to_le64(intval);
396 *(__le64 *)&args->fsid.fsid[8] = cpu_to_le64(intval);
399 err = ceph_parse_ips(argstr[0].from,
405 args->flags |= CEPH_OPT_MYIP;
408 case Opt_snapdirname:
409 kfree(args->snapdir_name);
410 args->snapdir_name = kstrndup(argstr[0].from,
411 argstr[0].to-argstr[0].from,
415 args->name = kstrndup(argstr[0].from,
416 argstr[0].to-argstr[0].from,
420 args->secret = kstrndup(argstr[0].from,
421 argstr[0].to-argstr[0].from,
427 args->wsize = intval;
430 args->rsize = intval;
433 args->osd_timeout = intval;
435 case Opt_mount_timeout:
436 args->mount_timeout = intval;
438 case Opt_caps_wanted_delay_min:
439 args->caps_wanted_delay_min = intval;
441 case Opt_caps_wanted_delay_max:
442 args->caps_wanted_delay_max = intval;
444 case Opt_readdir_max_entries:
445 args->max_readdir = intval;
449 args->flags |= CEPH_OPT_NOSHARE;
453 args->flags |= CEPH_OPT_DIRSTAT;
456 args->flags &= ~CEPH_OPT_DIRSTAT;
459 args->flags |= CEPH_OPT_RBYTES;
462 args->flags &= ~CEPH_OPT_RBYTES;
465 args->flags |= CEPH_OPT_NOCRC;
467 case Opt_noasyncreaddir:
468 args->flags |= CEPH_OPT_NOASYNCREADDIR;
478 kfree(args->mon_addr);
483 static void destroy_mount_args(struct ceph_mount_args *args)
485 dout("destroy_mount_args %p\n", args);
486 kfree(args->snapdir_name);
487 args->snapdir_name = NULL;
496 * create a fresh client instance
498 static struct ceph_client *ceph_create_client(struct ceph_mount_args *args)
500 struct ceph_client *client;
503 client = kzalloc(sizeof(*client), GFP_KERNEL);
505 return ERR_PTR(-ENOMEM);
507 mutex_init(&client->mount_mutex);
509 init_waitqueue_head(&client->mount_wq);
512 client->mount_state = CEPH_MOUNT_MOUNTING;
514 client->mount_args = args;
518 client->mount_err = 0;
519 client->signed_ticket = NULL;
520 client->signed_ticket_len = 0;
522 err = bdi_init(&client->backing_dev_info);
527 client->wb_wq = create_workqueue("ceph-writeback");
528 if (client->wb_wq == NULL)
530 client->pg_inv_wq = create_singlethread_workqueue("ceph-pg-invalid");
531 if (client->pg_inv_wq == NULL)
533 client->trunc_wq = create_singlethread_workqueue("ceph-trunc");
534 if (client->trunc_wq == NULL)
538 err = ceph_monc_init(&client->monc, client);
541 err = ceph_osdc_init(&client->osdc, client);
544 err = ceph_mdsc_init(&client->mdsc, client);
550 ceph_osdc_stop(&client->osdc);
552 ceph_monc_stop(&client->monc);
554 destroy_workqueue(client->trunc_wq);
556 destroy_workqueue(client->pg_inv_wq);
558 destroy_workqueue(client->wb_wq);
560 bdi_destroy(&client->backing_dev_info);
566 static void ceph_destroy_client(struct ceph_client *client)
568 dout("destroy_client %p\n", client);
571 ceph_mdsc_stop(&client->mdsc);
572 ceph_monc_stop(&client->monc);
573 ceph_osdc_stop(&client->osdc);
575 kfree(client->signed_ticket);
577 ceph_debugfs_client_cleanup(client);
578 destroy_workqueue(client->wb_wq);
579 destroy_workqueue(client->pg_inv_wq);
580 destroy_workqueue(client->trunc_wq);
583 ceph_messenger_destroy(client->msgr);
584 if (client->wb_pagevec_pool)
585 mempool_destroy(client->wb_pagevec_pool);
587 destroy_mount_args(client->mount_args);
590 dout("destroy_client %p done\n", client);
594 * true if we have the mon map (and have thus joined the cluster)
596 static int have_mon_map(struct ceph_client *client)
598 return client->monc.monmap && client->monc.monmap->epoch;
602 * Bootstrap mount by opening the root directory. Note the mount
603 * @started time from caller, and time out if this takes too long.
605 static struct dentry *open_root_dentry(struct ceph_client *client,
607 unsigned long started)
609 struct ceph_mds_client *mdsc = &client->mdsc;
610 struct ceph_mds_request *req = NULL;
615 dout("open_root_inode opening '%s'\n", path);
616 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETATTR, USE_ANY_MDS);
618 return ERR_PTR(PTR_ERR(req));
619 req->r_path1 = kstrdup(path, GFP_NOFS);
620 req->r_ino1.ino = CEPH_INO_ROOT;
621 req->r_ino1.snap = CEPH_NOSNAP;
622 req->r_started = started;
623 req->r_timeout = client->mount_args->mount_timeout * HZ;
624 req->r_args.getattr.mask = cpu_to_le32(CEPH_STAT_CAP_INODE);
626 err = ceph_mdsc_do_request(mdsc, NULL, req);
628 dout("open_root_inode success\n");
629 if (ceph_ino(req->r_target_inode) == CEPH_INO_ROOT &&
630 client->sb->s_root == NULL)
631 root = d_alloc_root(req->r_target_inode);
633 root = d_obtain_alias(req->r_target_inode);
634 req->r_target_inode = NULL;
635 dout("open_root_inode success, root dentry is %p\n", root);
639 ceph_mdsc_put_request(req);
644 * mount: join the ceph cluster, and open root directory.
646 static int ceph_mount(struct ceph_client *client, struct vfsmount *mnt,
649 struct ceph_entity_addr *myaddr = NULL;
651 unsigned long timeout = client->mount_args->mount_timeout * HZ;
652 unsigned long started = jiffies; /* note the start time */
655 dout("mount start\n");
656 mutex_lock(&client->mount_mutex);
658 /* initialize the messenger */
659 if (client->msgr == NULL) {
660 if (ceph_test_opt(client, MYIP))
661 myaddr = &client->mount_args->my_addr;
662 client->msgr = ceph_messenger_create(myaddr);
663 if (IS_ERR(client->msgr)) {
664 err = PTR_ERR(client->msgr);
668 client->msgr->nocrc = ceph_test_opt(client, NOCRC);
671 /* open session, and wait for mon, mds, and osd maps */
672 err = ceph_monc_open_session(&client->monc);
676 while (!have_mon_map(client)) {
678 if (timeout && time_after_eq(jiffies, started + timeout))
682 dout("mount waiting for mon_map\n");
683 err = wait_event_interruptible_timeout(client->mount_wq, /* FIXME */
684 have_mon_map(client),
686 if (err == -EINTR || err == -ERESTARTSYS)
690 dout("mount opening root\n");
691 root = open_root_dentry(client, "", started);
696 if (client->sb->s_root)
699 client->sb->s_root = root;
704 dout("mount opening base mountpoint\n");
705 root = open_root_dentry(client, path, started);
708 dput(client->sb->s_root);
709 client->sb->s_root = NULL;
714 mnt->mnt_root = root;
715 mnt->mnt_sb = client->sb;
717 client->mount_state = CEPH_MOUNT_MOUNTED;
718 dout("mount success\n");
722 mutex_unlock(&client->mount_mutex);
726 static int ceph_set_super(struct super_block *s, void *data)
728 struct ceph_client *client = data;
731 dout("set_super %p data %p\n", s, data);
733 s->s_flags = client->mount_args->sb_flags;
734 s->s_maxbytes = 1ULL << 40; /* temp value until we get mdsmap */
736 s->s_fs_info = client;
739 s->s_op = &ceph_super_ops;
740 s->s_export_op = &ceph_export_ops;
742 s->s_time_gran = 1000; /* 1000 ns == 1 us */
744 ret = set_anon_super(s, NULL); /* what is that second arg for? */
757 * share superblock if same fs AND options
759 static int ceph_compare_super(struct super_block *sb, void *data)
761 struct ceph_client *new = data;
762 struct ceph_mount_args *args = new->mount_args;
763 struct ceph_client *other = ceph_sb_to_client(sb);
766 dout("ceph_compare_super %p\n", sb);
767 if (args->flags & CEPH_OPT_FSID) {
768 if (ceph_fsid_compare(&args->fsid, &other->fsid)) {
769 dout("fsid doesn't match\n");
773 /* do we share (a) monitor? */
774 for (i = 0; i < new->monc.monmap->num_mon; i++)
775 if (ceph_monmap_contains(other->monc.monmap,
776 &new->monc.monmap->mon_inst[i].addr))
778 if (i == new->monc.monmap->num_mon) {
779 dout("mon ip not part of monmap\n");
782 dout("mon ip matches existing sb %p\n", sb);
784 if (args->sb_flags != other->mount_args->sb_flags) {
785 dout("flags differ\n");
792 * construct our own bdi so we can control readahead, etc.
794 static int ceph_register_bdi(struct super_block *sb, struct ceph_client *client)
798 sb->s_bdi = &client->backing_dev_info;
800 /* set ra_pages based on rsize mount option? */
801 if (client->mount_args->rsize >= PAGE_CACHE_SIZE)
802 client->backing_dev_info.ra_pages =
803 (client->mount_args->rsize + PAGE_CACHE_SIZE - 1)
805 err = bdi_register_dev(&client->backing_dev_info, sb->s_dev);
809 static int ceph_get_sb(struct file_system_type *fs_type,
810 int flags, const char *dev_name, void *data,
811 struct vfsmount *mnt)
813 struct super_block *sb;
814 struct ceph_client *client;
816 int (*compare_super)(struct super_block *, void *) = ceph_compare_super;
817 const char *path = NULL;
818 struct ceph_mount_args *args;
820 dout("ceph_get_sb\n");
821 args = parse_mount_args(flags, data, dev_name, &path);
827 /* create client (which we may/may not use) */
828 client = ceph_create_client(args);
829 if (IS_ERR(client)) {
830 err = PTR_ERR(client);
834 if (client->mount_args->flags & CEPH_OPT_NOSHARE)
835 compare_super = NULL;
836 sb = sget(fs_type, compare_super, ceph_set_super, client);
842 if (ceph_client(sb) != client) {
843 ceph_destroy_client(client);
844 client = ceph_client(sb);
845 dout("get_sb got existing client %p\n", client);
847 dout("get_sb using new client %p\n", client);
849 /* set up mempools */
851 client->wb_pagevec_pool = mempool_create_kmalloc_pool(10,
852 client->mount_args->wsize >> PAGE_CACHE_SHIFT);
853 if (!client->wb_pagevec_pool)
856 err = ceph_register_bdi(sb, client);
861 err = ceph_mount(client, mnt, path);
864 dout("root %p inode %p ino %llx.%llx\n", mnt->mnt_root,
865 mnt->mnt_root->d_inode, ceph_vinop(mnt->mnt_root->d_inode));
869 ceph_mdsc_close_sessions(&client->mdsc);
870 up_write(&sb->s_umount);
871 deactivate_super(sb);
875 ceph_destroy_client(client);
877 dout("ceph_get_sb fail %d\n", err);
881 static void ceph_kill_sb(struct super_block *s)
883 struct ceph_client *client = ceph_sb_to_client(s);
884 dout("kill_sb %p\n", s);
885 ceph_mdsc_pre_umount(&client->mdsc);
886 kill_anon_super(s); /* will call put_super after sb is r/o */
887 bdi_unregister(&client->backing_dev_info);
888 bdi_destroy(&client->backing_dev_info);
889 ceph_destroy_client(client);
892 static struct file_system_type ceph_fs_type = {
893 .owner = THIS_MODULE,
895 .get_sb = ceph_get_sb,
896 .kill_sb = ceph_kill_sb,
897 .fs_flags = FS_RENAME_DOES_D_MOVE,
900 #define _STRINGIFY(x) #x
901 #define STRINGIFY(x) _STRINGIFY(x)
903 static int __init init_ceph(void)
907 ret = ceph_debugfs_init();
911 ret = ceph_msgr_init();
921 ret = register_filesystem(&ceph_fs_type);
925 pr_info("loaded %d.%d.%d (mon/mds/osd proto %d/%d/%d)\n",
926 CEPH_VERSION_MAJOR, CEPH_VERSION_MINOR, CEPH_VERSION_PATCH,
927 CEPH_MONC_PROTOCOL, CEPH_MDSC_PROTOCOL, CEPH_OSDC_PROTOCOL);
935 ceph_debugfs_cleanup();
940 static void __exit exit_ceph(void)
943 unregister_filesystem(&ceph_fs_type);
944 ceph_caps_finalize();
947 ceph_debugfs_cleanup();
950 module_init(init_ceph);
951 module_exit(exit_ceph);
953 MODULE_AUTHOR("Sage Weil <sage@newdream.net>");
954 MODULE_AUTHOR("Yehuda Sadeh <yehuda@hq.newdream.net>");
955 MODULE_AUTHOR("Patience Warnick <patience@newdream.net>");
956 MODULE_DESCRIPTION("Ceph filesystem for Linux");
957 MODULE_LICENSE("GPL");