提交 74d52fe8 编写于 作者: P Peter Krempa

util: s/virStorageSourceClearBackingStore/virStorageSourceBackingStoreClear

Rename them to comply with the naming policy.
上级 ee8abfbe
...@@ -1904,8 +1904,8 @@ virStorageNetHostTransportTypeFromString; ...@@ -1904,8 +1904,8 @@ virStorageNetHostTransportTypeFromString;
virStorageNetHostTransportTypeToString; virStorageNetHostTransportTypeToString;
virStorageNetProtocolTypeToString; virStorageNetProtocolTypeToString;
virStorageSourceAuthClear; virStorageSourceAuthClear;
virStorageSourceBackingStoreClear;
virStorageSourceClear; virStorageSourceClear;
virStorageSourceClearBackingStore;
virStorageSourceFree; virStorageSourceFree;
virStorageSourceGetActualType; virStorageSourceGetActualType;
virStorageSourceGetSecurityLabelDef; virStorageSourceGetSecurityLabelDef;
......
...@@ -2447,7 +2447,7 @@ qemuDomainDetermineDiskChain(virQEMUDriverPtr driver, ...@@ -2447,7 +2447,7 @@ qemuDomainDetermineDiskChain(virQEMUDriverPtr driver,
if (disk->src->backingStore) { if (disk->src->backingStore) {
if (force) if (force)
virStorageSourceClearBackingStore(disk->src); virStorageSourceBackingStoreClear(disk->src);
else else
goto cleanup; goto cleanup;
} }
......
...@@ -12877,7 +12877,7 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver, ...@@ -12877,7 +12877,7 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
* recompute it. Better would be storing the chain ourselves rather than * recompute it. Better would be storing the chain ourselves rather than
* reprobing, but this requires modifying domain_conf and our XML to fully * reprobing, but this requires modifying domain_conf and our XML to fully
* track the chain across libvirtd restarts. */ * track the chain across libvirtd restarts. */
virStorageSourceClearBackingStore(disk->src); virStorageSourceBackingStoreClear(disk->src);
if (virStorageFileInit(snap->src) < 0) if (virStorageFileInit(snap->src) < 0)
goto cleanup; goto cleanup;
......
...@@ -1551,14 +1551,14 @@ virStorageSourceGetActualType(virStorageSourcePtr def) ...@@ -1551,14 +1551,14 @@ virStorageSourceGetActualType(virStorageSourcePtr def)
/** /**
* virStorageSourceClearBackingStore: * virStorageSourceBackingStoreClear:
* *
* @src: disk source to clear * @src: disk source to clear
* *
* Clears information about backing store of the current storage file. * Clears information about backing store of the current storage file.
*/ */
void void
virStorageSourceClearBackingStore(virStorageSourcePtr def) virStorageSourceBackingStoreClear(virStorageSourcePtr def)
{ {
if (!def) if (!def)
return; return;
...@@ -1599,7 +1599,7 @@ virStorageSourceClear(virStorageSourcePtr def) ...@@ -1599,7 +1599,7 @@ virStorageSourceClear(virStorageSourcePtr def)
virStorageNetHostDefFree(def->nhosts, def->hosts); virStorageNetHostDefFree(def->nhosts, def->hosts);
virStorageSourceAuthClear(def); virStorageSourceAuthClear(def);
virStorageSourceClearBackingStore(def); virStorageSourceBackingStoreClear(def);
} }
......
...@@ -321,7 +321,7 @@ void virStorageSourcePoolDefFree(virStorageSourcePoolDefPtr def); ...@@ -321,7 +321,7 @@ void virStorageSourcePoolDefFree(virStorageSourcePoolDefPtr def);
void virStorageSourceClear(virStorageSourcePtr def); void virStorageSourceClear(virStorageSourcePtr def);
int virStorageSourceGetActualType(virStorageSourcePtr def); int virStorageSourceGetActualType(virStorageSourcePtr def);
void virStorageSourceFree(virStorageSourcePtr def); void virStorageSourceFree(virStorageSourcePtr def);
void virStorageSourceClearBackingStore(virStorageSourcePtr def); void virStorageSourceBackingStoreClear(virStorageSourcePtr def);
virStorageSourcePtr virStorageSourceNewFromBacking(virStorageSourcePtr parent); virStorageSourcePtr virStorageSourceNewFromBacking(virStorageSourcePtr parent);
typedef int typedef int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册