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

Method UpdateSerialNumber

cpp/devices/disk_cache.cpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void DiskCache::UpdateSerialNumber()
179{
180 // Update and do nothing except 0
181 serial++;
182 if (serial != 0) {
183 return;
184 }
185
186 // Clear serial of all caches
187 for (cache_t& c : cache) {
188 c.serial = 0;
189 }
190}
191
192vector<PbStatistics> DiskCache::GetStatistics(bool is_read_only) const
193{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected