Fix minor typos in source comments
---
src/esx/esx_driver.c | 2 +-
src/esx/esx_storage_backend_iscsi.c | 2 +-
src/esx/esx_storage_driver.c | 2 +-
src/interface/interface_backend_netcf.c | 2 +-
src/interface/interface_backend_udev.c | 2 +-
src/locking/lock_protocol.x | 2 +-
src/openvz/openvz_conf.c | 4 ++--
src/qemu/qemu_capabilities.c | 2 +-
src/qemu/qemu_command.h | 2 +-
src/qemu/qemu_driver.c | 6 +++---
src/security/security_selinux.c | 2 +-
src/storage/storage_backend_fs.c | 2 +-
src/uml/uml_driver.c | 2 +-
src/util/virstring.c | 2 +-
src/vmware/vmware_conf.c | 2 +-
src/xen/xs_internal.c | 4 ++--
16 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c
index 5b12bd4..d082927 100644
--- a/src/esx/esx_driver.c
+++ b/src/esx/esx_driver.c
@@ -3109,7 +3109,7 @@ esxDomainDefineXML(virConnectPtr conn, const char *xml)
/*
* Build VMX datastore URL. Use the source of the first file-based harddisk
* to deduce the datastore and path for the VMX file. Don't just use the
- * first disk, because it may be CDROM disk and ISO images are normaly not
+ * first disk, because it may be CDROM disk and ISO images are normally not
* located in the virtual machine's directory. This approach to deduce the
* datastore isn't perfect but should work in the majority of cases.
*/
diff --git a/src/esx/esx_storage_backend_iscsi.c b/src/esx/esx_storage_backend_iscsi.c
index 5509429..af516c0 100644
--- a/src/esx/esx_storage_backend_iscsi.c
+++ b/src/esx/esx_storage_backend_iscsi.c
@@ -460,7 +460,7 @@ esxStorageVolLookupByName(virStoragePoolPtr pool,
scsiLun = scsiLun->_next) {
if (STREQ(scsiLun->deviceName, name)) {
/*
- * ScsiLun provides an UUID field that is unique accross
+ * ScsiLun provides an UUID field that is unique across
* multiple servers. But this field length is ~55 characters
* compute MD5 hash to transform it to an acceptable
* libvirt format
diff --git a/src/esx/esx_storage_driver.c b/src/esx/esx_storage_driver.c
index 2cfe939..cae53ed 100644
--- a/src/esx/esx_storage_driver.c
+++ b/src/esx/esx_storage_driver.c
@@ -386,7 +386,7 @@ esxStorageVolLookupByPath(virConnectPtr conn, const char *path)
/*
* FIXME: calling backends blindly may set unwanted error codes
*
- * VMFS Datastore path follows cannonical format i.e.:
+ * VMFS Datastore path follows canonical format i.e.:
* [<datastore_name>] <file_path>
* WHEREAS
* iSCSI LUNs device path follows normal linux path convention
diff --git a/src/interface/interface_backend_netcf.c
b/src/interface/interface_backend_netcf.c
index 36a50bd..1b9ace5 100644
--- a/src/interface/interface_backend_netcf.c
+++ b/src/interface/interface_backend_netcf.c
@@ -151,7 +151,7 @@ netcfStateReload(void)
/*
* Get a minimal virInterfaceDef containing enough metadata
* for access control checks to be performed. Currently
- * this implies existance of name and mac address attributes
+ * this implies existence of name and mac address attributes
*/
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
netcfGetMinimalDefForDevice(struct netcf_if *iface)
diff --git a/src/interface/interface_backend_udev.c
b/src/interface/interface_backend_udev.c
index 4fb8eab..b05ac0e 100644
--- a/src/interface/interface_backend_udev.c
+++ b/src/interface/interface_backend_udev.c
@@ -66,7 +66,7 @@ virUdevStatusString(virUdevStatus status)
/*
* Get a minimal virInterfaceDef containing enough metadata
* for access control checks to be performed. Currently
- * this implies existance of name and mac address attributes
+ * this implies existence of name and mac address attributes
*/
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
udevGetMinimalDefForDevice(struct udev_device *dev)
diff --git a/src/locking/lock_protocol.x b/src/locking/lock_protocol.x
index 354d51a..a77a784 100644
--- a/src/locking/lock_protocol.x
+++ b/src/locking/lock_protocol.x
@@ -77,7 +77,7 @@ const VIR_LOCK_SPACE_PROTOCOL_PROGRAM = 0xEA7BEEF;
const VIR_LOCK_SPACE_PROTOCOL_PROGRAM_VERSION = 1;
enum virLockSpaceProtocolProcedure {
- /* Each function must be preceeded by a comment providing one or
+ /* Each function must be preceded by a comment providing one or
* more annotations:
*
* - @generate: none|client|server|both
diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c
index 85dd100..5bc5cb1 100644
--- a/src/openvz/openvz_conf.c
+++ b/src/openvz/openvz_conf.c
@@ -215,7 +215,7 @@ openvzReadNetworkConf(virDomainDefPtr def,
/*parse routing network configuration*
* Sample from config:
* IP_ADDRESS="1.1.1.1 1.1.1.2"
- * splited IPs by space
+ * splitted IPs by space
*/
ret = openvzReadVPSConfigParam(veid, "IP_ADDRESS", &temp);
if (ret < 0) {
@@ -243,7 +243,7 @@ openvzReadNetworkConf(virDomainDefPtr def,
/*parse bridge devices*/
/*Sample from config:
*NETIF="ifname=eth10,mac=00:18:51:C1:05:EE,host_ifname=veth105.10,host_mac=00:18:51:8F:D9:F3"
- *devices splited by ';'
+ *devices splitted by ';'
*/
ret = openvzReadVPSConfigParam(veid, "NETIF", &temp);
if (ret < 0) {
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 889e614..a5c6879 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -2296,7 +2296,7 @@ virQEMUCapsProbeQMPKVMState(virQEMUCapsPtr qemuCaps,
/* The QEMU_CAPS_KVM flag was initially set according to the QEMU
* reporting the recognition of 'query-kvm' QMP command. That merely
- * indicates existance of the command though, not whether KVM support
+ * indicates existence of the command though, not whether KVM support
* is actually available, nor whether it is enabled by default.
*
* If it is not present we need to clear the flag, and if it is
diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h
index bad6ac0..0866c6b 100644
--- a/src/qemu/qemu_command.h
+++ b/src/qemu/qemu_command.h
@@ -39,7 +39,7 @@
# define QEMU_FSDEV_HOST_PREFIX "fsdev-"
/* These are only defaults, they can be changed now in qemu.conf and
- * explicitely specified port is checked against these two (makes
+ * explicitly specified port is checked against these two (makes
* sense to limit the values).
*
* This limitation is mentioned in qemu.conf, so bear in mind that the
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index e58fa3f..5970585 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -1304,7 +1304,7 @@ qemuGetProcessInfo(unsigned long long *cpuTime, int *lastCpu, long
*vm_rss,
/* We got jiffies
* We want nanoseconds
* _SC_CLK_TCK is jiffies per second
- * So calulate thus....
+ * So calculate thus....
*/
if (cpuTime)
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long
long)sysconf(_SC_CLK_TCK);
@@ -2934,7 +2934,7 @@ qemuDomainSaveMemory(virQEMUDriverPtr driver,
* we don't have an explicit offset in the header, so we fake
* it by padding the XML string with NUL bytes. Additionally,
* we want to ensure that virDomainSaveImageDefineXML can supply
- * slightly larger XML, so we add a miminum padding prior to
+ * slightly larger XML, so we add a minimum padding prior to
* rounding out to page boundaries.
*/
pad = 1024;
@@ -12509,7 +12509,7 @@ qemuDomainSnapshotPrepareDiskInternal(virConnectPtr conn,
{
int actualType;
- /* active disks are handeled by qemu itself so no need to worry about those */
+ /* active disks are handled by qemu itself so no need to worry about those */
if (active)
return 0;
diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
index bfac11c..01a384a 100644
--- a/src/security/security_selinux.c
+++ b/src/security/security_selinux.c
@@ -178,7 +178,7 @@ virSecuritySELinuxMCSFind(virSecurityManagerPtr mgr,
* the category part, since that's what we're really
* interested in. This won't work in Enforcing mode,
* but will prevent libvirtd breaking in Permissive
- * mode when run with a wierd process label.
+ * mode when run with a weird process label.
*/
static int
virSecuritySELinuxMCSGetProcessRange(char **sens,
diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index fa5eba1..3694c26 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -1196,7 +1196,7 @@ virStorageBackendFileSystemVolRefresh(virConnectPtr conn,
if (ret < 0)
return ret;
- /* Load any secrets if posible */
+ /* Load any secrets if possible */
if (vol->target.encryption &&
vol->target.encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_QCOW
&&
vol->target.encryption->nsecrets == 0) {
diff --git a/src/uml/uml_driver.c b/src/uml/uml_driver.c
index 69f6c11..1e0ec0e 100644
--- a/src/uml/uml_driver.c
+++ b/src/uml/uml_driver.c
@@ -1337,7 +1337,7 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, pid_t
pid)
/* We got jiffies
* We want nanoseconds
* _SC_CLK_TCK is jiffies per second
- * So calulate thus....
+ * So calculate thus....
*/
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long
long)sysconf(_SC_CLK_TCK);
diff --git a/src/util/virstring.c b/src/util/virstring.c
index b2184f3..64c7259 100644
--- a/src/util/virstring.c
+++ b/src/util/virstring.c
@@ -758,7 +758,7 @@ virStringSearch(const char *str,
* @oldneedle: the substring to locate
* @newneedle: the substring to insert
*
- * Search @haystack and replace all occurences of @oldneedle with @newneedle.
+ * Search @haystack and replace all occurrences of @oldneedle with @newneedle.
*
* Returns: a new string with all the replacements, or NULL on error
*/
diff --git a/src/vmware/vmware_conf.c b/src/vmware/vmware_conf.c
index 5ff6396..29ca322 100644
--- a/src/vmware/vmware_conf.c
+++ b/src/vmware/vmware_conf.c
@@ -392,7 +392,7 @@ vmwareVmxPath(virDomainDefPtr vmdef, char **vmxPath)
/*
* Build VMX URL. Use the source of the first file-based harddisk
* to deduce the path for the VMX file. Don't just use the
- * first disk, because it may be CDROM disk and ISO images are normaly not
+ * first disk, because it may be CDROM disk and ISO images are normally not
* located in the virtual machine's directory. This approach
* isn't perfect but should work in the majority of cases.
*/
diff --git a/src/xen/xs_internal.c b/src/xen/xs_internal.c
index 0f7b7d2..8702b1a 100644
--- a/src/xen/xs_internal.c
+++ b/src/xen/xs_internal.c
@@ -355,7 +355,7 @@ xenStoreDomainGetVNCPort(virConnectPtr conn, int domid)
* serial console is attached.
*
* Returns the path to the serial console. It is the callers
- * responsibilty to free() the return string. Returns NULL
+ * responsibility to free() the return string. Returns NULL
* on error
*
* The caller must hold the lock on the privateData
@@ -376,7 +376,7 @@ xenStoreDomainGetConsolePath(virConnectPtr conn, int domid)
* serial console is attached.
*
* Returns the path to the serial console. It is the callers
- * responsibilty to free() the return string. Returns NULL
+ * responsibility to free() the return string. Returns NULL
* on error
*
* The caller must hold the lock on the privateData
--
1.7.1