Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dm-log.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/vmalloc.h>
#include <linux/dm-io.h>
#include <linux/dm-dirty-log.h>
#include <linux/device-mapper.h>

Go to the source code of this file.

Data Structures

struct  log_header_disk
 
struct  log_header_core
 
struct  log_c
 

Macros

#define DM_MSG_PREFIX   "dirty region log"
 
#define MIRROR_MAGIC   0x4D695272
 
#define MIRROR_DISK_VERSION   2
 
#define LOG_OFFSET   2
 
#define BYTE_SHIFT   3
 
#define DMEMIT_SYNC
 

Functions

int dm_dirty_log_type_register (struct dm_dirty_log_type *type)
 
 EXPORT_SYMBOL (dm_dirty_log_type_register)
 
int dm_dirty_log_type_unregister (struct dm_dirty_log_type *type)
 
 EXPORT_SYMBOL (dm_dirty_log_type_unregister)
 
struct dm_dirty_log * dm_dirty_log_create (const char *type_name, struct dm_target *ti, int(*flush_callback_fn)(struct dm_target *ti), unsigned int argc, char **argv)
 
 EXPORT_SYMBOL (dm_dirty_log_create)
 
void dm_dirty_log_destroy (struct dm_dirty_log *log)
 
 EXPORT_SYMBOL (dm_dirty_log_destroy)
 
 module_init (dm_dirty_log_init)
 
 module_exit (dm_dirty_log_exit)
 
 MODULE_DESCRIPTION (DM_NAME" dirty region log")
 
 MODULE_AUTHOR ("Joe Thornber, Heinz Mauelshagen <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct log_header_disk __packed
 

Macro Definition Documentation

#define BYTE_SHIFT   3

Definition at line 360 of file dm-log.c.

#define DM_MSG_PREFIX   "dirty region log"

Definition at line 17 of file dm-log.c.

#define DMEMIT_SYNC
Value:
if (lc->sync != DEFAULTSYNC) \
DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")

Definition at line 775 of file dm-log.c.

#define LOG_OFFSET   2

Definition at line 198 of file dm-log.c.

#define MIRROR_DISK_VERSION   2

Definition at line 197 of file dm-log.c.

#define MIRROR_MAGIC   0x4D695272

Definition at line 192 of file dm-log.c.

Function Documentation

struct dm_dirty_log* dm_dirty_log_create ( const char type_name,
struct dm_target ti,
int(*)(struct dm_target *ti)  flush_callback_fn,
unsigned int  argc,
char **  argv 
)
read

Definition at line 147 of file dm-log.c.

void dm_dirty_log_destroy ( struct dm_dirty_log *  log)

Definition at line 177 of file dm-log.c.

int dm_dirty_log_type_register ( struct dm_dirty_log_type *  type)

Definition at line 115 of file dm-log.c.

int dm_dirty_log_type_unregister ( struct dm_dirty_log_type *  type)

Definition at line 130 of file dm-log.c.

EXPORT_SYMBOL ( dm_dirty_log_type_register  )
EXPORT_SYMBOL ( dm_dirty_log_type_unregister  )
EXPORT_SYMBOL ( dm_dirty_log_create  )
EXPORT_SYMBOL ( dm_dirty_log_destroy  )
MODULE_AUTHOR ( "Joe  Thornber,
Heinz Mauelshagen< dm-devel @redhat.com >"   
)
MODULE_DESCRIPTION ( DM_NAME" dirty region log )
module_exit ( dm_dirty_log_exit  )
module_init ( dm_dirty_log_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation