Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64bit LBA support (> 2TiB disk support) #89

Merged

Conversation

antoinevg
Copy link
Member

Rebase of: #68

The current code only supports 32-bit LBAs and does not support 64-bit LBAs.
Therefore, when a disk of 2 TiB or larger is connected, "READ CAPACITY" does not report the correct capacity. (However, if the disk is initialized with GPT, the current code can still be used.)
To improve this, "READ CAPACITY (16)", "READ (16)", and "WRITE (16)" have been implemented.

214334351-07389d4d-6c99-4b29-9ce8-1afe759bf504

@antoinevg antoinevg marked this pull request as ready for review March 7, 2024 08:57
@antoinevg antoinevg merged commit ee8c7f8 into greatscottgadgets:main Mar 7, 2024
1 check passed
@antoinevg antoinevg mentioned this pull request Mar 7, 2024
@antoinevg antoinevg deleted the shutingrz-support_64bit_LBA branch March 7, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants