提交 40bfdb1e 编写于 作者: P Peter Krempa

conf: Remove virDomainDiskPathByName

Last use was removed in 29682196.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
上级 ec042d37
...@@ -16896,17 +16896,6 @@ virDomainDiskIndexByName(virDomainDefPtr def, const char *name, ...@@ -16896,17 +16896,6 @@ virDomainDiskIndexByName(virDomainDefPtr def, const char *name,
return candidate; return candidate;
} }
/* Return the path to a disk image if a string identifies at least one
* disk belonging to the domain (both device strings 'vda' and paths
* '/path/to/file' are converted into '/path/to/file'). */
const char *
virDomainDiskPathByName(virDomainDefPtr def, const char *name)
{
int idx = virDomainDiskIndexByName(def, name, true);
return idx < 0 ? NULL : virDomainDiskGetSource(def->disks[idx]);
}
virDomainDiskDefPtr virDomainDiskDefPtr
virDomainDiskByName(virDomainDefPtr def, virDomainDiskByName(virDomainDefPtr def,
const char *name, const char *name,
......
...@@ -3162,7 +3162,6 @@ int virDomainDiskIndexByName(virDomainDefPtr def, const char *name, ...@@ -3162,7 +3162,6 @@ int virDomainDiskIndexByName(virDomainDefPtr def, const char *name,
virDomainDiskDefPtr virDomainDiskByName(virDomainDefPtr def, virDomainDiskDefPtr virDomainDiskByName(virDomainDefPtr def,
const char *name, const char *name,
bool allow_ambiguous); bool allow_ambiguous);
const char *virDomainDiskPathByName(virDomainDefPtr, const char *name);
int virDomainDiskInsert(virDomainDefPtr def, int virDomainDiskInsert(virDomainDefPtr def,
virDomainDiskDefPtr disk) virDomainDiskDefPtr disk)
G_GNUC_WARN_UNUSED_RESULT; G_GNUC_WARN_UNUSED_RESULT;
......
...@@ -363,7 +363,6 @@ virDomainDiskMirrorStateTypeFromString; ...@@ -363,7 +363,6 @@ virDomainDiskMirrorStateTypeFromString;
virDomainDiskMirrorStateTypeToString; virDomainDiskMirrorStateTypeToString;
virDomainDiskModelTypeFromString; virDomainDiskModelTypeFromString;
virDomainDiskModelTypeToString; virDomainDiskModelTypeToString;
virDomainDiskPathByName;
virDomainDiskRemove; virDomainDiskRemove;
virDomainDiskRemoveByName; virDomainDiskRemoveByName;
virDomainDiskSetBlockIOTune; virDomainDiskSetBlockIOTune;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册