This project contains tools for working with Ubi block devices, for converting SPDK base image with its overlay into a new disk with its own format.
This utility reads an overlay image file and extracts metadata information, including:
- Verification of magic bytes
- Version information
- Stripe size
- Stripe header values (1 = present, 0 = not present)
First you need to install the prerequisites:
sudo apt update
sudo apt install -y make autoconf gcc clang libtoolTo build, run:
makeTo clean the build, run:
make clean./migrate -base-image=<path> -overlay-image=<path> -output-image=<path> -kek-file=<path> -vhost-backend-conf-file=<path>The metadata follows the format defined in the UBI specification:
- The first 8MB of the overlay image contains the metadata
- The metadata contains an array of stripe headers, each indicating whether a stripe is present (1) or not present (0)