pub fn format_block_device(
device: impl AsRef<Path>,
filesystem: &Filesystem,
) -> BlockResult<i32>Expand description
Synchronous utility to format a block device with a given filesystem. Note: ZFS creation can be slow because there’s potentially several commands that need to be run. async_format_block_device will be faster if you have many block devices to format