seems like we need to drop the namespace part before calling
smartctl.
note that NVME devices require smartmontools >= 6.5
my $type;
my $returncode = 0;
+
+ $disk =~ s/n\d+$//
+ if $disk =~ m!^/dev/nvme\d+n\d+$!;
+
eval {
$returncode = run_command([$SMARTCTL, '-H', '-A', '-f', 'brief', $disk], noerr => 1, outfunc => sub{
my ($line) = @_;
return "NOT A DEVICE" if !assert_blockdev($disk, 1);
my $message;
+ $disk =~ s/n\d+$//
+ if $disk =~ m!^/dev/nvme\d+n\d+$!;
run_command([$SMARTCTL, '-H', $disk], noerr => 1, outfunc => sub {
my ($line) = @_;