]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - bitmap.h
mdadm/test: add new testcase for testing readonly/readwrite
[thirdparty/mdadm.git] / bitmap.h
index c8725a30eb338602ea37e56fe1a2dc6a4c731a07..7b1f80f2e8f64a80ddf298e936d579e813d6cf36 100644 (file)
--- a/bitmap.h
+++ b/bitmap.h
@@ -12,6 +12,7 @@
  */
 #define BITMAP_MAJOR_HI 4
 #define        BITMAP_MAJOR_HOSTENDIAN 3
+#define        BITMAP_MAJOR_CLUSTERED 5
 
 #define BITMAP_MINOR 39
 
@@ -45,7 +46,7 @@
  *
  * The counter counts pending write requests, plus the on-disk bit.
  * When the counter is '1' and the resync bits are clear, the on-disk
- * bit can be cleared aswell, thus setting the counter to 0.
+ * bit can be cleared as well, thus setting the counter to 0.
  * When we set a bit, or in the counter (to start a write), if the fields is
  * 0, we first set the disk bit and set the counter to 1.
  *
@@ -154,8 +155,11 @@ typedef struct bitmap_super_s {
        __u32 chunksize;    /* 52  the bitmap chunk size in bytes */
        __u32 daemon_sleep; /* 56  seconds between disk flushes */
        __u32 write_behind; /* 60  number of outstanding write-behind writes */
-
-       __u8  pad[256 - 64]; /* set to zero */
+       __u32 sectors_reserved; /* 64 number of 512-byte sectors that are
+                                * reserved for the bitmap. */
+       __u32 nodes;        /* 68 the maximum number of nodes in cluster. */
+       __u8 cluster_name[64]; /* 72 cluster name to which this md belongs */
+       __u8  pad[256 - 136]; /* set to zero */
 } bitmap_super_t;
 
 /* notes:
@@ -181,7 +185,7 @@ struct bitmap_page {
         */
        char *map;
        /*
-        * in emergencies (when map cannot be alloced), hijack the map
+        * in emergencies (when map cannot be allocated), hijack the map
         * pointer and use it as two counters itself
         */
        unsigned int hijacked;