func ignoreDevices(dev internal.BlockDevice) bool {
	if readOnly, err := dev.GetReadOnly(); err != nil || readOnly {
		klog.Infof("ignoring read only device %q", dev.Name)
		return true
	}

	if hasChildren, err := dev.HasChildren(); err != nil || hasChildren {
		klog.Infof("ignoring root device %q", dev.Name)
		return true
	}

	if dev.State == internal.StateSuspended {
		klog.Infof("ignoring device %q with invalid state %q", dev.Name, dev.State)
		return true
	}

	if !(dev.Type == "disk" || dev.Type == "part") {
		klog.Infof("ignoring device %q with invalid type %q", dev.Name, dev.Type)
		return true
	}

	return false
}
// ignoreDevices checks if a device should be ignored during discovery
ignoreDevices checks if a device should be ignored during discovery
// ignoreDevices checks if a device should be ignored during discovery
func ignoreDevices(dev internal.BlockDevice) bool {
	if readOnly, err := dev.GetReadOnly(); err != nil || readOnly {
		klog.Infof("ignoring read only device %q", dev.Name)
		return true
	}
	if hasChildren, err := dev.HasChildren(); err != nil || hasChildren {
		klog.Infof("ignoring root device %q", dev.Name)
		return true
	}
	if dev.State == internal.StateSuspended {
		klog.Infof("ignoring device %q with invalid state %q", dev.Name, dev.State)
		return true
	}
	if !(dev.Type == "disk" || dev.Type == "part") {
		klog.Infof("ignoring device %q with invalid type %q", dev.Name, dev.Type)
		return true
	}
	return false
}
func ignoreDevices ( dev internal . BlockDevice ) bool { if readOnly , err := dev . GetReadOnly ( ) ; err != nil || readOnly { klog . Infof ( " " , dev . Name ) return true } if hasChildren , err := dev . HasChildren ( ) ; err != nil || hasChildren { klog . Infof ( " " , dev . Name ) return true } if dev . State == internal . StateSuspended { klog . Infof ( " " , dev . Name , dev . State ) return true } if ! ( dev . Type == " " || dev . Type == " " ) { klog . Infof ( " " , dev . Name , dev . Type ) return true } return false }
ignoreDevices checks if a device should be ignored during discovery
ignoreDevices checks if a device should be ignored during discovery