-
Notifications
You must be signed in to change notification settings - Fork 183
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
can not show mountpoint for nvme disk #256
Comments
At glance, it seems you used the code correctly, but we have a bug in the
|
understand. thanks for your reply. maybe I can help to fix this. |
Sure, I need to work on a reproducer myself and then we can create a fix. Feel free to contribute fixes if you have time, I'd be happy to review. |
by the way, I fond ghw can not aware the ssd disk when the disk is in a raid. |
If the disk is attached to a true raid controller, then there is no easy way (there could be controller-specific ways), because the intent of the controller is to mask what's attached to it and present an abstract storage entity to the OS - hence to ghw |
My fork (created to solve exactly this issue) treats a disk without partitions as if it has one partition. See tag 0.8.0-1: |
This is very similar to what I had in mind to fix this issue. Would you be interested in sending a PR with your fix? |
No problem |
See #293 |
when I use ghw in my project on a machine with nvme, it just can not show nvme disk mountpoint.
I just run the sample code as
Output
lsblk output
os information
Did I use the code correctly ?
The text was updated successfully, but these errors were encountered: