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

udiskslinuxdriveata: Port to libblockdev SMART plugin #1179

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

tbzatek
Copy link
Member

@tbzatek tbzatek commented Sep 4, 2023

Completely untested, first draft that I'm completely not confident with. Lots of open questions regarding loosely-defined smartctl JSON output as well as loosely defined drivedb attribute names. Might be easier to implement compat drivedb parser for libatasmart perhaps?

Needs storaged-project/libblockdev#835

TODO:

  • blob emulation - deprecate, accept JSON or even implement a custom reader?
  • move some stuff back to libblockdev?
  • write some tests
  • test it!

Fixes #433
Fixes #568

@tbzatek tbzatek added this to the udisks-2.11.0 milestone Sep 4, 2023
@tbzatek tbzatek self-assigned this Sep 4, 2023
@tbzatek tbzatek force-pushed the smart-1 branch 2 times, most recently from 8b50633 to 164bd49 Compare September 5, 2023 12:52
@tbzatek tbzatek force-pushed the smart-1 branch 4 times, most recently from 5dbd5a3 to 101a033 Compare January 18, 2024 18:12
@tbzatek tbzatek force-pushed the smart-1 branch 5 times, most recently from f51c6a4 to beb434a Compare January 31, 2024 16:43
@tbzatek tbzatek changed the title [WIP] udiskslinuxdriveata: Port to libblockdev SMART plugin udiskslinuxdriveata: Port to libblockdev SMART plugin Jun 3, 2024
@tbzatek tbzatek marked this pull request as ready for review June 3, 2024 10:44
@tbzatek

This comment was marked as outdated.

1 similar comment
@tbzatek
Copy link
Member Author

tbzatek commented Jun 3, 2024

Jenkins, test this please.

@tbzatek

This comment was marked as outdated.

@tbzatek

This comment was marked as outdated.

@tbzatek

This comment was marked as outdated.

@tbzatek

This comment was marked as outdated.

@tbzatek

This comment was marked as outdated.

Also, make the dependency on libblockdev-smart optional,
the D-Bus API is ready for that. If unavailable, the
org.freedesktop.UDisks2.Drive.Ata.SmartUpdated property
will just stay zero forever.
@tbzatek
Copy link
Member Author

tbzatek commented Jun 10, 2024

Jenkins, test this please.

Copy link
Member

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tbzatek tbzatek merged commit 8821a78 into storaged-project:master Jun 11, 2024
14 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong disk temperature for ssd Libatasmart vs smartctl
2 participants