|
#define | CEPH_OSD_PROTOCOL 8 /* cluster internal */ |
|
#define | CEPH_MDS_PROTOCOL 12 /* cluster internal */ |
|
#define | CEPH_MON_PROTOCOL 5 /* cluster internal */ |
|
#define | CEPH_OSDC_PROTOCOL 24 /* server/client */ |
|
#define | CEPH_MDSC_PROTOCOL 32 /* server/client */ |
|
#define | CEPH_MONC_PROTOCOL 15 /* server/client */ |
|
#define | CEPH_INO_ROOT 1 |
|
#define | CEPH_INO_CEPH 2 /* hidden .ceph dir */ |
|
#define | CEPH_MAX_MON 31 |
|
#define | CEPH_MIN_STRIPE_UNIT 65536 |
|
#define | CEPH_CRYPTO_NONE 0x0 |
|
#define | CEPH_CRYPTO_AES 0x1 |
|
#define | CEPH_AES_IV "cephsageyudagreg" |
|
#define | CEPH_AUTH_UNKNOWN 0x0 |
|
#define | CEPH_AUTH_NONE 0x1 |
|
#define | CEPH_AUTH_CEPHX 0x2 |
|
#define | CEPH_AUTH_UID_DEFAULT ((__u64) -1) |
|
#define | CEPH_MSG_SHUTDOWN 1 |
|
#define | CEPH_MSG_PING 2 |
|
#define | CEPH_MSG_MON_MAP 4 |
|
#define | CEPH_MSG_MON_GET_MAP 5 |
|
#define | CEPH_MSG_STATFS 13 |
|
#define | CEPH_MSG_STATFS_REPLY 14 |
|
#define | CEPH_MSG_MON_SUBSCRIBE 15 |
|
#define | CEPH_MSG_MON_SUBSCRIBE_ACK 16 |
|
#define | CEPH_MSG_AUTH 17 |
|
#define | CEPH_MSG_AUTH_REPLY 18 |
|
#define | CEPH_MSG_MDS_MAP 21 |
|
#define | CEPH_MSG_CLIENT_SESSION 22 |
|
#define | CEPH_MSG_CLIENT_RECONNECT 23 |
|
#define | CEPH_MSG_CLIENT_REQUEST 24 |
|
#define | CEPH_MSG_CLIENT_REQUEST_FORWARD 25 |
|
#define | CEPH_MSG_CLIENT_REPLY 26 |
|
#define | CEPH_MSG_CLIENT_CAPS 0x310 |
|
#define | CEPH_MSG_CLIENT_LEASE 0x311 |
|
#define | CEPH_MSG_CLIENT_SNAP 0x312 |
|
#define | CEPH_MSG_CLIENT_CAPRELEASE 0x313 |
|
#define | CEPH_MSG_POOLOP_REPLY 48 |
|
#define | CEPH_MSG_POOLOP 49 |
|
#define | CEPH_MSG_OSD_MAP 41 |
|
#define | CEPH_MSG_OSD_OP 42 |
|
#define | CEPH_MSG_OSD_OPREPLY 43 |
|
#define | CEPH_MSG_WATCH_NOTIFY 44 |
|
#define | CEPH_SUBSCRIBE_ONETIME 1 /* i want only 1 update after have */ |
|
#define | CEPH_MDS_STATE_DNE 0 /* down, does not exist. */ |
|
#define | CEPH_MDS_STATE_STOPPED |
|
#define | CEPH_MDS_STATE_BOOT -4 /* up, boot announcement. */ |
|
#define | CEPH_MDS_STATE_STANDBY -5 /* up, idle. waiting for assignment. */ |
|
#define | CEPH_MDS_STATE_CREATING -6 /* up, creating MDS instance. */ |
|
#define | CEPH_MDS_STATE_STARTING -7 /* up, starting previously stopped mds */ |
|
#define | CEPH_MDS_STATE_STANDBY_REPLAY -8 /* up, tailing active node's journal */ |
|
#define | CEPH_MDS_STATE_REPLAY 8 /* up, replaying journal. */ |
|
#define | CEPH_MDS_STATE_RESOLVE |
|
#define | CEPH_MDS_STATE_RECONNECT 10 /* up, reconnect to clients */ |
|
#define | CEPH_MDS_STATE_REJOIN 11 /* up, rejoining distributed cache */ |
|
#define | CEPH_MDS_STATE_CLIENTREPLAY 12 /* up, replaying client operations */ |
|
#define | CEPH_MDS_STATE_ACTIVE 13 /* up, active */ |
|
#define | CEPH_MDS_STATE_STOPPING 14 /* up, but exporting metadata */ |
|
#define | CEPH_LOCK_DVERSION 1 |
|
#define | CEPH_LOCK_DN 2 |
|
#define | CEPH_LOCK_ISNAP 16 |
|
#define | CEPH_LOCK_IVERSION 32 /* mds internal */ |
|
#define | CEPH_LOCK_IFILE 64 |
|
#define | CEPH_LOCK_IAUTH 128 |
|
#define | CEPH_LOCK_ILINK 256 |
|
#define | CEPH_LOCK_IDFT 512 /* dir frag tree */ |
|
#define | CEPH_LOCK_INEST 1024 /* mds internal */ |
|
#define | CEPH_LOCK_IXATTR 2048 |
|
#define | CEPH_LOCK_IFLOCK 4096 /* advisory file locks */ |
|
#define | CEPH_LOCK_INO 8192 /* immutable inode bits; not a lock */ |
|
#define | CEPH_MDS_OP_WRITE 0x001000 |
|
#define | CEPH_SETATTR_MODE 1 |
|
#define | CEPH_SETATTR_UID 2 |
|
#define | CEPH_SETATTR_GID 4 |
|
#define | CEPH_SETATTR_MTIME 8 |
|
#define | CEPH_SETATTR_ATIME 16 |
|
#define | CEPH_SETATTR_SIZE 32 |
|
#define | CEPH_SETATTR_CTIME 64 |
|
#define | CEPH_MDS_FLAG_REPLAY 1 /* this is a replayed op */ |
|
#define | CEPH_MDS_FLAG_WANT_DENTRY 2 /* want dentry in reply */ |
|
#define | CEPH_CAP_FLAG_AUTH 1 /* cap is issued by auth mds */ |
|
#define | CEPH_LOCK_FCNTL 1 |
|
#define | CEPH_LOCK_FLOCK 2 |
|
#define | CEPH_LOCK_SHARED 1 |
|
#define | CEPH_LOCK_EXCL 2 |
|
#define | CEPH_LOCK_UNLOCK 4 |
|
#define | CEPH_FILE_MODE_PIN 0 |
|
#define | CEPH_FILE_MODE_RD 1 |
|
#define | CEPH_FILE_MODE_WR 2 |
|
#define | CEPH_FILE_MODE_RDWR 3 /* RD | WR */ |
|
#define | CEPH_FILE_MODE_LAZY 4 /* lazy io */ |
|
#define | CEPH_FILE_MODE_NUM 8 /* bc these are bit fields.. mostly */ |
|
#define | CEPH_CAP_PIN 1 /* no specific capabilities beyond the pin */ |
|
#define | CEPH_CAP_GSHARED 1 /* client can reads */ |
|
#define | CEPH_CAP_GEXCL 2 /* client can read and update */ |
|
#define | CEPH_CAP_GCACHE 4 /* (file) client can cache reads */ |
|
#define | CEPH_CAP_GRD 8 /* (file) client can read */ |
|
#define | CEPH_CAP_GWR 16 /* (file) client can write */ |
|
#define | CEPH_CAP_GBUFFER 32 /* (file) client can buffer writes */ |
|
#define | CEPH_CAP_GWREXTEND 64 /* (file) client can extend EOF */ |
|
#define | CEPH_CAP_GLAZYIO 128 /* (file) client can perform lazy io */ |
|
#define | CEPH_CAP_SAUTH 2 |
|
#define | CEPH_CAP_SLINK 4 |
|
#define | CEPH_CAP_SXATTR 6 |
|
#define | CEPH_CAP_SFILE 8 |
|
#define | CEPH_CAP_SFLOCK 20 |
|
#define | CEPH_CAP_BITS 22 |
|
#define | CEPH_CAP_AUTH_SHARED (CEPH_CAP_GSHARED << CEPH_CAP_SAUTH) |
|
#define | CEPH_CAP_AUTH_EXCL (CEPH_CAP_GEXCL << CEPH_CAP_SAUTH) |
|
#define | CEPH_CAP_LINK_SHARED (CEPH_CAP_GSHARED << CEPH_CAP_SLINK) |
|
#define | CEPH_CAP_LINK_EXCL (CEPH_CAP_GEXCL << CEPH_CAP_SLINK) |
|
#define | CEPH_CAP_XATTR_SHARED (CEPH_CAP_GSHARED << CEPH_CAP_SXATTR) |
|
#define | CEPH_CAP_XATTR_EXCL (CEPH_CAP_GEXCL << CEPH_CAP_SXATTR) |
|
#define | CEPH_CAP_FILE(x) (x << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_SHARED (CEPH_CAP_GSHARED << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_EXCL (CEPH_CAP_GEXCL << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_CACHE (CEPH_CAP_GCACHE << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_RD (CEPH_CAP_GRD << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_WR (CEPH_CAP_GWR << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_BUFFER (CEPH_CAP_GBUFFER << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_WREXTEND (CEPH_CAP_GWREXTEND << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FILE_LAZYIO (CEPH_CAP_GLAZYIO << CEPH_CAP_SFILE) |
|
#define | CEPH_CAP_FLOCK_SHARED (CEPH_CAP_GSHARED << CEPH_CAP_SFLOCK) |
|
#define | CEPH_CAP_FLOCK_EXCL (CEPH_CAP_GEXCL << CEPH_CAP_SFLOCK) |
|
#define | CEPH_STAT_CAP_INODE CEPH_CAP_PIN |
|
#define | CEPH_STAT_CAP_TYPE CEPH_CAP_PIN /* mode >> 12 */ |
|
#define | CEPH_STAT_CAP_SYMLINK CEPH_CAP_PIN |
|
#define | CEPH_STAT_CAP_UID CEPH_CAP_AUTH_SHARED |
|
#define | CEPH_STAT_CAP_GID CEPH_CAP_AUTH_SHARED |
|
#define | CEPH_STAT_CAP_MODE CEPH_CAP_AUTH_SHARED |
|
#define | CEPH_STAT_CAP_NLINK CEPH_CAP_LINK_SHARED |
|
#define | CEPH_STAT_CAP_LAYOUT CEPH_CAP_FILE_SHARED |
|
#define | CEPH_STAT_CAP_MTIME CEPH_CAP_FILE_SHARED |
|
#define | CEPH_STAT_CAP_SIZE CEPH_CAP_FILE_SHARED |
|
#define | CEPH_STAT_CAP_ATIME CEPH_CAP_FILE_SHARED /* fixme */ |
|
#define | CEPH_STAT_CAP_XATTR CEPH_CAP_XATTR_SHARED |
|
#define | CEPH_STAT_CAP_INODE_ALL |
|
#define | CEPH_CAP_ANY_SHARED |
|
#define | CEPH_CAP_ANY_RD |
|
#define | CEPH_CAP_ANY_EXCL |
|
#define | CEPH_CAP_ANY_FILE_WR |
|
#define | CEPH_CAP_ANY_WR (CEPH_CAP_ANY_EXCL | CEPH_CAP_ANY_FILE_WR) |
|
#define | CEPH_CAP_ANY |
|
#define | CEPH_CAP_LOCKS |
|
#define | CEPH_MDS_LEASE_REVOKE 1 /* mds -> client */ |
|
#define | CEPH_MDS_LEASE_RELEASE 2 /* client -> mds */ |
|
#define | CEPH_MDS_LEASE_RENEW 3 /* client <-> mds */ |
|
#define | CEPH_MDS_LEASE_REVOKE_ACK 4 /* client -> mds */ |
|
|
enum | { WATCH_NOTIFY = 1,
WATCH_NOTIFY_COMPLETE = 2
} |
|
enum | {
POOL_OP_CREATE = 0x01,
POOL_OP_DELETE = 0x02,
POOL_OP_AUID_CHANGE = 0x03,
POOL_OP_CREATE_SNAP = 0x11,
POOL_OP_DELETE_SNAP = 0x12,
POOL_OP_CREATE_UNMANAGED_SNAP = 0x21,
POOL_OP_DELETE_UNMANAGED_SNAP = 0x22
} |
|
enum | {
CEPH_SESSION_REQUEST_OPEN,
CEPH_SESSION_OPEN,
CEPH_SESSION_REQUEST_CLOSE,
CEPH_SESSION_CLOSE,
CEPH_SESSION_REQUEST_RENEWCAPS,
CEPH_SESSION_RENEWCAPS,
CEPH_SESSION_STALE,
CEPH_SESSION_RECALL_STATE
} |
|
enum | {
CEPH_MDS_OP_LOOKUP = 0x00100,
CEPH_MDS_OP_GETATTR = 0x00101,
CEPH_MDS_OP_LOOKUPHASH = 0x00102,
CEPH_MDS_OP_LOOKUPPARENT = 0x00103,
CEPH_MDS_OP_LOOKUPINO = 0x00104,
CEPH_MDS_OP_SETXATTR = 0x01105,
CEPH_MDS_OP_RMXATTR = 0x01106,
CEPH_MDS_OP_SETLAYOUT = 0x01107,
CEPH_MDS_OP_SETATTR = 0x01108,
CEPH_MDS_OP_SETFILELOCK = 0x01109,
CEPH_MDS_OP_GETFILELOCK = 0x00110,
CEPH_MDS_OP_SETDIRLAYOUT =0x0110a,
CEPH_MDS_OP_MKNOD = 0x01201,
CEPH_MDS_OP_LINK = 0x01202,
CEPH_MDS_OP_UNLINK = 0x01203,
CEPH_MDS_OP_RENAME = 0x01204,
CEPH_MDS_OP_MKDIR = 0x01220,
CEPH_MDS_OP_RMDIR = 0x01221,
CEPH_MDS_OP_SYMLINK = 0x01222,
CEPH_MDS_OP_CREATE = 0x01301,
CEPH_MDS_OP_OPEN = 0x00302,
CEPH_MDS_OP_READDIR = 0x00305,
CEPH_MDS_OP_LOOKUPSNAP = 0x00400,
CEPH_MDS_OP_MKSNAP = 0x01400,
CEPH_MDS_OP_RMSNAP = 0x01401,
CEPH_MDS_OP_LSSNAP = 0x00402
} |
|
enum | {
CEPH_CAP_OP_GRANT,
CEPH_CAP_OP_REVOKE,
CEPH_CAP_OP_TRUNC,
CEPH_CAP_OP_EXPORT,
CEPH_CAP_OP_IMPORT,
CEPH_CAP_OP_UPDATE,
CEPH_CAP_OP_DROP,
CEPH_CAP_OP_FLUSH,
CEPH_CAP_OP_FLUSH_ACK,
CEPH_CAP_OP_FLUSHSNAP,
CEPH_CAP_OP_FLUSHSNAP_ACK,
CEPH_CAP_OP_RELEASE,
CEPH_CAP_OP_RENEW
} |
|
enum | { CEPH_SNAP_OP_UPDATE,
CEPH_SNAP_OP_CREATE,
CEPH_SNAP_OP_DESTROY,
CEPH_SNAP_OP_SPLIT
} |
|