fix: Drive Sense Key error - #625
Conversation
…an/ltfs into update/sense-key-updates
|
Hello! Thank you for this effort. Do you have logs documented to show how the sense key is being printed now? I am curious to see how it works. |
|
Hi @Piloalucard |
Piloalucard
left a comment
There was a problem hiding this comment.
Thank you! This is an update really needed, I just notice a wrong HEX code, besides that, LGTM!
XV02
left a comment
There was a problem hiding this comment.
Great work, just some correctness comments if you find them necesary
| { EDEV_THIRD_PARTY_ERROR, "D1000E", EIO}, | ||
| { EDEV_UNREACHABLE_TARGET, "D1001E", EIO}, | ||
| { EDEV_INCORRECT_TARGET_TYPE, "D1002E", EIO}, | ||
| { EDEV_COPY_UNDERRUN, "D1003E", EIO}, | ||
| { EDEV_COPY_OVERRUN, "D1004E", EIO}, | ||
| { EDEV_INVALID_COPY, "D1005E", EIO}, |
There was a problem hiding this comment.
Maybe we should be more consistent with the ordering and these have to be placed before
| /* Sense Key A Copy Aborted (3592 Only) */ | ||
| #define EDEV_THIRD_PARTY_ERROR 21000 /* 0A/0D01 Third party device failure */ | ||
| #define EDEV_UNREACHABLE_TARGET 21001 /* 0A/0D02 Copy target device not reachable */ | ||
| #define EDEV_INCORRECT_TARGET_TYPE 21002 /* 0A/0D03 Incorrect copy target device type */ | ||
| #define EDEV_COPY_UNDERRUN 21003 /* 0A/0D04 Copy target device data underrun */ | ||
| #define EDEV_COPY_OVERRUN 21004 /* 0A/0D05 Copy target device data overrun */ | ||
| #define EDEV_INVALID_COPY 21005 /* 0A/260C Invalid operation for copy source or destination */ |
There was a problem hiding this comment.
Same here, Sense Key A Should be placed before
Summary of changes
This pull request includes following changes or fixes.
Description
This pull request updates the sense key handling to improve error reporting and ensure the correct sense key information is displayed.
Type of change
Please delete items that are not relevant.
Checklist: