Skip to content

nvme: Open files using nvme_open_rawdata to fix Windows issues#3527

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-windows-open-fixes
Jul 1, 2026
Merged

nvme: Open files using nvme_open_rawdata to fix Windows issues#3527
igaw merged 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/upstream-windows-open-fixes

Conversation

@brgoing

@brgoing brgoing commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Reading files that may have raw binary data on Windows without using the O_BINARY flag when opening can cause some bytes to be misinterpreted or mishandled. This can lead to bad data or truncated reads. Use nvme_open_rawdata to ensure that O_BINARY is added if supported.

Fixes firmware file reading issues found during testing on Windows, as well as other potential issues on Windows.

Reading files that may have raw binary data on Windows without using
the O_BINARY flag when opening can cause some bytes to be misinterpreted
or mishandled.  This can lead to bad data or truncated reads.
Use nvme_open_rawdata to ensure that O_BINARY is added if supported.
Fixes firmware file reading issues found during testing on Windows,
as well as other potential issues on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
@igaw igaw merged commit a9e655f into linux-nvme:master Jul 1, 2026
31 of 32 checks passed
@igaw

igaw commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@brgoing brgoing deleted the bgoing/upstream-windows-open-fixes branch July 1, 2026 15:45
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