blob: 8ddffd43334c16569166ae08be9fcdc153f09490 [file] [log] [blame] [edit]
// Copyright 2022 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package main
// The objective of this file is to collect config parts and routines useful for Linux bugs management,
// thus reducing the size of the dashboard config file.
// canBeVfsBug determines whether a bug could belong to the VFS subsystem itself.
func canBeVfsBug(bug *Bug) bool {
for _, subsystem := range bug.LabelValues(SubsystemLabel) {
// The "vfs" one is left for compatibility with the older matching code.
if subsystem.Value == "vfs" || subsystem.Value == "fs" {
return true
}
}
return false
}