# fuchsia.boot.metadata

<br />

Added: HEAD

## **STRUCTS**

### Partition

*Defined in [fuchsia.boot.metadata/metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=20)*

| Field | Type | Description | Default |
|---|---|---|---|
| `type_guid` | `https://fuchsia.dev/reference/fidl/fuchsia.boot.metadata#PartitionGuid` | GUID specifying the format and use of data stored in the partition. | No default |
| `unique_guid` | `https://fuchsia.dev/reference/fidl/fuchsia.boot.metadata#PartitionGuid` | GUID unique to this partition. | No default |
| `first_block` | `uint64` | First block occupied by this partition. | No default |
| `last_block` | `uint64` | Last block occupied by this partition. | No default |
| `flags` | `uint64` | Reserved for future use. Set to 0. | No default |
| `name` | `string:32` |   | No default |

## **TABLES**

### MacAddressMetadata

*Defined in [fuchsia.boot.metadata/metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=11)*

Metadata containing the device's MAC address for Ethernet, Wifi, Bluetooth, etc.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `mac_address` | `https://fuchsia.dev/reference/fuchsia.net//https://fuchsia.dev/reference/fuchsia.net#MacAddress` | The MAC address as described in the Zircon Boot Image. |

### PartitionMap

*Defined in [fuchsia.boot.metadata/metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=41)*

The partition map as described in the Zircon Boot Image.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `block_count` | `uint64` | Total blocks used on the device. |
| ### 2 | `block_size` | `uint64` | Size of each block in bytes. |
| ### 4 | `reserved` | `uint32` | Reserved for future use. |
| ### 5 | `guid` | `https://fuchsia.dev/reference/fidl/fuchsia.boot.metadata#PartitionGuid` | Device GUID. |
| ### 6 | `partitions` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.boot.metadata#Partition>` |   |

### SerialNumberMetadata

*Defined in [fuchsia.boot.metadata/metadata.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=61)*

Metadata containing the device's serial number.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `serial_number` | `string:32` | The serial number as described in the Zircon Boot Image. |

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [PARTITION_GUID_LEN](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=16) | `16` | `uint64` |   |
| [SERIAL_NUMBER_LEN](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=57) | `32` | `uint8` |   |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [PartitionGuid](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.boot.metadata/metadata.fidl;l=18) | `array`\[`https://fuchsia.dev/reference/fidl/fuchsia.boot.metadata#PARTITION_GUID_LEN`\] |   |