add pmem disk type

This commit is contained in:
Bad
2025-12-14 18:35:32 +02:00
parent b328fb1529
commit 5a0e5f1b4f

View File

@ -585,6 +585,7 @@ sub get_disks {
if ($sysdata->{rotational} == 0) { if ($sysdata->{rotational} == 0) {
$type = 'ssd'; $type = 'ssd';
$type = 'nvme' if $dev =~ m/^nvme\d+n\d+$/; $type = 'nvme' if $dev =~ m/^nvme\d+n\d+$/;
$type = 'pmem' if $dev =~ m/^pmem\d+s$/;
$data->{rpm} = 0; $data->{rpm} = 0;
} elsif ($sysdata->{rotational} == 1) { } elsif ($sysdata->{rotational} == 1) {
if ($data->{rpm} != -1) { if ($data->{rpm} != -1) {