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

Method SetUpCache

cpp/devices/disk.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void Disk::SetUpCache(off_t image_offset, bool raw)
81{
82 cache = make_unique<DiskCache>(GetFilename(), size_shift_count, GetBlockCount(), image_offset);
83 cache->SetRawMode(raw);
84}
85
86void Disk::ResizeCache(const string& path, bool raw)
87{

Callers

nothing calls this directly

Calls 1

SetRawModeMethod · 0.80

Tested by

no test coverage detected