Merge "libsnapshot_fuzzer: allow ENXIO."

This commit is contained in:
Yifan Hong 2021-09-29 20:58:10 +00:00 committed by Gerrit Code Review
commit d6fc145473

View file

@ -139,7 +139,7 @@ std::vector<DeviceMapper::TargetInfo> GetTableInfoIfExists(const std::string& de
auto& dm = DeviceMapper::Instance();
std::vector<DeviceMapper::TargetInfo> table;
if (!dm.GetTableInfo(dev_name, &table)) {
PCHECK(errno == ENODEV);
PCHECK(errno == ENODEV || errno == ENXIO);
return {};
}
return table;