This directory contains an implementation of a block-device-partition server. Behavior -------- The server uses Genode's block-session interfaces as both front and back end, leading to the most common use case where this server will reside "between" a block-driver server and a higher level component like a file-system server. At startup, the partition server will try to parse the master boot record (MBR) of its back-end block session. If no partition table is found, the whole block device is exported as partition '0'. In the other case, the MBR and possible extended boot records (EBRs) are parsed and offered as separate block sessions to the front-end clients. The four primary partitions will receive partition numbers '1' to '4' whereas the first logical partition will be assigned to '5'. The partition server also understands the GUID partition table (GPT). If the config attribute 'use_gpt' is set to 'yes' it will first try to parse any existing GPT. In case there is no GPT it will fall back to parsing the MBR. In order to route a client to the right partition, the server parses its configuration section looking for 'policy' tags. XML Syntax: ! part_blk supports partition reporting, which can be enabled via the configuration node. See below for an example. The report looks like follows (for MBR resp. GPT). ! ! ! ! ! ! ! ! ! ! Clients have read-only access to partitions unless overriden by a 'writeable' policy attribute. Usage ----- Configuration snippet with two clients and an (hypothetical) IDE driver: ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !