diff --git a/pkg/implementation/physicaldrivegetter/rhel8.go b/pkg/implementation/physicaldrivegetter/rhel8.go index eb24440..37d8fef 100644 --- a/pkg/implementation/physicaldrivegetter/rhel8.go +++ b/pkg/implementation/physicaldrivegetter/rhel8.go @@ -227,10 +227,7 @@ func (r *RHEL8) physicalDriveStatus(device *BlockDevice) (physicaldrive.PDStatus return physicaldrive.PDStatusFailed, "", nil } - if device.MountPoint != "" || - device.FileSystemType != "" || - device.PartitionType != "" || - device.ParentKernelName != "" { + if device.MountPoint != "" || device.FileSystemType != "" || device.PartitionType != "" { return physicaldrive.PDStatusUsed, reason, nil } diff --git a/pkg/implementation/physicaldrivegetter/ssacli.go b/pkg/implementation/physicaldrivegetter/ssacli.go index e3bf32e..6ac24ab 100644 --- a/pkg/implementation/physicaldrivegetter/ssacli.go +++ b/pkg/implementation/physicaldrivegetter/ssacli.go @@ -294,10 +294,7 @@ func parseSlotInfo(pd *physicaldrive.PhysicalDrive, key, value string) { // If the device is mounted or has a filesystem type, it is considered used. // Otherwise, it is considered unassigned good. func isBlockDeviceUsed(device *BlockDevice) bool { - if device.MountPoint != "" || - device.FileSystemType != "" || - device.PartitionType != "" || - device.ParentKernelName != "" { + if device.MountPoint != "" || device.FileSystemType != "" || device.PartitionType != "" { return true }