Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rbd.c File Reference
#include <linux/ceph/libceph.h>
#include <linux/ceph/osd_client.h>
#include <linux/ceph/mon_client.h>
#include <linux/ceph/decode.h>
#include <linux/parser.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include "rbd_types.h"

Go to the source code of this file.

Data Structures

struct  rbd_image_header
 
struct  rbd_options
 
struct  rbd_client
 
struct  rbd_req_status
 
struct  rbd_req_coll
 
struct  rbd_request
 
struct  rbd_snap
 
struct  rbd_mapping
 
struct  rbd_device
 

Macros

#define RBD_DEBUG   /* Activate rbd_assert() calls */
 
#define SECTOR_SHIFT   9
 
#define SECTOR_SIZE   (1ULL << SECTOR_SHIFT)
 
#define U64_MAX   ((u64) (~0ULL))
 
#define RBD_DRV_NAME   "rbd"
 
#define RBD_DRV_NAME_LONG   "rbd (rados block device)"
 
#define RBD_MINORS_PER_MAJOR   256 /* max minors per blkdev */
 
#define RBD_MAX_SNAP_NAME_LEN   32
 
#define RBD_MAX_SNAP_COUNT   510 /* allows max snapc to fit in 4KB */
 
#define RBD_MAX_OPT_LEN   1024
 
#define RBD_SNAP_HEAD_NAME   "-"
 
#define RBD_IMAGE_ID_LEN_MAX   64
 
#define RBD_OBJ_PREFIX_LEN_MAX   64
 
#define DEV_NAME_LEN   32
 
#define MAX_INT_FORMAT_WIDTH   ((5 * sizeof (int)) / 2 + 1)
 
#define RBD_READ_ONLY_DEFAULT   false
 
#define rbd_assert(expr)
 

Enumerations

enum  {
  Opt_last_int, Opt_last_string, Opt_read_only, Opt_read_write,
  Opt_last_bool
}
 

Functions

int __init rbd_init (void)
 
void __exit rbd_exit (void)
 
 module_init (rbd_init)
 
 module_exit (rbd_exit)
 
 MODULE_AUTHOR ("Sage Weil <[email protected]>")
 
 MODULE_AUTHOR ("Yehuda Sadeh <[email protected]>")
 
 MODULE_DESCRIPTION ("rados block device")
 
 MODULE_AUTHOR ("Jeff Garzik <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DEV_NAME_LEN   32

Definition at line 79 of file rbd.c.

#define MAX_INT_FORMAT_WIDTH   ((5 * sizeof (int)) / 2 + 1)

Definition at line 80 of file rbd.c.

#define rbd_assert (   expr)
Value:
if (unlikely(!(expr))) { \
printk(KERN_ERR "\nAssertion failure in %s() " \
"at line %d:\n\n" \
"\trbd_assert(%s);\n\n", \
__func__, __LINE__, #expr); \
BUG(); \
}

Definition at line 249 of file rbd.c.

#define RBD_DEBUG   /* Activate rbd_assert() calls */

Definition at line 44 of file rbd.c.

#define RBD_DRV_NAME   "rbd"

Definition at line 59 of file rbd.c.

#define RBD_DRV_NAME_LONG   "rbd (rados block device)"

Definition at line 60 of file rbd.c.

#define RBD_IMAGE_ID_LEN_MAX   64

Definition at line 70 of file rbd.c.

#define RBD_MAX_OPT_LEN   1024

Definition at line 66 of file rbd.c.

#define RBD_MAX_SNAP_COUNT   510 /* allows max snapc to fit in 4KB */

Definition at line 65 of file rbd.c.

#define RBD_MAX_SNAP_NAME_LEN   32

Definition at line 64 of file rbd.c.

#define RBD_MINORS_PER_MAJOR   256 /* max minors per blkdev */

Definition at line 62 of file rbd.c.

#define RBD_OBJ_PREFIX_LEN_MAX   64

Definition at line 71 of file rbd.c.

#define RBD_READ_ONLY_DEFAULT   false

Definition at line 82 of file rbd.c.

#define RBD_SNAP_HEAD_NAME   "-"

Definition at line 68 of file rbd.c.

#define SECTOR_SHIFT   9

Definition at line 52 of file rbd.c.

#define SECTOR_SIZE   (1ULL << SECTOR_SHIFT)

Definition at line 53 of file rbd.c.

#define U64_MAX   ((u64) (~0ULL))

Definition at line 57 of file rbd.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_last_int 
Opt_last_string 
Opt_read_only 
Opt_read_write 
Opt_last_bool 

Definition at line 377 of file rbd.c.

Function Documentation

MODULE_AUTHOR ( "Sage Weil <[email protected]>"  )
MODULE_AUTHOR ( "Yehuda Sadeh <[email protected]>"  )
MODULE_AUTHOR ( "Jeff Garzik <[email protected]>"  )
MODULE_DESCRIPTION ( "rados block device )
module_exit ( rbd_exit  )
module_init ( rbd_init  )
MODULE_LICENSE ( "GPL"  )
void __exit rbd_exit ( void  )

Definition at line 3259 of file rbd.c.

int __init rbd_init ( void  )

Definition at line 3248 of file rbd.c.