Compare commits

..

6 Commits

Author SHA1 Message Date
Bad
9260195baf Update src/PVE/Diskmanage.pm 2025-12-14 17:05:24 +00:00
b7e245cecc make it caps cause others are caps too :) 2025-12-14 18:41:45 +02:00
5a0e5f1b4f add pmem disk type 2025-12-14 18:35:32 +02:00
b328fb1529 fix pmem 2025-12-14 18:31:42 +02:00
Bad
dcf3cc267a Update README.md 2025-12-14 16:27:18 +00:00
Bad
7f5aaac51c Add README.md 2025-12-14 16:27:12 +00:00
2 changed files with 7 additions and 1 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
install deps: `apt install build-essential debhelper-compat libtest-mockmodule-perl lintian pve-doc-generator`
clone repo -> cd repo -> make dinstall

View File

@ -566,7 +566,8 @@ sub get_disks {
return
if $dev !~ m/^(h|s|x?v)d[a-z]+$/
&& $dev !~ m/^nvme\d+n\d+$/
&& $dev !~ m/^pmem\d+s\d+$/
&& $dev !~ m/^pmem\d+s$/
&& $dev !~ m/^pmem\d+$/
&& $dev !~ m/^cciss\!c\d+d\d+$/;
my $data = get_udev_info("/sys/block/$dev") // return;
@ -585,6 +586,8 @@ sub get_disks {
if ($sysdata->{rotational} == 0) {
$type = 'ssd';
$type = 'nvme' if $dev =~ m/^nvme\d+n\d+$/;
$type = 'PMEM' if $dev =~ m/^pmem\d+s$/;
$type = 'PMEM' if $dev =~ m/^pmem\d+$/;
$data->{rpm} = 0;
} elsif ($sysdata->{rotational} == 1) {
if ($data->{rpm} != -1) {