Skip to content

Conversation

@ikegami-t
Copy link
Contributor

No description provided.

Since currently only default NS blkdev checked for all NSs.

Signed-off-by: Tokunori Ikegami <[email protected]>
@ikegami-t
Copy link
Contributor Author

The changes related to the issue #2668 but still the issue cause not sure and the blkdev checking fix may detect the cause. Also add verbose debugging option for NS management commands.

err = subprocess.call(id_ns_cmd,
shell=True,
stdout=subprocess.DEVNULL)
if err == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose this should be indented, only test the return value from the subprocess.call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the indentation. Thank you.

create_ns_cmd = f"{self.nvme_bin} create-ns {self.ctrl} " + \
f"--nsze={str(nsze)} --ncap={str(ncap)} --flbas={str(flbas)} " + \
f"--dps={str(dps)}"
f"--dps={str(dps)} -v"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know if we want the spam the output. Usually this stuff works just fine. I let @MaisenbacherD decide :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood. Thank you.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am fine with enabling verbosity output for tests, as this might give hints why a test failed when skimming though the logs.
However, can we please use the long version of the options for scripting (e.g. --verbose)? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right so fixed to the long version option. Thank you.

To make sure the blkdev as same with NS attachment.

Signed-off-by: Tokunori Ikegami <[email protected]>
This is for debugging output if test failed.

Signed-off-by: Tokunori Ikegami <[email protected]>
Copy link
Contributor

@MaisenbacherD MaisenbacherD left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@igaw igaw merged commit b9b34be into linux-nvme:master Jan 27, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented Jan 27, 2025

Thanks!

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