Skip to content

Add more details for return code of MI admin cmds#489

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
drakedog2008:description
Oct 3, 2022
Merged

Add more details for return code of MI admin cmds#489
igaw merged 1 commit intolinux-nvme:masterfrom
drakedog2008:description

Conversation

@drakedog2008
Copy link
Copy Markdown
Contributor

The admin cmd of libnvme-mi returns negitive number(-1) with errno. Otherwise it returns nvme-mi status byte (byte 4). And status = 0 means Success.

It is the same behavior as the none-mi version. Align the description of libnvme-mi to libnvme.

Signed-off-by: Hao Jiang jianghao@google.com

The admin cmd of libnvme-mi returns negitive number(-1) with errno.
Otherwise it returns nvme-mi status byte (byte 4). And status = 0 means
`Success`.

It is the same behavior as the none-mi version. Align the description
of libnvme-mi to libnvme.

Signed-off-by: Hao Jiang <jianghao@google.com>
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Sep 29, 2022

lgtm, @jk-ozlabs good to merge?

@jk-ozlabs
Copy link
Copy Markdown
Collaborator

Yes, all looks good to me. Thanks for the patch @drakedog2008 .

@igaw igaw merged commit 3fcfd11 into linux-nvme:master Oct 3, 2022
@drakedog2008
Copy link
Copy Markdown
Contributor Author

Thanks Daniel and Jeremy

@drakedog2008 drakedog2008 deleted the description branch October 3, 2022 23:44
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.

3 participants