lvm_canonical_lv_name


Description:

[ Version ( since = "1.5.24" ) ]
public string lvm_canonical_lv_name (string lvname) throws Error

get canonical name of an LV

This converts alternative naming schemes for LVs that you might find to the canonical name. For example, /dev/mapper/VG-LV is converted to /dev/VG/LV.

This command returns an error if the lvname parameter does not refer to a logical volume.

See also is_lv, canonical_device_name.

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error