Crate blackout_target

Source
Expand description

library for target side of filesystem integrity host-target interaction tests

Modules§

static_tree
Generate a random directory tree that can be commited to disk all at once. The general formula goes like this -

Structs§

TestServer
A test server, which serves the fuchsia.blackout.test.Controller protocol.

Traits§

Test
The three steps the target-side of a blackout test needs to implement.

Functions§

dev
Returns a directory proxy connected to /dev.
find_dev
Find the device in /dev/class/block that represents a given topological path. Returns the full path of the device in /dev/class/block.
find_partition
Find an existing test partition using the device label and optional path, and connect to the controller proxy for it.
generate_content
Generate a Vec of random bytes from a seed using a standard distribution.
set_up_partition
Set up a partition for testing using the device label and optional device path, returning the device controller for it. If the path is provided, it’s directly connected to. If a label is provided, it searches for that label, using it if found. If it’s not found, the logic attempts to create a new gpt partition to use.