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
Returns device info on every device it can find in the devices slice
The device info may not be in the same order as the slice so be aware.
This function is more efficient because it only call udev list once
Returns iterator over device info on every device it can find in the devices slice
The device info may not be in the same order as the slice so be aware.
This function is more efficient because it only call udev list once
Scan a system and return all block devices that udev knows about
This function will skip udev devices identified as partition. If
it can’t discover this it will error on the side of caution and
return the device
Scan a system and return iterator over all block devices that udev knows about
This function will skip udev devices identified as partition. If
it can’t discover this it will error on the side of caution and
return the device
Scan a system and return all block devices that udev knows about
This function will only retun the udev devices identified as partition.
If it can’t discover this it will error on the side of caution and
return the device
Scan a system and return iterator over all block devices that udev knows about
This function will only retun the udev devices identified as partition.
If it can’t discover this it will error on the side of caution and
return the 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.