mds_client.o mdsmap.o \
mon_client.o \
osd_client.o osdmap.o crush/crush.o crush/mapper.o \
- proc.o
+ proc.o ceph_tools.o
else
#Otherwise we were called directly from the command
extern int ceph_debug_super;
extern int ceph_debug_protocol;
extern int ceph_debug_proc;
+extern int ceph_debug_tools;
#define DOUT_MASK_ADDR 0x00000001
#define DOUT_MASK_CAPS 0x00000002
#define DOUT_MASK_SUPER 0x00004000
#define DOUT_MASK_PROTOCOL 0x00008000
#define DOUT_MASK_PROC 0x00010000
+#define DOUT_MASK_TOOLS 0x00020000
#define DOUT_UNMASKABLE 0x80000000
{DOUT_MASK_SUPER, "super"},
{DOUT_MASK_PROTOCOL, "protocol"},
{DOUT_MASK_PROC, "proc"},
+ {DOUT_MASK_TOOLS, "tools"},
{0, NULL}
};
+#include <linux/namei.h>
+#include <linux/sched.h>
+
#include "ceph_debug.h"
int ceph_debug_dir = -1;
#define DOUT_PREFIX "dir: "
#include "super.h"
-#include <linux/namei.h>
-#include <linux/sched.h>
-
const struct inode_operations ceph_dir_iops;
const struct file_operations ceph_dir_fops;
struct dentry_operations ceph_dentry_ops;
struct ceph_msg *m;
m = kmalloc(sizeof(*m), GFP_NOFS);
+ dout(1, "ceph_msg_new alloc %p\n", m);
if (m == NULL)
goto out;
atomic_set(&m->nref, 1);
WARN_ON(1);
}
if (atomic_dec_and_test(&m->nref)) {
- dout(20, "ceph_msg_put last one on %p\n", m);
+ dout(1, "ceph_msg_put last one on %p\n", m);
WARN_ON(!list_empty(&m->list_head));
kfree(m->front.iov_base);
kfree(m);
void ceph_osdc_put_request(struct ceph_osd_request *req)
{
- dout(10, "put_request %p %d -> %d\n", req, atomic_read(&req->r_ref),
+ dout(1, "put_request %p %d -> %d\n", req, atomic_read(&req->r_ref),
atomic_read(&req->r_ref)-1);
BUG_ON(atomic_read(&req->r_ref) <= 0);
if (atomic_dec_and_test(&req->r_ref)) {
remove_proc_entry("debug", proc_fs_ceph);
remove_proc_entry("debug_msgr", proc_fs_ceph);
remove_proc_entry("debug_console", proc_fs_ceph);
+ remove_proc_entry("debug_mask", proc_fs_ceph);
remove_proc_entry("fs/ceph", NULL);
}
#include <linux/string.h>
#include <linux/version.h>
#include <linux/backing-dev.h>
+#include <linux/statfs.h>
/* debug levels; defined in super.h */
#define DOUT_PREFIX "super: "
#include "super.h"
-#include <linux/statfs.h>
#include "mon_client.h"
void ceph_dispatch(void *p, struct ceph_msg *msg);
dout(1, "init_ceph\n");
+#ifdef CEPH_BOOKKEEPER
+ ceph_bookkeeper_init();
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
ret = -ENOMEM;
ceph_kobj = kobject_create_and_add("ceph", fs_kobj);
kobject_put(ceph_kobj);
ceph_kobj = 0;
#endif
+#ifdef CEPH_BOOKKEEPER
+ ceph_bookkeeper_finalize();
+#endif
}
module_init(init_ceph);