linux_old1/drivers/target
Nicholas Bellinger dd3a5ad8e0 target: Fix WRITE_SAME_[16,32] number of blocks=0 case
This patch fixes the handling of WRITE_SAME_[16,32] emulation where a
WRITE_SAME_* CDB with number of blocks=0 was being rejected by SCSI
expected data transfer length overflow checking in target core.

It changes both CDB cases in transport_generic_cmd_sequencer() to use
dev->se_sub_dev->se_dev_attrib.block_size to match what sg_write_same
is sending us with --num=0.  It also fixes target_emulate_write_same()
to properly determine the num_blocks with --num=0 case to determine the
remaining range for dev->transport->do_discard().

Reported-by: Chris Greiveldinger <chris.greiveldinger@rnanetworks.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
2011-07-22 09:37:44 +00:00
..
loopback target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
tcm_fc target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
Kconfig [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
Makefile [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
target_core_alua.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_alua.h [SCSI] target: Add LIO target core v4.0.0-rc6 2011-01-14 10:12:29 -06:00
target_core_cdb.c target: Fix WRITE_SAME_[16,32] number of blocks=0 case 2011-07-22 09:37:44 +00:00
target_core_configfs.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_device.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_fabric_configfs.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_fabric_lib.c Fix common misspellings 2011-03-31 11:26:23 -03:00
target_core_file.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_file.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_hba.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_hba.h [SCSI] target: Add LIO target core v4.0.0-rc6 2011-01-14 10:12:29 -06:00
target_core_iblock.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_iblock.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_pr.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_pr.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_pscsi.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_pscsi.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_rd.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_rd.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_scdb.c [SCSI] target: Add LIO target core v4.0.0-rc6 2011-01-14 10:12:29 -06:00
target_core_scdb.h [SCSI] target: Add LIO target core v4.0.0-rc6 2011-01-14 10:12:29 -06:00
target_core_stat.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_stat.h [SCSI] target: add initial statistics 2011-03-23 11:36:50 -05:00
target_core_tmr.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_tpg.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_transport.c target: Fix WRITE_SAME_[16,32] number of blocks=0 case 2011-07-22 09:37:44 +00:00
target_core_ua.c target: More core cleanups from AGrover (round 2) 2011-07-22 09:37:43 +00:00
target_core_ua.h [SCSI] target: Add LIO target core v4.0.0-rc6 2011-01-14 10:12:29 -06:00