device_index
Description:
convert device to index
This function takes a device name (eg. "/dev/sdb") and returns the index of the device in the list of devices.
Index numbers start from 0. The named device must exist, for example as a string returned from list_devices.
See also list_devices, part_to_dev.
Parameters:
this |
A GuestfsSession object |
Returns:
the returned value, or -1 on error |