md: Increment version for clustered bitmaps
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 18 Aug 2015 21:35:54 +0000 (07:35 +1000)
committerGoldwyn Rodrigues <rgoldwyn@suse.com>
Mon, 12 Oct 2015 06:31:33 +0000 (01:31 -0500)
commit3c462c880b52aae2cfbbb8db8b401eef118cc128
tree47df3599c19db234cccf92933ab396926ee4b49b
parent9ed38ff53090856769b99e9d2f19740fb11e6956
md: 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.

Added MD_FEATURE_CLUSTERED in order to return error for older
kernels which would assemble MD even if the bitmap is corrupted.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/bitmap.c
drivers/md/bitmap.h
drivers/md/md.c
include/uapi/linux/raid/md_p.h