提交 5ac52bd0 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 6bcacd55
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册