Crate block_utils [] [src]

Structs

Device

Device information that is gathered with udev

Enums

Filesystem

This allows you to tweak some settings when you're formatting the filesystem

FilesystemType

What type of filesystem

MediaType

What type of media has been detected.

MetadataProfile

This is used for formatting btrfs filesystems and setting the metadata profile

Functions

format_block_device

Utility to format a block device with a given filesystem.

get_device_info

Returns device information that is gathered with udev.

is_block_device

Checks to see if the subsystem this device is using is block

mount_device

Utility function to mount a device at a mount point NOTE: This assumes the device is formatted at this point. The mount will fail if the device isn't formatted.