]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Diskmanage.pm
disk manage: pass full NVMe device path to smartctl
[pve-storage.git] / PVE / Diskmanage.pm
index f682e59d65a460b32175548e396c8d9ec373b01b..a311ffd99ec982ef10311966be2bd9164cb405c6 100644 (file)
@@ -93,8 +93,6 @@ sub get_smart_data {
     my $smartdata = {};
     my $type;
 
-    $disk =~ s/n\d+$// if $disk =~ m!^/dev/nvme\d+n\d+$!;
-
     my $cmd = [$SMARTCTL, '-H'];
     push @$cmd, '-A', '-f', 'brief' if !$healthonly;
     push @$cmd, $disk;