Crate export_ffs

source ·
Expand description

Export a fuchsia.io/Directory as a factory filesystem partition on a provided block device.

Functions

Export the contents of a fuchsia.io/Directory as a flat FactoryFS partition on the provided device. All files are extracted from the directory and placed in the FactoryFS partition, with a name that corresponds with the complete path of the file in the original directory, relative to that directory. It takes ownership of the channel to the device, which it assumes speaks fuchsia.hardware.Block, and closes it after all the writes are issued to the block device.