]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
dm table: ensure targets are aligned to logical_block_size
authorMike Snitzer <snitzer@redhat.com>
Mon, 22 Jun 2009 09:12:30 +0000 (10:12 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 22 Jun 2009 09:12:30 +0000 (10:12 +0100)
commit02acc3a4fa0a6c2a5ccc4fb722b55fb710265882
tree5abd5bf61c8fe1a9bed391c828ffff34384f6b20
parent60935eb21d3c5bac79618000f38f92c249d153c4
dm table: ensure targets are aligned to logical_block_size

Ensure I/O is aligned to the logical block size of target devices.

Rename check_device_area() to device_area_is_valid() for clarity and
establish the device limits including the logical block size prior to
calling it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c