aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2013-05-29 21:35:23 -0700
committerNicholas Bellinger <[email protected]>2013-05-30 17:46:27 -0700
commit21363ca873334391992f2f424856aa864345bb61 (patch)
treea3bf98065a2ae02afd26dce1b1c34e75a4c7ee5b /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent1d19f7800d643b270b28d0a969c5eca455d54397 (diff)
target/file: Fix off-by-one READ_CAPACITY bug for !S_ISBLK export
This patch fixes a bug where FILEIO was incorrectly reporting the number of logical blocks (+ 1) when using non struct block_device export mode. It changes fd_get_blocks() to follow all other backend ->get_blocks() cases, and reduces the calculated dev_size by one dev->dev_attrib.block_size number of bytes, and also fixes initial fd_block_size assignment at fd_configure_device() time introduced in commit 0fd97ccf4. Reported-by: Wenchao Xia <[email protected]> Reported-by: Badari Pulavarty <[email protected]> Tested-by: Badari Pulavarty <[email protected]> Cc: [email protected] Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions