pass deviceType when running smartctl data collection (for megaraid type disks).

Make DevicePrefix a public function available outside the detect module.
if device type is detected as "ata" or "scsi", dont pass in via -d parameter, can cause issues with missing data.
This commit is contained in:
Jason Kulatunga
2020-09-18 21:37:32 -06:00
parent 66122778a3
commit 24262f7c8c
6 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/jaypipes/ghw"
)
func (d *Detect) devicePrefix() string {
func DevicePrefix() string {
return "/dev/"
}