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

Method DiskCache

cpp/devices/disk_cache.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include <algorithm>
22
23DiskCache::DiskCache(const string& path, int size, uint64_t blocks, off_t imgoff)
24 : sec_path(path), sec_size(size), sec_blocks(blocks), imgoffset(imgoff)
25{
26 assert(blocks > 0);
27 assert(imgoff >= 0);
28}
29
30bool DiskCache::Save()
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected