]> git.proxmox.com Git - pve-storage.git/commit
Diskmanage: extract nvme wearout from smartctl text
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 4 Jun 2019 11:05:27 +0000 (13:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Jun 2019 08:07:46 +0000 (10:07 +0200)
commit96446a9dc25c1448b2e0ccb34a54c40d54ca97a1
treefef47494285ac83dd01f8ec68ade4d661676f272
parentd0c9eff46a9ae996706175bc436250ab3e1eaa1f
Diskmanage: extract nvme wearout from smartctl text

extract the info from the line:
Percentage Used: XX%

also adapt the tests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit ea928fd41ab09128bd3ef37c65da1eb3fc96dc78)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Diskmanage.pm
test/disk_tests/nvme_smart/disklist_expected.json
test/disk_tests/nvme_smart/nvme0n1_smart_expected.json