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