class FvmDescriptor

Defined at line 30 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

A FVM descriptor represents a collection of partitions and constraints that should eventually be

converted into an image.

Public Methods

void FvmDescriptor ()

Defined at line 63 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void FvmDescriptor (const FvmDescriptor & )

Defined at line 64 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void FvmDescriptor (FvmDescriptor && )

Defined at line 65 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

FvmDescriptor & operator= (const FvmDescriptor & )

Defined at line 66 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

FvmDescriptor & operator= (FvmDescriptor && )

Defined at line 67 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

void ~FvmDescriptor ()

Defined at line 68 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

const std::set<Partition, Partition::LessThan> & partitions ()

Returns the partitions that belong to this fvm descriptor.

Defined at line 71 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

const FvmOptions & options ()

Returns the options of this descriptor.

Defined at line 74 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

uint64_t slice_count ()

Returns the amount of slices required for the partitions of this descriptor,

once a volume is formatted with it.

Defined at line 78 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

uint64_t metadata_required_size ()

Returns the amount of bytes required for this descriptor to format a volume. This accounts for

both copies of the FVM metadata.

Defined at line 82 of file ../../src/storage/volume_image/fvm/fvm_descriptor.h

fpromise::result<void, std::string> WriteBlockImage (Writer & writer)

Returns |fpromise::ok| if a fvm block image was successfully written into |writer|.

The generated block image, will preserve partition order in the partition table, and the

physical slices allocated for each mapping or extent, follow the order in which the partition

appears, and then mapping within each partition. This simplification, allows for easier

verification.

This method, will only write the required data to offset. If the resource being written to,

through writer, needs a specific size(e.g. fixed size image), this should be done before

writing to it.

Defined at line 160 of file ../../src/storage/volume_image/fvm/fvm_descriptor.cc

Records