MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / Save

Method Save

cpp/devices/disk_cache.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool 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
37shared_ptr<DiskTrack> DiskCache::GetTrack(uint64_t block)
38{

Callers 2

AssignMethod · 0.45
FlushCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected