Skip to content

Commit d809cc2

Browse files
committed
fix(collector): keep existing device type (upstream PR AnalogJ#803)
Prevents device type from being overwritten during SMART info collection. This preserves user-configured device types for drives that require specific type settings (e.g., USB bridges, RAID controllers). Origin: AnalogJ#803 Original author: @thomashilzendegen
1 parent df7da88 commit d809cc2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

collector/pkg/detect/detect.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func (d *Detect) SmartCtlInfo(device *models.Device) error {
8484
device.RotationSpeed = availableDeviceInfo.RotationRate
8585
device.Capacity = availableDeviceInfo.Capacity()
8686
device.FormFactor = availableDeviceInfo.FormFactor.Name
87-
device.DeviceType = availableDeviceInfo.Device.Type
8887
device.DeviceProtocol = availableDeviceInfo.Device.Protocol
8988
if len(availableDeviceInfo.Vendor) > 0 {
9089
device.Manufacturer = availableDeviceInfo.Vendor

0 commit comments

Comments
 (0)