Skip to content
Commit f6af949c authored by NeilBrown's avatar NeilBrown
Browse files

md: support bitmap offset appropriate for external-metadata arrays.



For md arrays were metadata is managed externally, the kernel does not
know about a superblock so the superblock offset is 0.
If we want to have a write-intent-bitmap near the end of the
devices of such an array, we should support sector_t sized offset.
We need offset be possibly negative for when the bitmap is before
the metadata, so use loff_t instead.

Also add sanity check that bitmap does not overlap with data.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 9cd30fdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment