-
Notifications
You must be signed in to change notification settings - Fork 174
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
Collect more disk information #64
Conversation
This PR is on top of #63 |
@jpo-joyent Hi! I've already merged #63 so would you mind rebasing to master and re-pushing to this PR? That would remove the udevInfo() code that is contained in here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpo-joyent love most of these changes, thank you! :) I've left a couple suggestions for you to change if that's OK with you? Lemme know if you need assistance with the git rebase thing..
-jay
lsblk uses the same logic for determining WWN, namely: - try to get ID_WWN_WITH_EXTENSION from udev - if that fails, try to get ID_WWN See: - util-linux/util-linux#321 - util-linux/util-linux@4d7ef26
`WorldWideName` => `WWN` `NumaNodeId` => `NUMANodeID`
Suggestions applied. Thanks! |
Awesome, thanks so much @jpo-joyent! :) |
This PR adds code to also collect:
Also fixes a bug where serial numbers would be listed as #unknown instead of being omitted
One downside is we re-read and re-parse the udev db (a small flat file) for each property lookup. I could cache it, but it would make the code uglier. Let me know if you'd like me to.
If you need me to break these out into separate PRs, just let me know.