Format number and unit from KB, MB, GB, TB to MB
Print dev partition info by MB
Get partition number by given device partition start and end
Get the first parition number by given device and partition/FS type. e.g. extended, xfs Return -1 when not find
Get all information (start, end, size) about the bigest free space Return a hash contain start, end and size
Get partition by mountpoint, e.g. give /home get /dev/sda3
Get partition table information by giving device
Create a new partition by giving device, partition type and partition size part_type (extended|logical|primary)
Remove a partition by given partition name, e.g /dev/sdb5
Format partition to target filesystem
Returns the value of the "df -h" output in given column, for a given partition
df_command([partition=>$partition , column=> $column])
Return the value of the defined partition size
get_partition_size($partition)
Returns the value of used space of the defined partition
get_used_partition_space($partition)