File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646#include <linux/delay.h>
4747#include "bitmap.h"
4848
49- /* 63 partitions with the alternate major number (mdp) */
50- #define MdpMinorShift 6
51-
5249#define DEBUG 0
5350#define dprintk (x ...) ((void)(DEBUG && printk(x)))
5451
Original file line number Diff line number Diff line change 5252 */
5353#define MD_PATCHLEVEL_VERSION 3
5454
55- extern int mdp_major ;
56-
5755extern int register_md_personality (struct mdk_personality * p );
5856extern int unregister_md_personality (struct mdk_personality * p );
5957extern mdk_thread_t * md_register_thread (void (* run ) (mddev_t * mddev ),
Original file line number Diff line number Diff line change 2020
2121#ifdef CONFIG_BLOCK
2222
23- #define LEVEL_MULTIPATH (-4)
24- #define LEVEL_LINEAR (-1)
25- #define LEVEL_FAULTY (-5)
26-
27- /* we need a value for 'no level specified' and 0
28- * means 'raid0', so we need something else. This is
29- * for internal use only
30- */
31- #define LEVEL_NONE (-1000000)
32-
3323#define MaxSector (~(sector_t)0)
3424
3525typedef struct mddev_s mddev_t ;
Original file line number Diff line number Diff line change 4646#define STOP_ARRAY_RO _IO (MD_MAJOR, 0x33)
4747#define RESTART_ARRAY_RW _IO (MD_MAJOR, 0x34)
4848
49+ /* 63 partitions with the alternate major number (mdp) */
50+ #define MdpMinorShift 6
51+ #ifdef __KERNEL__
52+ extern int mdp_major ;
53+ #endif
54+
4955typedef struct mdu_version_s {
5056 int major ;
5157 int minor ;
@@ -85,6 +91,17 @@ typedef struct mdu_array_info_s {
8591
8692} mdu_array_info_t ;
8793
94+ /* non-obvious values for 'level' */
95+ #define LEVEL_MULTIPATH (-4)
96+ #define LEVEL_LINEAR (-1)
97+ #define LEVEL_FAULTY (-5)
98+
99+ /* we need a value for 'no level specified' and 0
100+ * means 'raid0', so we need something else. This is
101+ * for internal use only
102+ */
103+ #define LEVEL_NONE (-1000000)
104+
88105typedef struct mdu_disk_info_s {
89106 /*
90107 * configuration/status of one particular disk
Original file line number Diff line number Diff line change @@ -112,8 +112,6 @@ static int __init md_setup(char *str)
112112 return 1 ;
113113}
114114
115- #define MdpMinorShift 6
116-
117115static void __init md_setup_drive (void )
118116{
119117 int minor , i , ent , partitioned ;
You can’t perform that action at this time.
0 commit comments