mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-17 04:12:26 +00:00
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>
This commit is contained in:
parent
28c1b9fdf4
commit
c4d4c91b44
2 changed files with 11 additions and 7 deletions
|
@ -90,6 +90,10 @@
|
|||
* dire need
|
||||
*/
|
||||
|
||||
#define MD_DISK_ROLE_SPARE 0xffff
|
||||
#define MD_DISK_ROLE_FAULTY 0xfffe
|
||||
#define MD_DISK_ROLE_MAX 0xff00 /* max value of regular disk role */
|
||||
|
||||
typedef struct mdp_device_descriptor_s {
|
||||
__u32 number; /* 0 Device number in the entire set */
|
||||
__u32 major; /* 1 Device major number */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue