part_to_partnum


Description:

[ Version ( since = "1.13.25" ) ]
public int32 part_to_partnum (string partition) throws Error

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