]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1 - do metadata IO in sector_size units.
authorNeilBrown <neilb@suse.de>
Sun, 8 Mar 2009 23:17:42 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 8 Mar 2009 23:17:42 +0000 (10:17 +1100)
commit5ea022a16e62ef8d988c9296c7ade501423433d3
treea7b481b8fcef1be0ce601b6f7991c8d6d060c08f
parentb550887f72e9c566aa5083d8476501b5f87f4d3d
super1 - do metadata IO in sector_size units.

If the sector size is > 512, we need to be more careful about
alignment.
The largest known sector size is 4096 and (fortunately) both the
superblock and (in many cases) the bitmap are 4096-byte aligned.
So there should be no data-overlap problems.

The exception is when the bitmap is squeezed into the 3K after the
superblock.  This arrangement cannot currently be supported on
4K sector-size devices.

Signed-off-by: NeilBrown <neilb@suse.de>
super1.c