Function fatfs::format_volume

source ·
pub fn format_volume<T: ReadWriteSeek>(
    disk: T,
    options: FormatVolumeOptions
) -> Result<()>
Expand description

Create FAT filesystem on a disk or partition (format a volume)

Warning: this function overrides internal FAT filesystem structures and causes a loss of all data on provided partition. Please use it with caution. Only quick formatting is supported. To achieve a full format zero entire partition before calling this function. Supplied disk parameter cannot be seeked (internal pointer must be on position 0). To format a fragment of a disk image (e.g. partition) library user should wrap the file struct in a struct limiting access to partition bytes only e.g. fscommon::StreamSlice.