]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - md_p.h
Use O_EXCL when opening component devices to be assembled into an array
[thirdparty/mdadm.git] / md_p.h
diff --git a/md_p.h b/md_p.h
index 99479b43b19832c33c154ddc36408e0dbc98ce3a..aeaf87889ff5ce18155f6881a1794028852b4909 100644 (file)
--- a/md_p.h
+++ b/md_p.h
@@ -131,11 +131,16 @@ typedef struct mdp_superblock_s {
 #if  __BYTE_ORDER ==  __BIG_ENDIAN
        __u32 events_hi;        /*  7 high-order of superblock update count   */
        __u32 events_lo;        /*  8 low-order of superblock update count    */
+       __u32 cp_events_hi;     /*  9 high-order of checkpoint update count   */
+       __u32 cp_events_lo;     /* 10 low-order of checkpoint update count    */
 #else
        __u32 events_lo;        /*  7 low-order of superblock update count    */
        __u32 events_hi;        /*  8 high-order of superblock update count   */
+       __u32 cp_events_lo;     /*  9 low-order of checkpoint update count    */
+       __u32 cp_events_hi;     /* 10 high-order of checkpoint update count   */
 #endif
-       __u32 gstate_sreserved[MD_SB_GENERIC_STATE_WORDS - 9];
+       __u32 recovery_cp;      /* 11 recovery checkpoint sector count        */
+       __u32 gstate_sreserved[MD_SB_GENERIC_STATE_WORDS - 12];
 
        /*
         * Personality information
@@ -163,6 +168,10 @@ typedef struct mdp_superblock_s {
 
 } mdp_super_t;
 
+#ifdef __TINYC__
+typedef unsigned long long __u64;
+#endif
+
 static inline __u64 md_event(mdp_super_t *sb) {
        __u64 ev = sb->events_hi;
        return (ev<<32)| sb->events_lo;