package
0.0.0-20221215221243-b79a0d8da330
Repository: https://github.com/purecloudlabs/gprovision.git
Documentation: pkg.go.dev
# Packages
Package md does various things with mdadm.
Package partitioning allows creation of MBR and GPT partition tables and partitions, DESTROYING ANY EXISTING DATA.
# Functions
Return a path for each non-virtual block device.
No description provided by the author
No description provided by the author
return name, size of storage devices.
No description provided by the author
No description provided by the author
No description provided by the author
like AllBlockDevs, but uses a filter function to limit the results.
No description provided by the author
return a BlkInfo for each blockdevice containing a filesystem we recognize.
No description provided by the author
IsDev returns true if given dev represents a physical device.
IsPart returns true if given dev is a partition.
PartNum returns the part number of a partition, or empty string.
PartParent returns the parent block device for the given partition.
given a dev like '/dev/sda', find device model stringfor sata, 'model' file includes vendor as well.
use ioctl to find dev size.
for sata, always returns ATAfor scsi, ???for usb, returns actual vendor.
SizeToleranceMatch returns true if actual value is within tolerance of desired value.Tolerance is expressed as an integer 1-100, representing a percent.
# Variables
No description provided by the author
# Type aliases
a function that returns false if given bi should be filtered out.
A function that returns true if the entry is to be kept.
No description provided by the author