diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2015-08-18 23:38:27 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-09-28 03:47:04 +0200 |
commit | 6d9c7c2551ca31a800f61e36192ee12be20974b1 (patch) | |
tree | 274d6d765afe842a757e762b1793a27ea2e12211 /bitmap.c | |
parent | Makefile: test -s flag and suppress echo when set. (diff) | |
download | mdadm-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.c')
-rw-r--r-- | bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,7 +287,7 @@ int ExamineBitmap(char *filename, int brief, struct supertype *st) } printf(" Version : %d\n", sb->version); if (sb->version < BITMAP_MAJOR_LO || - sb->version > BITMAP_MAJOR_HI) { + sb->version > BITMAP_MAJOR_CLUSTERED) { pr_err("unknown bitmap version %d, either the bitmap file\n", sb->version); pr_err("is corrupted or you need to upgrade your tools\n"); |