Android-cuttlefish cvd tool
|
Public Member Functions | |
CompositeDiskBuilder (bool read_only) | |
Result< void > | AppendPartition (ImagePartition source) |
std::uint64_t | DiskSize () const |
Result< CompositeDisk > | MakeCompositeDiskSpec (const std::string &header_file, const std::string &footer_file) const |
Result< GptBeginning > | Beginning () const |
GptEnd | End (const GptBeginning &head) const |
Private Attributes | |
std::vector< PartitionInfo > | partitions_ |
std::uint64_t | next_disk_offset_ = sizeof(GptBeginning) |
bool | read_only_ = true |
Incremental builder class for producing partition tables. Add partitions one-by-one, then produce specification files
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Generates a GUID Partition Table footer that matches the header in head
.
|
inline |
Generates a composite disk specification file, assuming that header_file
and footer_file
will be populated with the contents of Beginning()
and End()
.
|
private |
|
private |
|
private |