Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DevicePrefix ¶
func DevicePrefix() string
Types ¶
type Detect ¶
func (*Detect) SmartCtlInfo ¶
updates a device model with information from smartctl --scan It has a couple of issues however: - WWN is provided as component data, rather than a "string". We'll have to generate the WWN value ourselves - WWN from smartctl only provided for ATA protocol drives, NVMe and SCSI drives do not include WWN.
func (*Detect) SmartctlScan ¶
This function calls smartctl --scan which can be used to detect storage devices. It has a couple of issues however: - --scan does not return any results on mac
To handle these issues, we have OS specific wrapper functions that update/modify these detected devices. models.Device returned from this function only contain the minimum data for smartctl to execute: device type and device name (device file).
func (*Detect) TransformDetectedDevices ¶
function will remove devices that are marked for "ignore" in config file will also add devices that are specified in config file, but "missing" from smartctl --scan this function will also update the deviceType to the option specified in config.