Modules§
Structs§
Enums§
- Block
Utils Error - Device
State - Device
Type - What type of device has been detected.
- Filesystem
- This allows you to tweak some settings when you’re formatting the filesystem
- Filesystem
Type - What type of filesystem
- Media
Type - What type of media has been detected.
- Metadata
Profile - This is used for formatting btrfs filesystems and setting the metadata profile
- Scheduler
- Scsi
Device Type - Vendor
- What raid card if any the system is using to serve disks
Functions§
- async_
format_ block_ device - erase_
block_ device - format_
block_ device - 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
- get_
mount_ device - Parse mtab and return the device which is mounted at a given directory
- get_
mounted_ devices - Parse mtab and return all mounted block devices not including LVM
- get_
mounted_ devices_ iter - Parse mtab and return iterator over all mounted block devices not including LVM
- get_
mountpoint - Parse mtab and return the mountpoint the device is mounted at. This is the opposite of get_mount_device
- get_
scsi_ info - Gathers all available scsi information
- is_
mounted - Checks and returns if a particular directory is a mountpoint
- 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.
- set_
elevator - sort_
scsi_ info - Examine the ScsiInfo devices and associate a host ScsiInfo device if it exists
- sort_
scsi_ info_ iter - Examine the ScsiInfo devices and associate a host ScsiInfo device if it exists
- unmount_
device - weekly_
defrag