Go to the documentation of this file. 1 #ifndef _FS_CEPH_LIBCEPH_H
2 #define _FS_CEPH_LIBCEPH_H
6 #include <asm/unaligned.h>
14 #include <linux/wait.h>
16 #include <linux/slab.h>
28 #define CEPH_OPT_FSID (1<<0)
29 #define CEPH_OPT_NOSHARE (1<<1)
30 #define CEPH_OPT_MYIP (1<<2)
31 #define CEPH_OPT_NOCRC (1<<3)
33 #define CEPH_OPT_DEFAULT (0)
35 #define ceph_set_opt(client, opt) \
36 (client)->options->flags |= CEPH_OPT_##opt;
37 #define ceph_test_opt(client, opt) \
38 (!!((client)->options->flags & CEPH_OPT_##opt))
65 #define CEPH_MOUNT_TIMEOUT_DEFAULT 60
66 #define CEPH_OSD_TIMEOUT_DEFAULT 60
67 #define CEPH_OSD_KEEPALIVE_DEFAULT 5
68 #define CEPH_OSD_IDLE_TTL_DEFAULT 60
70 #define CEPH_MSG_MAX_FRONT_LEN (16*1024*1024)
71 #define CEPH_MSG_MAX_DATA_LEN (16*1024*1024)
73 #define CEPH_AUTH_NAME_DEFAULT "guest"
81 #define CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT 5
82 #define CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT 60
84 #define CEPH_CAP_RELEASE_SAFETY_DEFAULT (CEPH_CAPS_PER_RELEASE * 4)
98 static inline unsigned long time_sub(
unsigned long a,
unsigned long b)
101 return (
long)a - (
long)b;
133 #ifdef CONFIG_DEBUG_FS
134 struct dentry *debugfs_dir;
135 struct dentry *debugfs_monmap;
136 struct dentry *debugfs_osdmap;
191 static inline int calc_pages_for(
u64 off,
u64 len)
206 const char *dev_name,
const char *dev_name_end,
207 int (*parse_extra_token)(
char *
c,
void *
private),
233 const char __user *
data,
234 loff_t off,
size_t len);
237 loff_t off,
size_t len);
240 loff_t off,
size_t len);
242 loff_t off,
size_t len);