| 28 | } |
| 29 | |
| 30 | bool DiskCache::Save() |
| 31 | { |
| 32 | // Save valid tracks |
| 33 | return ranges::none_of(cache.begin(), cache.end(), [this](const cache_t& c) |
| 34 | { return c.disktrk != nullptr && !c.disktrk->Save(sec_path, cache_miss_write_count); }); |
| 35 | } |
| 36 | |
| 37 | shared_ptr<DiskTrack> DiskCache::GetTrack(uint64_t block) |
| 38 | { |
no outgoing calls
no test coverage detected