Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Extend smart by adding a timestamp when last successful smart test finished

Aperta
#1,093 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c

Direzione di ricerca

Start with the SMART plugin, which now shells out to smartmontools, and find where it reads device attributes. The issue's sample smartctl -a output shows the Self-test log with a LifeTime(hours) column; that value is the one to capture for the last completed test. Done means the plugin reports that value, and it needs a decision on how to expose it through the D-Bus API. Expect maintainer input on that API choice before writing code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

RFE

Since the SMART plugin is now implemented by using smartmontools it would be nice to include a timestamp of the last finished self test.

When I use smartctl -a /dev/sda to check status of my disk I can see a history of self-tests and it includes a LifeTime timestamp when the tests was finished. The LifeTime number corresponds to the disk power-on-hours value.

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      4539         -
# 2  Short offline       Completed without error       00%      4372         -
# 3  Short offline       Completed without error       00%      4132         -
...

It would be nice if this value was then available in the udisks dbus api.

Lingua principale
C
Stelle
137
Fork
64
Merge medio
22h 21m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di storaged-project/libblockdev

Tutte le issue di storaged-project/libblockdev

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.