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

Using UDisks2 displays the device model name, not a human readable id. #94

Open
adrianbroher opened this issue Dec 10, 2013 · 0 comments

Comments

@adrianbroher
Copy link
Collaborator

While the current UDisks2 query implementation allows to query the disk temperature without installing hddtemp it returns only the Model name of the installed drive. This makes it hard to identify a drive when using multiple drives of the same model in a setup.

On first look is seems like UDisks2 doesn't expose a human readable identifier for drives, but for block devices exposed as HintName and set with UDISKS_NAME in the udev scripts or even an config file(?).

To fix this the implementation needs to:

  • query all block devices
  • iterate the block devices
  • filter out block devices that aren't backed by a drive (file loopback, aliases)
  • query the drive to read temperature data
  • Check if the HintName is set for the block device and use this as display label or use the device file as fallback.
@ghost ghost assigned adrianbroher Dec 10, 2013
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

1 participant