[ Version ( since = "1.5.15" ) ]
public string part_to_dev (string partition) throws Error
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.
this |
A GuestfsSession object |
the returned string, or NULL on error |