udisks
udisks copied to clipboard
[WIP] udiskslinuxdriveata: Port to libblockdev SMART plugin
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 https://github.com/storaged-project/libblockdev/pull/835
TODO:
- [x] blob emulation - deprecate, accept JSON or even implement a custom reader?
- [x] move some stuff back to libblockdev?
- [ ] write some tests
- [ ] test it!