summaryrefslogtreecommitdiffstats
path: root/bitmap.h
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2015-08-18 23:38:27 +0200
committerNeilBrown <neilb@suse.com>2015-09-28 03:47:04 +0200
commit6d9c7c2551ca31a800f61e36192ee12be20974b1 (patch)
tree274d6d765afe842a757e762b1793a27ea2e12211 /bitmap.h
parentMakefile: test -s flag and suppress echo when set. (diff)
downloadmdadm-6d9c7c2551ca31a800f61e36192ee12be20974b1.tar.xz
mdadm-6d9c7c2551ca31a800f61e36192ee12be20974b1.zip
Increment version for clustered bitmaps
Add BITMAP_MAJOR_CLUSTERED as 5, in order to prevent older kernels to assemble a clustered device. In order to maximize compatibility, the major version is set to BITMAP_MAJOR_CLUSTERED *only* if the bitmap is clustered. Also, added MD_FEATURE_CLUSTERED in order to return error for older kernels which would assemble MD in case bitmap is corrupted. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'bitmap.h')
-rw-r--r--bitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitmap.h b/bitmap.h
index adbf0b4b..b8fb0714 100644
--- 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