Records
Functions
-
fpromise::result<fvm::Header, std::string> ConvertToFvmHeader (const fvm::SparseImage & sparse_header, uint64_t slice_count)Overload with no options by default.
Defined at line 71 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.h
-
uint32_t GetImageFlags (const FvmOptions & options)Returns a bit set representing the suported options in the |fvm::SparseImage| that are equivalent
in |FvmOptions|.
Defined at line 219 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
uint32_t GetPartitionFlags (const Partition & partition)Returns a bit set representing the suported options in the |fvm::PartitionDescriptor| that are
equivalent in |Partition|.
Defined at line 236 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
CompressionOptions GetCompressionOptions (const fvm::SparseImage & header)Returns the compressions options stored in |header|.
Defined at line 445 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fpromise::result<fvm::SparseImage, std::string> GetHeader (uint64_t offset, const Reader & reader)On success, returns the valid |fvm::SparseImage| header contained in |reader| starting at
|offset|.
On failure, returns the error which caused the header to be invalid.
Defined at line 338 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fpromise::result<std::vector<PartitionEntry>, std::string> GetPartitions (uint64_t offset, const Reader & reader, const fvm::SparseImage & header)On success, returns the valid collection of |FvmSparsePartitionEntry| as described by |header|
and contained in |reader| as starting at |offset|. That is, the partition descriptors start
at |offset| in |reader|.
Defined at line 379 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fpromise::result<fvm::Header, std::string> ConvertToFvmHeader (const fvm::SparseImage & sparse_header, uint64_t slice_count, const std::optional<FvmOptions> & options)Returns a non sparse |fvm::Header| from a sparse |header| with supported |options| overriden,
and with a known number of initial slices.
Supported options can be supplied for overriding those stored in the original header.
Supported options:
- |max_volume_size|
- |target_volume_size
Defined at line 455 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fpromise::result<fvm::Metadata, std::string> ConvertToFvmMetadata (const fvm::Header & header, std::span<const PartitionEntry> partition_entries)Defined at line 517 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fvm::SparseImage GenerateHeader (const FvmDescriptor & descriptor)Returns a |fvm::SparseImage| representation of |descriptor| on success.
Defined at line 261 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
fpromise::result<PartitionEntry, std::string> GeneratePartitionEntry (uint64_t slice_size, const Partition & partition, bool extents_are_filled)Returns a |FvmSparsePartitionEntry| representation of |partition| on success.
If |extents_are_filled| is set to true, for each mapping in |partition| that has
|AddressMapOption::kFill| set, the extent length will match the size of the extent, since the
data will be expanded to include such values.
Defined at line 281 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc
-
uint64_t CalculateUncompressedImageSize (const FvmDescriptor & descriptor)Returns the size in bytes of the generated sparse image for |descriptor|.
Defined at line 321 of file ../../src/storage/volume_image/fvm/fvm_sparse_image.cc