class BlockPartitionClient

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

Public Methods

zx::result<std::unique_ptr<BlockPartitionClient>> Create (std::unique_ptr<VolumeConnector> connector)

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

zx::result<size_t> GetBlockSize ()

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

zx::result<size_t> GetPartitionSize ()

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

zx::result<PartitionMetadata> GetMetadata ()

Fetches the metadata of the partition. Fails if any of the fields aren't supported by the

underlying partition implementation. In general, this only makes sense to call on GPT-backed

partitions.

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

const VolumeConnector * connector ()

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

fidl::UnownedClientEnd<fuchsia_device::Controller> Controller ()

Returns the Controller connection for the partition. Asserts if the partition is not backed by

a Devfs instance.

TODO(https://fxbug.dev/339491886): This only exists to support Fvm's need to rebind drivers.

Remove once FVM is ported to storage-host.

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

fidl::UnownedClientEnd<fuchsia_storage_block::Block> Block ()

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

void BlockPartitionClient (const BlockPartitionClient & )

No copy.

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

BlockPartitionClient & operator= (const BlockPartitionClient & )

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

void BlockPartitionClient (BlockPartitionClient && o)

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

BlockPartitionClient & operator= (BlockPartitionClient && )

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

bool SupportsBlockPartition ()

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

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

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

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

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

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

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

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

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

zx::result<storage::OwnedVmoid> RegisterVmoid (const zx::vmo & vmo)

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

zx::result<> Read (vmoid_t vmoid, size_t vmo_size, size_t dev_offset, size_t vmo_offset)

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

zx::result<> Write (vmoid_t vmoid, size_t vmo_size, size_t dev_offset, size_t vmo_offset)

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

zx::result<> Trim ()

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

zx::result<> Flush ()

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

Friends

class FixedOffsetBlockPartitionClient