This commit is contained in:
Jamie Cameron
2018-11-28 20:43:51 -08:00
parent 8f5e734c9c
commit 07c83691d0

View File

@@ -317,7 +317,8 @@ if (&get_smart_version() > 5.0) {
# Not enabled!
$rv{'enabled'} = 0;
}
if ($device =~ /^\/dev\/nvme/ && $out =~ /Model Number:/i) {
if ($device =~ /^\/dev\/nvme/ &&
$out =~ /(Model\s+Number|Device\s+Model):/i) {
# For NVME devices, surprisingly smart support/enabled info is
# not shown. So assume they work
$rv{'support'} = 1;