diff options
| author | David Disseldorp <[email protected]> | 2020-11-01 00:32:11 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-04 22:02:43 -0500 |
| commit | 749c226cf56ed47ae76c57b2f7f6b8f01b5797c4 (patch) | |
| tree | 952b67b3e66841c2b2596c0b452ea782606d998a /tools/perf/scripts/python/stackcollapse.py | |
| parent | ab628b9fc8c231655e52ed2b4a50758a633a2c63 (diff) | |
scsi: target: Return COMPARE AND WRITE miscompare offsets
SBC-4 r15 5.3 COMPARE AND WRITE command states:
if the compare operation does not indicate a match, then terminate the
command with CHECK CONDITION status with the sense key set to
MISCOMPARE and the additional sense code set to MISCOMPARE DURING
VERIFY OPERATION. In the sense data (see 4.18 and SPC-5) the offset
from the start of the Data-Out Buffer to the first byte of data that
was not equal shall be reported in the INFORMATION field.
This change implements the missing logic to report the miscompare offset in
the sense data INFORMATION field. As an optimization, byte-by-byte
miscompare offset calculation is only performed after memcmp() mismatch.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: David Disseldorp <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions