Skip to content

compat (errno): Adds cross-platform compatibility for errno values.#3311

Open
bgoing-micron-oss wants to merge 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:bgoing/errno-compatibility
Open

compat (errno): Adds cross-platform compatibility for errno values.#3311
bgoing-micron-oss wants to merge 1 commit intolinux-nvme:masterfrom
Micron-TPG-OSS:bgoing/errno-compatibility

Conversation

@bgoing-micron-oss
Copy link
Copy Markdown
Contributor

Some errno values used in the code are only available on Linux. Adds compatible handling of errno values not available on all platforms.

  • Substitutes good equivalent errno value for unsupported values used by nvme/util.c when converting status to errno.
  • Replaces ENAVAIL usage in nvme.c with a local error code. It is only used internally within nvme.c to signal that an "invalid field" error was returned and should be ignored.

Some errno values used in the code are only available on Linux.
Adds compatible handling of errno values not available on all platforms.
- Substitutes good equivalent errno value for unsupported values used
by nvme/util.c when converting status to errno.
- Replaces ENAVAIL usage in nvme.c with a local error code.
It is only used internally within nvme.c to signal that an
"invalid field" error was returned and should be ignored.

Signed-off-by: Broc Going <[email protected]>
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.

1 participant