All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] target: Fixes for SPC/SBC device emulation
@ 2015-02-14  3:27 Nicholas A. Bellinger
  2015-02-14  3:27 ` [PATCH 1/8] target: Add missing WRITE_SAME end-of-device sanity check Nicholas A. Bellinger
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Nicholas A. Bellinger @ 2015-02-14  3:27 UTC (permalink / raw)
  To: target-devel
  Cc: linux-scsi, Ronnie Sahlberg, Martin K. Petersen,
	Christoph Hellwig, Hannes Reinecke, Bart Van Assche,
	Nicholas Bellinger

From: Nicholas Bellinger <nab@linux-iscsi.org>

Hi all,

The following patch series contains a number of target SPC/SBC
related emulation fixes that address failures occurring while
using Ronnie Sahlberg's excellent libiscsi test suite.

The first two are the important ones.  Patch #1 adds a missing
end-of-device sanity check for WRITE_SAME emulation, that Bart
had reported earlier.  Patch #2 fixes a case where the existing
end-of-device check did not take into account the potential of
LBA + sector wrapping overflowing sector_t.

The remaining patches address other minor test failures.  This
includes failing I/O + WRITE_SAME ops when PROTECT bit is set,
if the backend device is not configured to support protection
information.

Also included are sanity checks for DPO/FUA, WRITE_SAME w/ UNMAP=1
and UNMAP that will fail the command if the associated feature
bits are not being advertised by the backend device via existing
device attributes.

Please review.

Thank you,

--nab

Nicholas Bellinger (8):
  target: Add missing WRITE_SAME end-of-device sanity check
  target: Check for LBA + sectors wrap-around in sbc_parse_cdb
  target: Fail I/O with PROTECT bit when protection is unsupported
  target: Perform PROTECT sanity checks for WRITE_SAME
  target: Add sanity checks for DPO/FUA bit usage
  target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0
  target: Fail UNMAP when emulate_tpu=0
  target: Set LBPWS10 bit in Logical Block Provisioning EVPD

 drivers/target/target_core_file.c   |   5 ++
 drivers/target/target_core_iblock.c |   5 ++
 drivers/target/target_core_sbc.c    | 140 ++++++++++++++++++++++++++++--------
 drivers/target/target_core_spc.c    |   2 +-
 4 files changed, 121 insertions(+), 31 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-02-23  6:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-14  3:27 [PATCH 0/8] target: Fixes for SPC/SBC device emulation Nicholas A. Bellinger
2015-02-14  3:27 ` [PATCH 1/8] target: Add missing WRITE_SAME end-of-device sanity check Nicholas A. Bellinger
2015-02-14  3:27 ` [PATCH 2/8] target: Check for LBA + sectors wrap-around in sbc_parse_cdb Nicholas A. Bellinger
2015-02-15  8:18   ` Sagi Grimberg
2015-02-14  3:27 ` [PATCH 3/8] target: Fail I/O with PROTECT bit when protection is unsupported Nicholas A. Bellinger
2015-02-15  8:33   ` Sagi Grimberg
2015-02-14  3:27 ` [PATCH 4/8] target: Perform PROTECT sanity checks for WRITE_SAME Nicholas A. Bellinger
2015-02-15 17:22   ` Sagi Grimberg
2015-02-14  3:27 ` [PATCH 5/8] target: Add sanity checks for DPO/FUA bit usage Nicholas A. Bellinger
2015-02-16 11:10   ` Sagi Grimberg
2015-02-22 16:41   ` Christoph Hellwig
2015-02-22 20:19     ` Douglas Gilbert
2015-02-22 20:44       ` James Bottomley
2015-02-22 21:48         ` Douglas Gilbert
2015-02-23  6:13     ` Nicholas A. Bellinger
2015-02-14  3:27 ` [PATCH 6/8] target: Fail WRITE_SAME w/ UNMAP=1 when emulate_tpws=0 Nicholas A. Bellinger
2015-02-14  3:27 ` [PATCH 7/8] target: Fail UNMAP when emulate_tpu=0 Nicholas A. Bellinger
2015-02-14  3:27 ` [PATCH 8/8] target: Set LBPWS10 bit in Logical Block Provisioning EVPD Nicholas A. Bellinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.