-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
add support for get disk serial number on darwin #1791
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
add support for get disk serial number on darwin #1791
Conversation
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.
Thank you for your contribution! I haven't tested it myself, but using the JSON output of system_profiler
seems like a good approach. I've left a few comments, so I'd appreciate it if you could address them.
409e7d2
to
b83bf7f
Compare
b83bf7f
to
9fc28f2
Compare
@shirou thanks for the review! I think I've made all the request changes. Let me know if there is anything I missed! |
@samburba Thank you for the update. However, there are still lint errors remaining, so I apologize for the trouble, but could you please fix them? Once that's done, I can merge it. |
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.
Thank you for the PR. Also, I apologize for making the fix on my end. The tests are failing, but it's unrelated, so there's no issue. I'll merge it.
Hello! This is my first PR on this project, so let me know if I got anything wrong and should change it.
This fixes #801 and adds support for getting (NVMe) drives' serial number. It does this by executing system_profiler and unmarshalling.