All of lore.kernel.org
 help / color / mirror / Atom feed
* [v3 0/2] scsi: target: fix sense key for invalid XCOPY request
@ 2021-08-03 14:54 Sergey Samoylenko
  2021-08-03 14:54 ` [v3 1/2] scsi: target: allows backend drivers to fail with specific sense codes Sergey Samoylenko
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sergey Samoylenko @ 2021-08-03 14:54 UTC (permalink / raw)
  To: martin.petersen, michael.christie, ddiss, bvanassche, target-devel
  Cc: linux-scsi, linux, Sergey Samoylenko

EXTENDED COPY tests in libiscsi [1] show that TCM doesn't
follow SPC4 when detects invalid parameters in a XCOPY
command or IO errors. The replies from TCM contain wrong sense
key or ASCQ for incorrect request.

The series fixes the following tests from libiscsi:

  SCSI.ExtendedCopy.DescrType
  SCSI.ExtendedCopy.DescrLimits
  SCSI.ExtendedCopy.ParamHdr
  SCSI.ExtendedCopy.ValidSegDescr
  SCSI.ExtendedCopy.ValidTgtDescr

1. https://github.com/sahlberg/libiscsi

Sergey Samoylenko (2):
  scsi: target: allows backend drivers to fail with specific sense codes
  scsi: target: fix sense key for invalid XCOPY request

 drivers/target/target_core_transport.c | 15 ++++++++++++---
 drivers/target/target_core_xcopy.c     | 26 +++++++++++++++-----------
 include/target/target_core_backend.h   |  1 +
 include/target/target_core_base.h      |  2 ++
 4 files changed, 30 insertions(+), 14 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-08-24  4:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 14:54 [v3 0/2] scsi: target: fix sense key for invalid XCOPY request Sergey Samoylenko
2021-08-03 14:54 ` [v3 1/2] scsi: target: allows backend drivers to fail with specific sense codes Sergey Samoylenko
2021-08-03 14:54 ` [v3 2/2] scsi: target: fix sense key for invalid XCOPY request Sergey Samoylenko
2021-08-17  3:09 ` [v3 0/2] " Martin K. Petersen
2021-08-24  4:03 ` Martin K. Petersen

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.