Commit 7057e6c
nvme: set eds to true if controller supports 128 bit hostid
A controller that uses a 128-bit Host Identifier may result in the
"nvme resv-report" command failing with a "Host Identifier Inconsistent
Format" error that suggests the "simultaneous use of 64-bit and
128-bit Host Identifier values on different controllers".
This error can be avoided if the "--eds" option is used, to request
the extended data structure. However, the controller's ctratt
value indicates whether the Host Identifier is 64 bits or 128 bits.
Therefore, check the ctratt flag, and set eds to true if the
controller indicates a 128-bit Host Identifier.
Signed-off-by: Bryan Gurney <[email protected]>1 parent 946029c commit 7057e6c
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7740 | 7740 | | |
7741 | 7741 | | |
7742 | 7742 | | |
| 7743 | + | |
7743 | 7744 | | |
7744 | 7745 | | |
7745 | 7746 | | |
| |||
7792 | 7793 | | |
7793 | 7794 | | |
7794 | 7795 | | |
| 7796 | + | |
| 7797 | + | |
| 7798 | + | |
| 7799 | + | |
| 7800 | + | |
| 7801 | + | |
| 7802 | + | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
7795 | 7809 | | |
7796 | 7810 | | |
7797 | 7811 | | |
| |||
0 commit comments