class PartitionCopyClient

Defined at line 180 of file ../../src/firmware/paver/partition-client.h

Specialized partition client which duplicates to multiple partitions, and attempts to read from

each.

Public Methods

void PartitionCopyClient (std::vector<std::unique_ptr<PartitionClient>> partitions)

Defined at line 182 of file ../../src/firmware/paver/partition-client.h

void PartitionCopyClient (const PartitionCopyClient & )

No copy, no move.

Defined at line 199 of file ../../src/firmware/paver/partition-client.h

PartitionCopyClient & operator= (const PartitionCopyClient & )

Defined at line 200 of file ../../src/firmware/paver/partition-client.h

void PartitionCopyClient (PartitionCopyClient && )

Defined at line 201 of file ../../src/firmware/paver/partition-client.h

PartitionCopyClient & operator= (PartitionCopyClient && )

Defined at line 202 of file ../../src/firmware/paver/partition-client.h

zx::result<size_t> GetBlockSize ()

Returns the LCM of all block sizes.

Defined at line 326 of file ../../src/firmware/paver/partition-client.cc

zx::result<size_t> GetPartitionSize ()

Returns the minimum of all partition sizes.

Defined at line 340 of file ../../src/firmware/paver/partition-client.cc

zx::result<> Read (const zx::vmo & vmo, size_t size)

Attempt to read from each partition, returning on the first successful one.

Defined at line 356 of file ../../src/firmware/paver/partition-client.cc

zx::result<> Write (const zx::vmo & vmo, size_t vmo_size)

Write to *every* partition.

Defined at line 366 of file ../../src/firmware/paver/partition-client.cc

zx::result<> Trim ()

Trim *every* partition.

Defined at line 383 of file ../../src/firmware/paver/partition-client.cc

zx::result<> Flush ()

Flush *every* partition.

Defined at line 393 of file ../../src/firmware/paver/partition-client.cc