]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - md_p.h
add macros for MD_DISK_ROLE_(SPARE/FAULTY)
[thirdparty/mdadm.git] / md_p.h
diff --git a/md_p.h b/md_p.h
index 9b6b5f802359e5668a44e2e739006ae6dc394442..3a3b8af0245a895ed34fcdd0ce3c4dcee4440c39 100644 (file)
--- a/md_p.h
+++ b/md_p.h
 
 #define MD_DISK_REPLACEMENT    17
 
+#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                      */