Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pkg/implementation/physicaldrivegetter/rhel8.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 1 addition & 4 deletions pkg/implementation/physicaldrivegetter/ssacli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down