mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
virscsi: Introduce virSCSIDeviceGetPath
We will need this function in near future so that we know what /dev device corresponds to the SCSI device. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c4237d8e0c
commit
6bcacd55e5
@ -2312,6 +2312,7 @@ virSCSIDeviceGetAdapter;
|
||||
virSCSIDeviceGetBus;
|
||||
virSCSIDeviceGetDevName;
|
||||
virSCSIDeviceGetName;
|
||||
virSCSIDeviceGetPath;
|
||||
virSCSIDeviceGetReadonly;
|
||||
virSCSIDeviceGetSgName;
|
||||
virSCSIDeviceGetShareable;
|
||||
|
@ -315,6 +315,12 @@ virSCSIDeviceGetName(virSCSIDevicePtr dev)
|
||||
return dev->name;
|
||||
}
|
||||
|
||||
const char *
|
||||
virSCSIDeviceGetPath(virSCSIDevicePtr dev)
|
||||
{
|
||||
return dev->sg_path;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
virSCSIDeviceGetAdapter(virSCSIDevicePtr dev)
|
||||
{
|
||||
|
@ -58,6 +58,7 @@ int virSCSIDeviceSetUsedBy(virSCSIDevicePtr dev,
|
||||
const char *domname);
|
||||
bool virSCSIDeviceIsAvailable(virSCSIDevicePtr dev);
|
||||
const char *virSCSIDeviceGetName(virSCSIDevicePtr dev);
|
||||
const char *virSCSIDeviceGetPath(virSCSIDevicePtr dev);
|
||||
unsigned int virSCSIDeviceGetAdapter(virSCSIDevicePtr dev);
|
||||
unsigned int virSCSIDeviceGetBus(virSCSIDevicePtr dev);
|
||||
unsigned int virSCSIDeviceGetTarget(virSCSIDevicePtr dev);
|
||||
|
Loading…
Reference in New Issue
Block a user