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