MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / wtMakeDiskDataFromImage

Function wtMakeDiskDataFromImage

src/gui2/datastore.cc:651–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649}
650
651static std::shared_ptr<Disk> wtMakeDiskDataFromImage(
652 std::shared_ptr<Image>& image)
653{
654 image->calculateSize();
655 image->populateSectorPhysicalLocationsFromLogicalLocations(*diskLayout);
656 if (image->getGeometry().totalBytes != diskLayout->totalBytes)
657 error("loaded image is not the right size for this format");
658
659 return std::make_shared<Disk>(image, *diskLayout);
660}
661
662void Datastore::writeImage(const std::fs::path& path)
663{

Callers 2

readImageMethod · 0.85
createBlankImageMethod · 0.85

Calls 3

errorFunction · 0.85
calculateSizeMethod · 0.80

Tested by

no test coverage detected