mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
virscsivhost: Introduce virSCSIVHostDeviceGetPath
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
6bcacd55e5
commit
5ac52bd0fe
@ -2334,6 +2334,7 @@ virSCSIDeviceSetUsedBy;
|
||||
virSCSIVHostDeviceFileIterate;
|
||||
virSCSIVHostDeviceFree;
|
||||
virSCSIVHostDeviceGetName;
|
||||
virSCSIVHostDeviceGetPath;
|
||||
virSCSIVHostDeviceListAdd;
|
||||
virSCSIVHostDeviceListCount;
|
||||
virSCSIVHostDeviceListDel;
|
||||
|
@ -243,6 +243,13 @@ virSCSIVHostDeviceGetName(virSCSIVHostDevicePtr dev)
|
||||
}
|
||||
|
||||
|
||||
const char *
|
||||
virSCSIVHostDeviceGetPath(virSCSIVHostDevicePtr dev)
|
||||
{
|
||||
return dev->path;
|
||||
}
|
||||
|
||||
|
||||
virSCSIVHostDevicePtr
|
||||
virSCSIVHostDeviceNew(const char *name)
|
||||
{
|
||||
|
@ -40,6 +40,7 @@ int virSCSIVHostDeviceFileIterate(virSCSIVHostDevicePtr dev,
|
||||
virSCSIVHostDeviceFileActor actor,
|
||||
void *opaque);
|
||||
const char *virSCSIVHostDeviceGetName(virSCSIVHostDevicePtr dev);
|
||||
const char *virSCSIVHostDeviceGetPath(virSCSIVHostDevicePtr dev);
|
||||
virSCSIVHostDevicePtr virSCSIVHostDeviceListGet(virSCSIVHostDeviceListPtr list,
|
||||
int idx);
|
||||
size_t virSCSIVHostDeviceListCount(virSCSIVHostDeviceListPtr list);
|
||||
|
Loading…
Reference in New Issue
Block a user