audit: ignore virtual hdisk and coprocessor noise
This commit is contained in:
@@ -91,7 +91,11 @@ func discoverStorageDevices() []lsblkDevice {
|
||||
// These have zero reported size, a generic fake serial, and a model name that
|
||||
// starts with "Virtual HDisk".
|
||||
func isVirtualBMCDisk(dev lsblkDevice) bool {
|
||||
model := strings.ToLower(strings.TrimSpace(dev.Model))
|
||||
return isVirtualHDiskModel(dev.Model)
|
||||
}
|
||||
|
||||
func isVirtualHDiskModel(model string) bool {
|
||||
model = strings.ToLower(strings.TrimSpace(model))
|
||||
return strings.HasPrefix(model, "virtual hdisk")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user