Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
faulty.c File Reference
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/raid/md_u.h>
#include <linux/slab.h>
#include "md.h"
#include <linux/seq_file.h>

Go to the source code of this file.

Data Structures

struct  faulty_conf
 

Macros

#define WriteTransient   0
 
#define ReadTransient   1
 
#define WritePersistent   2
 
#define ReadPersistent   3
 
#define WriteAll   4 /* doesn't go to device */
 
#define ReadFixable   5
 
#define Modes   6
 
#define ClearErrors   31
 
#define ClearFaults   30
 
#define AllPersist   100 /* internal use only */
 
#define NoPersist   101
 
#define ModeMask   0x1f
 
#define ModeShift   5
 
#define MaxFault   50
 

Functions

 module_init (raid_init)
 
 module_exit (raid_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Fault injection personality for MD")
 
 MODULE_ALIAS ("md-personality-10")
 
 MODULE_ALIAS ("md-faulty")
 
 MODULE_ALIAS ("md-level--5")
 

Macro Definition Documentation

#define AllPersist   100 /* internal use only */

Definition at line 58 of file faulty.c.

#define ClearErrors   31

Definition at line 55 of file faulty.c.

#define ClearFaults   30

Definition at line 56 of file faulty.c.

#define MaxFault   50

Definition at line 64 of file faulty.c.

#define ModeMask   0x1f

Definition at line 61 of file faulty.c.

#define Modes   6

Definition at line 53 of file faulty.c.

#define ModeShift   5

Definition at line 62 of file faulty.c.

#define NoPersist   101

Definition at line 59 of file faulty.c.

#define ReadFixable   5

Definition at line 52 of file faulty.c.

#define ReadPersistent   3

Definition at line 50 of file faulty.c.

#define ReadTransient   1

Definition at line 48 of file faulty.c.

#define WriteAll   4 /* doesn't go to device */

Definition at line 51 of file faulty.c.

#define WritePersistent   2

Definition at line 49 of file faulty.c.

#define WriteTransient   0

Definition at line 47 of file faulty.c.

Function Documentation

MODULE_ALIAS ( "md-personality-10"  )
MODULE_ALIAS ( "md-faulty"  )
MODULE_ALIAS ( "md-level--5"  )
MODULE_DESCRIPTION ( "Fault injection personality for MD )
module_exit ( raid_exit  )
module_init ( raid_init  )
MODULE_LICENSE ( "GPL"  )