mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
conf: Invert 'skipSeclabels' argument of virDomainDiskSourceFormatInternal
Rename it to 'seclabels' and invert the value. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
181b68ad9d
commit
7981eadf92
@ -23760,7 +23760,7 @@ virDomainStorageSourceFormat(virBufferPtr attrBuf,
|
|||||||
virBufferPtr childBuf,
|
virBufferPtr childBuf,
|
||||||
virStorageSourcePtr src,
|
virStorageSourcePtr src,
|
||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
bool skipSeclabels)
|
bool seclabels)
|
||||||
{
|
{
|
||||||
switch ((virStorageType)src->type) {
|
switch ((virStorageType)src->type) {
|
||||||
case VIR_STORAGE_TYPE_FILE:
|
case VIR_STORAGE_TYPE_FILE:
|
||||||
@ -23800,7 +23800,7 @@ virDomainStorageSourceFormat(virBufferPtr attrBuf,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!skipSeclabels && src->type != VIR_STORAGE_TYPE_NETWORK)
|
if (seclabels && src->type != VIR_STORAGE_TYPE_NETWORK)
|
||||||
virDomainSourceDefFormatSeclabel(childBuf, src->nseclabels,
|
virDomainSourceDefFormatSeclabel(childBuf, src->nseclabels,
|
||||||
src->seclabels, flags);
|
src->seclabels, flags);
|
||||||
|
|
||||||
@ -23832,7 +23832,7 @@ virDomainDiskSourceFormatInternal(virBufferPtr buf,
|
|||||||
virStorageSourcePtr src,
|
virStorageSourcePtr src,
|
||||||
int policy,
|
int policy,
|
||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
bool skipSeclabels,
|
bool seclabels,
|
||||||
bool attrIndex,
|
bool attrIndex,
|
||||||
virDomainXMLOptionPtr xmlopt)
|
virDomainXMLOptionPtr xmlopt)
|
||||||
{
|
{
|
||||||
@ -23843,7 +23843,7 @@ virDomainDiskSourceFormatInternal(virBufferPtr buf,
|
|||||||
virBufferSetChildIndent(&childBuf, buf);
|
virBufferSetChildIndent(&childBuf, buf);
|
||||||
|
|
||||||
if (virDomainStorageSourceFormat(&attrBuf, &childBuf, src, flags,
|
if (virDomainStorageSourceFormat(&attrBuf, &childBuf, src, flags,
|
||||||
skipSeclabels) < 0)
|
seclabels) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (policy && src->type != VIR_STORAGE_TYPE_NETWORK)
|
if (policy && src->type != VIR_STORAGE_TYPE_NETWORK)
|
||||||
@ -23873,7 +23873,7 @@ virDomainDiskSourceFormat(virBufferPtr buf,
|
|||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
virDomainXMLOptionPtr xmlopt)
|
virDomainXMLOptionPtr xmlopt)
|
||||||
{
|
{
|
||||||
return virDomainDiskSourceFormatInternal(buf, src, policy, flags, false,
|
return virDomainDiskSourceFormatInternal(buf, src, policy, flags, true,
|
||||||
false, xmlopt);
|
false, xmlopt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23916,7 +23916,7 @@ virDomainDiskBackingStoreFormat(virBufferPtr buf,
|
|||||||
|
|
||||||
virBufferAsprintf(buf, "<format type='%s'/>\n", format);
|
virBufferAsprintf(buf, "<format type='%s'/>\n", format);
|
||||||
/* We currently don't output seclabels for backing chain element */
|
/* We currently don't output seclabels for backing chain element */
|
||||||
if (virDomainDiskSourceFormatInternal(buf, backingStore, 0, flags, true,
|
if (virDomainDiskSourceFormatInternal(buf, backingStore, 0, flags, false,
|
||||||
false, xmlopt) < 0 ||
|
false, xmlopt) < 0 ||
|
||||||
virDomainDiskBackingStoreFormat(buf, backingStore->backingStore,
|
virDomainDiskBackingStoreFormat(buf, backingStore->backingStore,
|
||||||
xmlopt, flags) < 0)
|
xmlopt, flags) < 0)
|
||||||
@ -24175,7 +24175,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
|
|||||||
virStorageAuthDefFormat(buf, def->src->auth);
|
virStorageAuthDefFormat(buf, def->src->auth);
|
||||||
|
|
||||||
if (virDomainDiskSourceFormatInternal(buf, def->src, def->startupPolicy,
|
if (virDomainDiskSourceFormatInternal(buf, def->src, def->startupPolicy,
|
||||||
flags, false, true, xmlopt) < 0)
|
flags, true, true, xmlopt) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Don't format backingStore to inactive XMLs until the code for
|
/* Don't format backingStore to inactive XMLs until the code for
|
||||||
|
@ -3461,7 +3461,7 @@ int virDomainStorageSourceFormat(virBufferPtr attrBuf,
|
|||||||
virBufferPtr childBuf,
|
virBufferPtr childBuf,
|
||||||
virStorageSourcePtr src,
|
virStorageSourcePtr src,
|
||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
bool skipSeclabels)
|
bool seclabels)
|
||||||
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
|
||||||
|
|
||||||
int virDomainStorageSourceParse(xmlNodePtr node,
|
int virDomainStorageSourceParse(xmlNodePtr node,
|
||||||
|
@ -2358,7 +2358,7 @@ qemuDomainObjPrivateXMLFormatNBDMigrationSource(virBufferPtr buf,
|
|||||||
virStorageFileFormatTypeToString(src->format));
|
virStorageFileFormatTypeToString(src->format));
|
||||||
|
|
||||||
if (virDomainStorageSourceFormat(&attrBuf, &childBuf, src,
|
if (virDomainStorageSourceFormat(&attrBuf, &childBuf, src,
|
||||||
VIR_DOMAIN_DEF_FORMAT_STATUS, false) < 0)
|
VIR_DOMAIN_DEF_FORMAT_STATUS, true) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (qemuStorageSourcePrivateDataFormat(src, &privateDataBuf) < 0)
|
if (qemuStorageSourcePrivateDataFormat(src, &privateDataBuf) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user