aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/raid
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2015-08-13 17:31:54 -0400
committerNeilBrown <neilb@suse.com>2015-10-24 02:16:18 -0400
commitc4d4c91b44d8309082127893221a1971a27c50ca (patch)
treed745d1eb415f1dff77c0de54b5a63a4494ba3f76 /include/uapi/linux/raid
parent28c1b9fdf4562b52fe104384b16238c39c8a8d40 (diff)
MD: replace special disk roles with macros
Add the following two macros for special roles: spare and faulty MD_DISK_ROLE_SPARE 0xffff MD_DISK_ROLE_FAULTY 0xfffe Add MD_DISK_ROLE_MAX 0xff00 as the maximal possible regular role, and minimal value of special role. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'include/uapi/linux/raid')
-rw-r--r--include/uapi/linux/raid/md_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/raid/md_p.h b/include/uapi/linux/raid/md_p.h
index 867ee874fa80..d1fc8a637368 100644
--- a/include/uapi/linux/raid/md_p.h
+++ b/include/uapi/linux/raid/md_p.h
@@ -90,6 +90,10 @@
90 * dire need 90 * dire need
91 */ 91 */
92 92
93#define MD_DISK_ROLE_SPARE 0xffff
94#define MD_DISK_ROLE_FAULTY 0xfffe
95#define MD_DISK_ROLE_MAX 0xff00 /* max value of regular disk role */
96
93typedef struct mdp_device_descriptor_s { 97typedef struct mdp_device_descriptor_s {
94 __u32 number; /* 0 Device number in the entire set */ 98 __u32 number; /* 0 Device number in the entire set */
95 __u32 major; /* 1 Device major number */ 99 __u32 major; /* 1 Device major number */