Skip to content

Conversation

@ikegami-t
Copy link
Contributor

Since IO commands rejected by the chardev if more than one namespace.

@ikegami-t
Copy link
Contributor Author

@sukhi61166 If possible could you please test the PR chagnes since the changes for the issue #2662 but locally tested as the code itself works correctly but I do not have the device has more than one namespace for now?

nvme.c Outdated
nvme_show_error("flush: %s", nvme_strerror(errno));

if (is_chardev(dev))
nvme_show_result("chardev handled so needed to use blkdev instead");
Copy link
Collaborator

@igaw igaw Jan 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add something like "char device provided but blkdev is needed, e.g. /dev/nvme0n1" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the message as suggested. Thank you.

This is to get the option value by name.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since IO commands rejected by the chardev if more than one namespace.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since IO commands rejected by the chardev if more than one namespace.

Signed-off-by: Tokunori Ikegami <[email protected]>
@igaw igaw merged commit 946029c into linux-nvme:master Jan 20, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Jan 20, 2025

Thanks!

@sukhi61166
Copy link

@sukhi61166 If possible could you please test the PR chagnes since the changes for the issue #2662 but locally tested as the code itself works correctly but I do not have the device has more than one namespace for now?

I will checkout the latest and try it. Thanks

@ikegami-t
Copy link
Contributor Author

@sukhi61166 Unfortunately the PR changes reverted by the commmit e62ab3c for the issue #2668 introduced by the PR changes and also for the changes causing complicated as mentioned by the PR comment #2693 (comment). So for now still we need to specify the blkdev for the flush command instead of the chardev mentioned by the issue #2662.

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