Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dm-raid.c File Reference
#include <linux/slab.h>
#include <linux/module.h>
#include "md.h"
#include "raid1.h"
#include "raid5.h"
#include "raid10.h"
#include "bitmap.h"
#include <linux/device-mapper.h>

Go to the source code of this file.

Data Structures

struct  raid_dev
 
struct  raid_set
 
struct  raid_type
 
struct  dm_raid_superblock
 

Macros

#define DM_MSG_PREFIX   "raid"
 
#define FirstUse   10 /* rdev flag */
 
#define DMPF_SYNC   0x1
 
#define DMPF_NOSYNC   0x2
 
#define DMPF_REBUILD   0x4
 
#define DMPF_DAEMON_SLEEP   0x8
 
#define DMPF_MIN_RECOVERY_RATE   0x10
 
#define DMPF_MAX_RECOVERY_RATE   0x20
 
#define DMPF_MAX_WRITE_BEHIND   0x40
 
#define DMPF_STRIPE_CACHE   0x80
 
#define DMPF_REGION_SIZE   0x100
 
#define DMPF_RAID10_COPIES   0x200
 
#define DMPF_RAID10_FORMAT   0x400
 
#define DM_RAID_MAGIC   0x64526D44
 

Functions

 module_init (dm_raid_init)
 
 module_exit (dm_raid_exit)
 
 MODULE_DESCRIPTION (DM_NAME" raid4/5/6 target")
 
 MODULE_ALIAS ("dm-raid1")
 
 MODULE_ALIAS ("dm-raid10")
 
 MODULE_ALIAS ("dm-raid4")
 
 MODULE_ALIAS ("dm-raid5")
 
 MODULE_ALIAS ("dm-raid6")
 
 MODULE_AUTHOR ("Neil Brown <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct dm_raid_superblock __packed
 

Macro Definition Documentation

#define DM_MSG_PREFIX   "raid"

Definition at line 19 of file dm-raid.c.

#define DM_RAID_MAGIC   0x64526D44

Definition at line 699 of file dm-raid.c.

#define DMPF_DAEMON_SLEEP   0x8

Definition at line 51 of file dm-raid.c.

#define DMPF_MAX_RECOVERY_RATE   0x20

Definition at line 53 of file dm-raid.c.

#define DMPF_MAX_WRITE_BEHIND   0x40

Definition at line 54 of file dm-raid.c.

#define DMPF_MIN_RECOVERY_RATE   0x10

Definition at line 52 of file dm-raid.c.

#define DMPF_NOSYNC   0x2

Definition at line 49 of file dm-raid.c.

#define DMPF_RAID10_COPIES   0x200

Definition at line 57 of file dm-raid.c.

#define DMPF_RAID10_FORMAT   0x400

Definition at line 58 of file dm-raid.c.

#define DMPF_REBUILD   0x4

Definition at line 50 of file dm-raid.c.

#define DMPF_REGION_SIZE   0x100

Definition at line 56 of file dm-raid.c.

#define DMPF_STRIPE_CACHE   0x80

Definition at line 55 of file dm-raid.c.

#define DMPF_SYNC   0x1

Definition at line 48 of file dm-raid.c.

#define FirstUse   10 /* rdev flag */

Definition at line 25 of file dm-raid.c.

Function Documentation

MODULE_ALIAS ( "dm-raid1"  )
MODULE_ALIAS ( "dm-raid10"  )
MODULE_ALIAS ( "dm-raid4"  )
MODULE_ALIAS ( "dm-raid5"  )
MODULE_ALIAS ( "dm-raid6"  )
MODULE_AUTHOR ( "Neil Brown <[email protected]>"  )
MODULE_DESCRIPTION ( DM_NAME" raid4/5/6 target )
module_exit ( dm_raid_exit  )
module_init ( dm_raid_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation