Rename virDomainDiskSourceDefFormatSeclabel

Drop the 'Disk' from the name, as there is nothing disk-specific
about the function.
This commit is contained in:
Ján Tomko 2014-05-16 14:55:17 +02:00
parent a0f82fd2bd
commit 719ac9e4a7

View File

@ -14809,16 +14809,16 @@ virDomainDiskBlockIoDefFormat(virBufferPtr buf,
} }
/* virDomainDiskSourceDefFormatSeclabel: /* virDomainSourceDefFormatSeclabel:
* *
* This function automaticaly closes the <source> element and formats any * This function automaticaly closes the <source> element and formats any
* possible seclabels. * possible seclabels.
*/ */
static void static void
virDomainDiskSourceDefFormatSeclabel(virBufferPtr buf, virDomainSourceDefFormatSeclabel(virBufferPtr buf,
size_t nseclabels, size_t nseclabels,
virSecurityDeviceLabelDefPtr *seclabels, virSecurityDeviceLabelDefPtr *seclabels,
unsigned int flags) unsigned int flags)
{ {
size_t n; size_t n;
@ -14853,17 +14853,17 @@ virDomainDiskSourceFormat(virBufferPtr buf,
virBufferEscapeString(buf, " file='%s'", src->path); virBufferEscapeString(buf, " file='%s'", src->path);
virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy); virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy);
virDomainDiskSourceDefFormatSeclabel(buf, src->nseclabels, virDomainSourceDefFormatSeclabel(buf, src->nseclabels,
src->seclabels, flags); src->seclabels, flags);
break; break;
case VIR_STORAGE_TYPE_BLOCK: case VIR_STORAGE_TYPE_BLOCK:
virBufferAddLit(buf, "<source"); virBufferAddLit(buf, "<source");
virBufferEscapeString(buf, " dev='%s'", src->path); virBufferEscapeString(buf, " dev='%s'", src->path);
virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy); virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy);
virDomainDiskSourceDefFormatSeclabel(buf, src->nseclabels, virDomainSourceDefFormatSeclabel(buf, src->nseclabels,
src->seclabels, flags); src->seclabels, flags);
break; break;
case VIR_STORAGE_TYPE_DIR: case VIR_STORAGE_TYPE_DIR:
@ -14917,8 +14917,8 @@ virDomainDiskSourceFormat(virBufferPtr buf,
} }
virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy); virBufferEscapeString(buf, " startupPolicy='%s'", startupPolicy);
virDomainDiskSourceDefFormatSeclabel(buf, src->nseclabels, virDomainSourceDefFormatSeclabel(buf, src->nseclabels,
src->seclabels, flags); src->seclabels, flags);
break; break;
case VIR_STORAGE_TYPE_NONE: case VIR_STORAGE_TYPE_NONE: