mirror of https://gitee.com/openkylin/libvirt.git
maint: fix comment typos
* src/qemu/qemu_driver.c (qemuDomainSaveInternal): Fix typo. * src/conf/domain_event.c (virDomainEventDispatchMatchCallback): Likewise. * daemon/libvirtd.c (daemonRunStateInit): Likewise. * src/lxc/lxc_container.c (lxcContainerChildMountSort): Likewise. * src/util/virterror.c (virCopyError, virRaiseErrorFull): Likewise. * src/xenxs/xen_sxpr.c (xenParseSxprSound): Likewise.
This commit is contained in:
parent
fb6d616523
commit
3a52b864dd
|
@ -1131,7 +1131,7 @@ static void daemonRunStateInit(void *opaque)
|
|||
virNetServerPtr srv = opaque;
|
||||
|
||||
/* Start the stateful HV drivers
|
||||
* This is delibrately done after telling the parent process
|
||||
* This is deliberately done after telling the parent process
|
||||
* we're ready, since it can take a long time and this will
|
||||
* seriously delay OS bootup process */
|
||||
if (virStateInitialize(virNetServerIsPrivileged(srv)) < 0) {
|
||||
|
|
|
@ -1103,11 +1103,11 @@ static int virDomainEventDispatchMatchCallback(virDomainEventPtr event,
|
|||
return 0;
|
||||
|
||||
if (cb->dom) {
|
||||
/* Delibrately ignoring 'id' for matching, since that
|
||||
/* Deliberately ignoring 'id' for matching, since that
|
||||
* will cause problems when a domain switches between
|
||||
* running & shutoff states & ignoring 'name' since
|
||||
* Xen sometimes renames guests during migration, thus
|
||||
* leaving 'uuid' as the only truely reliable ID we can use*/
|
||||
* leaving 'uuid' as the only truly reliable ID we can use*/
|
||||
|
||||
if (memcmp(event->dom.uuid, cb->dom->uuid, VIR_UUID_BUFLEN) == 0)
|
||||
return 1;
|
||||
|
|
|
@ -287,7 +287,7 @@ static int lxcContainerChildMountSort(const void *a, const void *b)
|
|||
const char **sa = (const char**)a;
|
||||
const char **sb = (const char**)b;
|
||||
|
||||
/* Delibrately reversed args - we need to unmount deepest
|
||||
/* Deliberately reversed args - we need to unmount deepest
|
||||
children first */
|
||||
return strcmp(*sb, *sa);
|
||||
}
|
||||
|
|
|
@ -2304,7 +2304,7 @@ qemuDomainSaveInternal(struct qemud_driver *driver, virDomainPtr dom,
|
|||
/* Avoid throwing an error here, since it is possible
|
||||
* that with NFS we can't actually stat() the file.
|
||||
* The subsequent codepaths will still raise an error
|
||||
* if a truely fatal problem is hit */
|
||||
* if a truly fatal problem is hit */
|
||||
is_reg = true;
|
||||
} else {
|
||||
is_reg = !!S_ISREG(sb.st_mode);
|
||||
|
|
|
@ -248,7 +248,7 @@ virCopyError(virErrorPtr from,
|
|||
to->int1 = from->int1;
|
||||
to->int2 = from->int2;
|
||||
/*
|
||||
* Delibrately not setting 'conn', 'dom', 'net' references
|
||||
* Deliberately not setting 'conn', 'dom', 'net' references
|
||||
*/
|
||||
return ret;
|
||||
}
|
||||
|
@ -708,7 +708,7 @@ virRaiseErrorFull(const char *filename ATTRIBUTE_UNUSED,
|
|||
* Save the information about the error
|
||||
*/
|
||||
/*
|
||||
* Delibrately not setting conn, dom & net fields since
|
||||
* Deliberately not setting conn, dom & net fields since
|
||||
* they're utterly unsafe
|
||||
*/
|
||||
to->domain = domain;
|
||||
|
|
|
@ -604,7 +604,7 @@ xenParseSxprSound(virDomainDefPtr def,
|
|||
* Special compatability code for Xen with a bogus
|
||||
* sound=all in config.
|
||||
*
|
||||
* NB delibrately, don't include all possible
|
||||
* NB deliberately, don't include all possible
|
||||
* sound models anymore, just the 2 that were
|
||||
* historically present in Xen's QEMU.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue