Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly detect NVME/XVD devices in ZFS zpools #1549

Merged
merged 2 commits into from
Oct 30, 2020
Merged

Properly detect NVME/XVD devices in ZFS zpools #1549

merged 2 commits into from
Oct 30, 2020

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Oct 30, 2020

Add another match in the zpool status regex and then update the existing unit test to have some NVME/XVD devices in it.

Signed-off-by: Tim Smith tsmith@chef.io

Add another match in the zpool status regex and then update the existing unit test to have some NVME devices in it.

Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 requested review from a team as code owners October 30, 2020 20:33
Signed-off-by: Tim Smith <tsmith@chef.io>
@tas50 tas50 changed the title Properly detect NVME devices in ZFS zpools Properly detect NVME/XVD devices in ZFS zpools Oct 30, 2020
@tas50
Copy link
Contributor Author

tas50 commented Oct 30, 2020

Fixes #1546

Copy link
Collaborator

@jaymzh jaymzh left a comment

Choose a reason for hiding this comment

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

this seems good to me but only because you don't look at partitions. It's worth noting that because nvme devices end in a number, partitions are pX (nvme0n1p2 for exmaple), so if there are places that handle partitions in this code, we'd have to handle that.

@tas50
Copy link
Contributor Author

tas50 commented Oct 30, 2020

True. We should get that noted in a bigger issue of: this plugin needs a better way to determine devices in zpools

@tas50 tas50 merged commit 964c39a into master Oct 30, 2020
@tas50 tas50 deleted the zpool branch October 30, 2020 22:58
@tas50
Copy link
Contributor Author

tas50 commented Oct 30, 2020

Also in general you give the pool the whole disk w/o the partition, but we should still support partitions.

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.

None yet

2 participants