| 19 | } |
| 20 | |
| 21 | bool matches(const std::string& root, const std::string& mountPoint, |
| 22 | const std::string& fsType, const std::string& source) const { |
| 23 | return matchList(rootSubstrs, root) && |
| 24 | matchList(mountPointSubstrs, mountPoint) && |
| 25 | (fsTypes.empty() || fsTypes.count(fsType) > 0) && |
| 26 | matchSourceList(sources, source); |
| 27 | } |
| 28 | |
| 29 | bool matches(const std::vector<std::string>& roots, const std::string& mountPoint, |
| 30 | const std::string& fsType, const std::string& source) const { |