Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dm-raid1.c File Reference
#include "dm-bio-record.h"
#include <linux/init.h>
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/device-mapper.h>
#include <linux/dm-io.h>
#include <linux/dm-dirty-log.h>
#include <linux/dm-kcopyd.h>
#include <linux/dm-region-hash.h>

Go to the source code of this file.

Data Structures

struct  mirror
 
struct  mirror_set
 
struct  dm_raid1_read_record
 

Macros

#define DM_MSG_PREFIX   "raid1"
 
#define MAX_RECOVERY   1 /* Maximum number of regions recovered in parallel. */
 
#define DM_RAID1_HANDLE_ERRORS   0x01
 
#define errors_handled(p)   ((p)->features & DM_RAID1_HANDLE_ERRORS)
 
#define MIN_READ_RECORDS   20
 
#define DEFAULT_MIRROR   0
 

Enumerations

enum  dm_raid1_error { DM_RAID1_WRITE_ERROR, DM_RAID1_FLUSH_ERROR, DM_RAID1_SYNC_ERROR, DM_RAID1_READ_ERROR }
 

Functions

 module_init (dm_mirror_init)
 
 module_exit (dm_mirror_exit)
 
 MODULE_DESCRIPTION (DM_NAME" mirror target")
 
 MODULE_AUTHOR ("Joe Thornber")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DEFAULT_MIRROR   0

Definition at line 153 of file dm-raid1.c.

#define DM_MSG_PREFIX   "raid1"

Definition at line 22 of file dm-raid1.c.

#define DM_RAID1_HANDLE_ERRORS   0x01

Definition at line 26 of file dm-raid1.c.

#define errors_handled (   p)    ((p)->features & DM_RAID1_HANDLE_ERRORS)

Definition at line 27 of file dm-raid1.c.

#define MAX_RECOVERY   1 /* Maximum number of regions recovered in parallel. */

Definition at line 24 of file dm-raid1.c.

#define MIN_READ_RECORDS   20

Definition at line 142 of file dm-raid1.c.

Enumeration Type Documentation

Enumerator:
DM_RAID1_WRITE_ERROR 
DM_RAID1_FLUSH_ERROR 
DM_RAID1_SYNC_ERROR 
DM_RAID1_READ_ERROR 

Definition at line 34 of file dm-raid1.c.

Function Documentation

MODULE_AUTHOR ( "Joe Thornber"  )
MODULE_DESCRIPTION ( DM_NAME" mirror target )
module_exit ( dm_mirror_exit  )
module_init ( dm_mirror_init  )
MODULE_LICENSE ( "GPL"  )