]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - md_p.h
Add write-behind support
[thirdparty/mdadm.git] / md_p.h
diff --git a/md_p.h b/md_p.h
index 31eaafd2cc0f8afb27b2a8d176a4b00e105d832a..0a0b38156fd38d3e5a6dc706fd7c8e9b0d9b8e42 100644 (file)
--- a/md_p.h
+++ b/md_p.h
 #define MD_DISK_SYNC           2 /* disk is in sync with the raid set */
 #define MD_DISK_REMOVED                3 /* disk is in sync with the raid set */
 
+#define        MD_DISK_WRITEMOSTLY     9 /* disk is "write-mostly" is RAID1 config.
+                                  * read requests will only be sent here in 
+                                  * dire need
+                                  */
+
 typedef struct mdp_device_descriptor_s {
        __u32 number;           /* 0 Device number in the entire set          */
        __u32 major;            /* 1 Device major number                      */