]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - bitmap.h
handle Manage_subdevs() for 'external' arrays
[thirdparty/mdadm.git] / bitmap.h
index 02a4e97acabc507e7f75697e39116589435e67bd..c8725a30eb338602ea37e56fe1a2dc6a4c731a07 100644 (file)
--- a/bitmap.h
+++ b/bitmap.h
@@ -6,7 +6,13 @@
 #ifndef BITMAP_H
 #define BITMAP_H 1
 
-#define BITMAP_MAJOR 3
+#define BITMAP_MAJOR_LO 3
+/* version 4 insists the bitmap is in little-endian order
+ * with version 3, it is host-endian which is non-portable
+ */
+#define BITMAP_MAJOR_HI 4
+#define        BITMAP_MAJOR_HOSTENDIAN 3
+
 #define BITMAP_MINOR 39
 
 /*
@@ -156,7 +162,7 @@ typedef struct bitmap_super_s {
  * (1) This event counter is updated before the eventcounter in the md superblock
  *    When a bitmap is loaded, it is only accepted if this event counter is equal
  *    to, or one greater than, the event counter in the superblock.
- * (2) This event counter is updated when the other one is *if*and*only*if* the 
+ * (2) This event counter is updated when the other one is *if*and*only*if* the
  *    array is not degraded.  As bits are not cleared when the array is degraded,
  *    this represents the last time that any bits were cleared.
  *    If a device is being added that has an event count with this value or
@@ -181,7 +187,7 @@ struct bitmap_page {
        unsigned int hijacked;
        /*
         * count of dirty bits on the page
-        */ 
+        */
        int count;
 };