mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
conf: Rename 'nodestorage' field of virStorageSource to 'nodenamestorage'
While the name itself doesn't matter, this rename is done to prove that all places using 'nodestorage' were converted to the appropriate accessors. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3645db2ad0
commit
02ea7182c2
@ -829,7 +829,7 @@ virStorageSourceCopy(const virStorageSource *src,
|
||||
def->snapshot = g_strdup(src->snapshot);
|
||||
def->configFile = g_strdup(src->configFile);
|
||||
def->nodeformat = g_strdup(src->nodeformat);
|
||||
def->nodestorage = g_strdup(src->nodestorage);
|
||||
def->nodenamestorage = g_strdup(src->nodenamestorage);
|
||||
def->compat = g_strdup(src->compat);
|
||||
def->tlsAlias = g_strdup(src->tlsAlias);
|
||||
def->tlsCertdir = g_strdup(src->tlsCertdir);
|
||||
@ -1168,7 +1168,7 @@ virStorageSourceClear(virStorageSource *def)
|
||||
virStorageAuthDefFree(def->auth);
|
||||
virObjectUnref(def->privateData);
|
||||
|
||||
VIR_FREE(def->nodestorage);
|
||||
VIR_FREE(def->nodenamestorage);
|
||||
VIR_FREE(def->nodeformat);
|
||||
|
||||
virStorageSourceBackingStoreClear(def);
|
||||
|
@ -371,7 +371,7 @@ struct _virStorageSource {
|
||||
|
||||
/* metadata that allows identifying given storage source */
|
||||
char *nodeformat; /* name of the format handler object */
|
||||
char *nodestorage; /* name of the storage object */
|
||||
char *nodenamestorage; /* name of the storage object */
|
||||
|
||||
/* An optional setting to enable usage of TLS for the storage source */
|
||||
virTristateBool haveTLS;
|
||||
|
@ -64,8 +64,8 @@ void
|
||||
qemuBlockStorageSourceSetStorageNodename(virStorageSource *src,
|
||||
char *nodename)
|
||||
{
|
||||
g_free(src->nodestorage);
|
||||
src->nodestorage = nodename;
|
||||
g_free(src->nodenamestorage);
|
||||
src->nodenamestorage = nodename;
|
||||
}
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ qemuBlockStorageSourceGetEffectiveStorageNodename(virStorageSource *src)
|
||||
src->sliceStorage->nodename)
|
||||
return src->sliceStorage->nodename;
|
||||
|
||||
return src->nodestorage;
|
||||
return src->nodenamestorage;
|
||||
}
|
||||
|
||||
|
||||
@ -96,7 +96,7 @@ qemuBlockStorageSourceGetEffectiveStorageNodename(virStorageSource *src)
|
||||
const char *
|
||||
qemuBlockStorageSourceGetStorageNodename(virStorageSource *src)
|
||||
{
|
||||
return src->nodestorage;
|
||||
return src->nodenamestorage;
|
||||
}
|
||||
|
||||
|
||||
|
@ -612,7 +612,7 @@ qemuBlockJobCleanStorageSourceRuntime(virStorageSource *src)
|
||||
src->detected = false;
|
||||
VIR_FREE(src->relPath);
|
||||
VIR_FREE(src->backingStoreRaw);
|
||||
VIR_FREE(src->nodestorage);
|
||||
VIR_FREE(src->nodenamestorage);
|
||||
VIR_FREE(src->nodeformat);
|
||||
VIR_FREE(src->tlsAlias);
|
||||
VIR_FREE(src->tlsCertdir);
|
||||
|
Loading…
Reference in New Issue
Block a user