summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2015-08-19 07:38:27 +1000
committerNeilBrown <neilb@suse.com>2015-09-28 11:47:04 +1000
commit6d9c7c2551ca31a800f61e36192ee12be20974b1 (patch)
tree274d6d765afe842a757e762b1793a27ea2e12211 /mdadm.c
parentccc93b33ca01b85b503cc9c81434967fabfa4330 (diff)
downloadmdadm-6d9c7c2551ca31a800f61e36192ee12be20974b1.tar.gz
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 'mdadm.c')
-rw-r--r--mdadm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdadm.c b/mdadm.c
index 5d5a1b88..cf3c360f 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1409,8 +1409,9 @@ int main(int argc, char *argv[])
}
if (s.bitmap_file) {
- if (strcmp(s.bitmap_file, "internal")==0) {
- pr_err("'internal' bitmaps not supported with --build\n");
+ if (strcmp(s.bitmap_file, "internal")==0 ||
+ strcmp(s.bitmap_file, "clustered") == 0) {
+ pr_err("'internal' and 'clustered' bitmaps not supported with --build\n");
rv |= 1;
break;
}