[ Version ( since = "1.19.49" ) ]
public HashTable<string,string> list_disk_labels () throws Error
mapping of disk labels to devices
If you add drives using the optional label
parameter of guestfs_session_add_drive_opts
, you can use this call
to map between disk labels, and raw block device and partition names (like /dev/sda and /dev/sda1).
This returns a hashtable, where keys are the disk labels (*without* the /dev/disk/guestfs prefix), and the values are the full raw block device and partition names (eg. /dev/sda and /dev/sda1).
this |
A GuestfsSession object |
a GHashTable of results, or NULL on error |