Skip to content

firewire-sbp2: Various fixes

Chris Boot linux-scsi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* Don't fail on malformed Unit_Unique_ID properties, just ignore them
* Just return -ENODEV when we encounter the local node

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3firewire-sbp2: Take into account Unit_Unique_IDdrivers/firewire/sbp2.c+12 -00 replies
2/3firewire-sbp2: Ignore SBP-2 targets on the local nodedrivers/firewire/sbp2.c+4 -00 replies
3/3firewire-sbp2: Fix SCSI sense data manglingdrivers/firewire/sbp2.c+11 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] firewire-sbp2: Various fixes

In writing my SBP-2 target code I found a few areas in the firewire-sbp2 initiator code that needed some attention:

1. The Unit_Unique_ID property in SBP-2 unit directories is ignored, but this should be used when working out the target port name instead of the node's GUID if it is present. (Suggestion of Stefan Richter)

2. The initiator tries to login to any and all SBP-2 targets, including ones on the local node. This fails due to how the firewire stack / initiator code works but is most likely undesirable behaviour, so this patch makes firewire-sbp2 ignore SBP-2 targets on the local node.

3. SBP-2 sends SCSI sense data over the wire in an unusual format which requires un-mangling before we can pass it to the SCSI subsystem. Some of this mangling is currently being done incorrectly, so this patch fixes it.

Changes since v1:
* Don't fail on malformed Unit_Unique_ID properties, just ignore them
* Just return -ENODEV when we encounter the local node