| 649 | } |
| 650 | |
| 651 | static 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 | |
| 662 | void Datastore::writeImage(const std::fs::path& path) |
| 663 | { |
no test coverage detected