part_to_dev
Description:
convert partition name to device name
This function takes a partition name (eg. "/dev/sdb1") and removes the partition number, returning the device name (eg. "/dev/sdb").
The named partition must exist, for example as a string returned from list_partitions.
See also part_to_partnum, device_index.
Parameters:
this |
A GuestfsSession object |
Returns:
the returned string, or NULL on error |