[PATCH] COMPARE_AND_WRITE: If the compare fails we should not continue to write the data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tomo,

Please find an updated version of the COMPARE-AND-WRITE patch containing your suggestions;

Fix a bug in COMPARE-AND-WRITE. If the compare fails, we have to abort with a sense code immediately and we should NOT continue to over-write the backing store with the mismatching data.

IF the data is not matching, we also should compute at which offset the first mismatch in the buffer occurs.
This is to be reported in the INFORMATION field (bytes 3-7) in the sense buffer in a later patch.

v2:
- Use kernel style comments
- Simplify the compare loop

regards
ronnie sahlberg

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux