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

Add device id information to Disk #839

Open
pkolaczk opened this issue Sep 10, 2022 · 1 comment
Open

Add device id information to Disk #839

pkolaczk opened this issue Sep 10, 2022 · 1 comment

Comments

@pkolaczk
Copy link

On Unix, Rust allows one to query device identifiers for file, using a system specific MetadataExt trait. It would be awesome if there was a way to match those ids to disks returned by sysinfo. But unfortunately sysinfo returns only device name, not id.

Any ideas how to get the device id from its name?

@GuillaumeGomez
Copy link
Owner

The problem here is the cross-platform support where each system has huge hacks in order to provide something unified. I don't have much time lately so unless it's a bug, I won't look at it for some time, however the source code to get the disks is generally pretty short so don't hesitate to take a look and see if a solution can be reached to get this information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants