提交 43da6915 编写于 作者: L Laine Stump

util: rename virHostdevNetConfigRestore() to virHostdevRestoreNetConfig()

上级 6ec36b06
...@@ -522,7 +522,7 @@ virHostdevSetNetConfig(virDomainHostdevDefPtr hostdev, ...@@ -522,7 +522,7 @@ virHostdevSetNetConfig(virDomainHostdevDefPtr hostdev,
* case, try to find in the old state dir. * case, try to find in the old state dir.
*/ */
static int static int
virHostdevNetConfigRestore(virDomainHostdevDefPtr hostdev, virHostdevRestoreNetConfig(virDomainHostdevDefPtr hostdev,
const char *stateDir, const char *stateDir,
const char *oldStateDir) const char *oldStateDir)
{ {
...@@ -872,7 +872,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr mgr, ...@@ -872,7 +872,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr mgr,
resetvfnetconfig: resetvfnetconfig:
if (last_processed_hostdev_vf >= 0) { if (last_processed_hostdev_vf >= 0) {
for (i = 0; i <= last_processed_hostdev_vf; i++) for (i = 0; i <= last_processed_hostdev_vf; i++)
virHostdevNetConfigRestore(hostdevs[i], mgr->stateDir, NULL); virHostdevRestoreNetConfig(hostdevs[i], mgr->stateDir, NULL);
} }
reattachdevs: reattachdevs:
...@@ -933,7 +933,7 @@ virHostdevReattachPCIDevice(virHostdevManagerPtr mgr, ...@@ -933,7 +933,7 @@ virHostdevReattachPCIDevice(virHostdevManagerPtr mgr,
} }
/* @oldStateDir: /* @oldStateDir:
* For upgrade purpose: see virHostdevNetConfigRestore * For upgrade purpose: see virHostdevRestoreNetConfig
*/ */
void void
virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr, virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
...@@ -1034,7 +1034,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr, ...@@ -1034,7 +1034,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr mgr,
if (actual) { if (actual) {
VIR_DEBUG("Restoring network configuration of PCI device %s", VIR_DEBUG("Restoring network configuration of PCI device %s",
virPCIDeviceGetName(actual)); virPCIDeviceGetName(actual));
virHostdevNetConfigRestore(hostdev, mgr->stateDir, virHostdevRestoreNetConfig(hostdev, mgr->stateDir,
oldStateDir); oldStateDir);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册