]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix minor typos in messages and docs
authorYuri Chornoivan <yurchor@ukr.net>
Tue, 4 Dec 2018 17:08:14 +0000 (19:08 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 5 Dec 2018 09:39:54 +0000 (10:39 +0100)
Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
56 files changed:
config-post.h
include/libvirt/libvirt-event.h
src/access/viraccessperm.h
src/bhyve/bhyve_command.c
src/conf/domain_addr.c
src/conf/object_event.c
src/conf/virstorageobj.c
src/driver.h
src/hyperv/hyperv_wmi_generator.py
src/libvirt-domain.c
src/libxl/libxl_conf.c
src/libxl/libxl_migration.c
src/lxc/lxc_conf.c
src/nwfilter/nwfilter_gentech_driver.c
src/phyp/phyp_driver.c
src/qemu/qemu_block.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/qemu/qemu_security.c
src/security/virt-aa-helper.c
src/storage/storage_backend_disk.c
src/uml/uml_conf.c
src/util/viralloc.c
src/util/viralloc.h
src/util/virbitmap.c
src/util/vircgroup.c
src/util/vircrypto.c
src/util/virmodule.c
src/util/virnetdevbandwidth.c
src/util/virnetdevip.c
src/util/virnetdevmacvlan.c
src/util/virnetdevopenvswitch.c
src/util/virrandom.c
src/util/virresctrl.c
src/util/virstoragefile.h
src/util/virstring.c
src/vbox/vbox_network.c
src/vbox/vbox_uniformed_api.h
src/vmx/vmx.c
src/vz/vz_driver.c
src/vz/vz_sdk.c
src/xenconfig/xen_sxpr.c
tests/securityselinuxlabeltest.c
tests/virfirewalltest.c
tests/virhashtest.c
tests/virmock.h
tests/virtestmock.c
tools/virsh.c
tools/virt-admin.c
tools/vsh-table.c

index 063e30fa375792d90f491b016f1a5344c5af3ce5..dd4ef8fc0b2ffa8ebed758c9d4d1858e1841cddd 100644 (file)
@@ -19,7 +19,7 @@
 /*
  * Since virt-login-shell will be setuid, we must do everything
  * we can to avoid linking to other libraries. Many of them do
- * unsafe things in functions marked __atttribute__((constructor)).
+ * unsafe things in functions marked __attribute__((constructor)).
  * The only way to avoid such deps is to re-compile the
  * functions with the code in question disabled, and for that we
  * must override the main config.h rules. Hence this file :-(
index 23227d09019c38aff12f5cbe6685314d5795648d..838cb54878c3f90fd41fc9ecb07b1bb740763955 100644 (file)
@@ -60,7 +60,7 @@ typedef void (*virEventHandleCallback)(int watch, int fd, int events, void *opaq
  * virEventAddHandleFunc:
  * @fd: file descriptor to listen on
  * @event: bitset of events on which to fire the callback
- * @cb: the callback to be called when an event occurrs
+ * @cb: the callback to be called when an event occurs
  * @opaque: user data to pass to the callback
  * @ff: the callback invoked to free opaque data blob
  *
index 5ac5ff3377c95b657f08b7f379acfa28bdf1ecc4..10ce2dc13956e7eb2003b9b78474cfb867762297 100644 (file)
@@ -417,7 +417,7 @@ typedef enum {
 
     /**
      * @desc: Access node device
-     * @message: Accesing node device requires authorization
+     * @message: Accessing node device requires authorization
      * @anonymous: 1
      */
     VIR_ACCESS_PERM_NODE_DEVICE_GETATTR,
@@ -637,7 +637,7 @@ typedef enum {
 
     /**
      * @desc: Access storage volume
-     * @message: Acceessing storage volume requires authorization
+     * @message: Accessing storage volume requires authorization
      * @anonymous: 1
      */
     VIR_ACCESS_PERM_STORAGE_VOL_GETATTR,
index 6149c9331e93e549b207dad51f4ed8859b553689..84fda0894359cd2529b9115aadc182f696327611 100644 (file)
@@ -924,7 +924,7 @@ virBhyveGetBootDisk(virDomainDefPtr def)
             }
         }
 
-        /* If user didn't explicily specify boot priority,
+        /* If user didn't explicitly specify boot priority,
          * just return the first usable disk */
         if ((match == NULL) && (first_usable_disk_index >= 0))
             return def->disks[first_usable_disk_index];
index cc9ea82a33bf5343f550bf69d4d75bdd0aa915d5..6e983e4fecf3a7cdc8a27b91cedc6b7ad8444d40 100644 (file)
@@ -576,7 +576,7 @@ virDomainPCIAddressBusSetModel(virDomainPCIAddressBusPtr bus,
         bus->maxSlot = 0;
         break;
     case VIR_DOMAIN_CONTROLLER_MODEL_PCIE_SWITCH_UPSTREAM_PORT:
-        /* 32 slots, can only accept pcie-switch-downstrean-ports,
+        /* 32 slots, can only accept pcie-switch-downstream-ports,
          * no hotplug
          */
         bus->flags = VIR_PCI_CONNECT_TYPE_PCIE_SWITCH_DOWNSTREAM_PORT;
@@ -673,7 +673,7 @@ virDomainPCIAddressSetGrow(virDomainPCIAddressSetPtr addrs,
              * pci-bridge, but we need one for the device's PCI address
              * to make sense, it means the guest only has a PCIe topology
              * configured so far, and we need to create a traditional PCI
-             * topology to accomodate the new device.
+             * topology to accommodate the new device.
              */
             needDMIToPCIBridge = true;
             needPCIeToPCIBridge = true;
index dd5c6ff32d30959270b813e2da026d5ef66de15f..bf514384edab7eba7126d11d1f656820ff352c9d 100644 (file)
@@ -702,7 +702,7 @@ virObjectEventStateDispatchCallbacks(virObjectEventStatePtr state,
         if (!virObjectEventDispatchMatchCallback(event, cb))
             continue;
 
-        /* Drop the lock whle dispatching, for sake of re-entrancy */
+        /* Drop the lock while dispatching, for sake of re-entrance */
         virObjectUnlock(state);
         event->dispatch(cb->conn, event, cb->cb, cb->opaque);
         virObjectLock(state);
index 30aabb2b37cd38075a39e77bd0ad6c33c6ac78f0..6ea6a97d8904a1c3e990e0b66491b0d9c1036d06 100644 (file)
@@ -1232,7 +1232,7 @@ matchFCHostToSCSIHost(virStorageAdapterFCHostPtr fchost,
     /* NB: Lack of a name means that this vHBA hasn't yet been created,
      *     which means our scsi_host cannot be using the vHBA. Furthermore,
      *     lack of a provided parent means libvirt is going to choose the
-     *     "best" fc_host capable adapter based on availabilty. That could
+     *     "best" fc_host capable adapter based on availability. That could
      *     conflict with an existing scsi_host definition, but there's no
      *     way to know that now.
      */
index c4d94ba2949e345d85bc779ff84e7f28310b9124..83888921c0fdcec4d0a21df5ea63e9082092da6e 100644 (file)
@@ -86,7 +86,7 @@ struct _virConnectDriver {
     /*
      * NULL terminated list of supported URI schemes.
      *  - Single element { NULL } list indicates no supported schemes
-     *  - NULL list indicates wildcard supportnig all schemes
+     *  - NULL list indicates wildcard supporting all schemes
      */
     const char **uriSchemes;
     virHypervisorDriverPtr hypervisorDriver;
index ceeb263660d547d6cb3ddf28cdba52a7fdc86f5e..518a55fd6d84f6fe7561742fe463922c1b31f32f 100755 (executable)
@@ -36,9 +36,9 @@ class WmiClass:
     This class holds one or more instances of WmiClassVersion because with the
     Windows 2012 release, Microsoft introduced "v2" version of Msvm_* family of
     classes that need different URI for making wsman requests and also have
-    some additional/changed properties (though many of the properies are the
+    some additional/changed properties (though many of the properties are the
     same as in "v1". Therefore, this class makes sure that C code is generated
-    for each of them while avoiding name conflics, identifies common members,
+    for each of them while avoiding name conflicts, identifies common members,
     and defined *_WmiInfo structs holding info about each version so the driver
     code can make the right choices based on which Hyper-V host it's connected
     to.
@@ -54,15 +54,15 @@ class WmiClass:
         """Prepares the class for code generation
 
         Makes sure that "versioned" classes are sorted by version, identifies
-        common properies and ensures that they are aligned by name and
+        common properties and ensures that they are aligned by name and
         type in each version
         """
-        # sort vesioned classes by version in case input file did not have them
+        # sort versioned classes by version in case input file did not have them
         # in order
         self.versions = sorted(self.versions, key=lambda cls: cls.version or "")
 
-        # if there's more than one verion make sure first one has name suffixed
-        # because we'll generate "common" memeber and will be the "base" name
+        # if there's more than one version make sure first one has name suffixed
+        # because we'll generate "common" member and will be the "base" name
         if len(self.versions) > 1:
             first = self.versions[0]
             if first.version == None:
@@ -160,7 +160,7 @@ class WmiClass:
         The *_Data structs are members of hypervObject data union. Each one has
         corresponding *_TypeInfo that is used for wsman unserialization of
         response XML into the *_Data structs. If there's a "common" member, it
-        won't have corresponding *_TypeInfo becuase this is a special case only
+        won't have corresponding *_TypeInfo because this is a special case only
         used to provide a common "view" of v1, v2 etc members
         """
 
@@ -258,7 +258,7 @@ class WmiClass:
         if num_classes < 2:
             return
 
-        # count property occurences in all class versions
+        # count property occurrences in all class versions
         for cls in self.versions:
             for prop in cls.properties:
                 # consdered same if matches by name AND type
@@ -269,7 +269,7 @@ class WmiClass:
                 else:
                     property_info[key] = [prop, 1]
 
-        # isolate those that are common for all and keep track of their postions
+        # isolate those that are common for all and keep track of their positions
         pos = 0
         for key in sorted(property_info):
             info = property_info[key]
@@ -278,7 +278,7 @@ class WmiClass:
                 common[info[0].name] = [info[0], pos]
                 pos += 1
 
-        # alter each versions's property list so that common members are first
+        # alter each version's property list so that common members are first
         # and in the same order as in the common dictionary
         total = len(common)
         for cls in self.versions:
index 73d602edca2f5511687fc74cb4673524db8aa5a7..d49d7f869f363d891e5c0418d186ec620ea83079 100644 (file)
@@ -7933,7 +7933,7 @@ virDomainGetSecurityLabel(virDomainPtr domain, virSecurityLabelPtr seclabel)
  * in the @seclabels argument will be initialized to the empty
  * string if the domain is not running under a security model.
  *
- * Returns number of elemnets in @seclabels on success, -1 in case of failure.
+ * Returns number of elements in @seclabels on success, -1 in case of failure.
  */
 int
 virDomainGetSecurityLabelList(virDomainPtr domain,
@@ -11184,7 +11184,7 @@ virDomainFSThaw(virDomainPtr dom,
  * virDomainGetTime:
  * @dom: a domain object
  * @seconds: domain's time in seconds
- * @nseconds: the nanoscond part of @seconds
+ * @nseconds: the nanosecond part of @seconds
  * @flags: extra flags; not used yet, so callers should always pass 0
  *
  * Extract information about guest time and store it into
@@ -11594,7 +11594,7 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
  *     divisor. When not provided, QEMU may double the polling time until
  *     poll-max-ns is reached. When poll-shrink is 0 (zero) QEMU may reset
  *     the polling interval to 0 until it finds its "sweet spot". Setting
- *     poll-grow too large may cause frequent fluctution of the time; however,
+ *     poll-grow too large may cause frequent fluctuation of the time; however,
  *     this can be tempered by a high poll-shrink to reduce the polling
  *     interval. For example, a poll-grow of 3 will triple the polling time
  *     which could quickly exceed poll-max-ns; however, a poll-shrink of
index ea880329ed53206727483a96b6848fb038735f18..930df7eac49185a0111a92b7196f39110ae90663 100644 (file)
@@ -2490,7 +2490,7 @@ libxlBuildDomainConfig(virPortAllocatorRangePtr graphicsports,
 
     /*
      * Now that any potential VFBs are defined, update the build info with
-     * the data of the primary display. Some day libxl might implicitely do
+     * the data of the primary display. Some day libxl might implicitly do
      * so but as it does not right now, better be explicit.
      */
     if (libxlMakeVideo(def, d_config) < 0)
index 88d7ecf2ce8cfd6867ac53af4ce874b14daa191e..bb0092713398806e1b75b259e043ac14bf18e6f2 100644 (file)
@@ -1029,7 +1029,7 @@ libxlDoMigrateSrcP2P(libxlDriverPrivatePtr driver,
         goto confirm;
 
     /* We don't require the destination to have P2P support
-     * as it looks to be normal migration from the receiver perpective.
+     * as it looks to be normal migration from the receiver perspective.
      */
     destflags = flags & ~(VIR_MIGRATE_PEER2PEER);
 
index 949bfe246a4c592eec297cda553ce72e117ff4c3..cecab7611d57df83fa0a243b492e4243007dd2fa 100644 (file)
@@ -69,7 +69,7 @@ virCapsPtr virLXCDriverCapsInit(virLXCDriverPtr driver)
                                    false, false)) == NULL)
         goto error;
 
-    /* Some machines have problematic NUMA toplogy causing
+    /* Some machines have problematic NUMA topology causing
      * unexpected failures. We don't want to break the lxc
      * driver in this scenario, so log errors & carry on
      */
index e5dea91f831cf0304e7638d7699815cb571a4f84..a2ad95d209d57864564fc741362d1944d12fd663 100644 (file)
@@ -678,7 +678,7 @@ virNWFilterDoInstantiate(virNWFilterTechDriverPtr techdriver,
 
         if (rc == 0 && (virNetDevValidateConfig(binding->portdevname, NULL, ifindex) <= 0)) {
             virResetLastError();
-            /* interface changed/disppeared */
+            /* interface changed/disappeared */
             techdriver->allTeardown(binding->portdevname);
             rc = -1;
         }
index 05bf6df7cbe817daef41c9d8e1c149385a51cdff..31431406268dca45099198bb85a40a30cee98d28 100644 (file)
@@ -325,7 +325,7 @@ phypCapsInit(void)
                                    false, false)) == NULL)
         goto no_memory;
 
-    /* Some machines have problematic NUMA toplogy causing
+    /* Some machines have problematic NUMA topology causing
      * unexpected failures. We don't want to break the QEMU
      * driver in this scenario, so log errors & carry on
      */
index 5321dda31628d75d8fef87ae4cffbff11c602f75..cbf0aa418974c22141f0e0407fe2edb9dce15893 100644 (file)
@@ -1574,7 +1574,7 @@ qemuBlockStorageSourceAttachPrepareBlockdev(virStorageSourcePtr src)
  * called after the monitor was entered.
  *
  * Returns 0 on success and -1 on error with a libvirt error reported. If an
- * error occured, changes which were already applied need to be rolled back by
+ * error occurred, changes which were already applied need to be rolled back by
  * calling qemuBlockStorageSourceAttachRollback.
  */
 int
index 52ac0bc453b4b5ab4a47020c8403677aa20e3210..9258bf6ee34dca7f9bcbca6fb937e5efb21d3f0c 100644 (file)
@@ -902,7 +902,7 @@ virQEMUCapsInit(virFileCachePtr cache)
                                    true, true)) == NULL)
         goto error;
 
-    /* Some machines have problematic NUMA toplogy causing
+    /* Some machines have problematic NUMA topology causing
      * unexpected failures. We don't want to break the QEMU
      * driver in this scenario, so log errors & carry on
      */
index dd17174e2579dca41d70ef1a76a0768a3ecf4ee0..0ef490be5a97bcc325eb2ce705cd369f6afed03f 100644 (file)
@@ -1751,7 +1751,7 @@ qemuDomainSecretDestroy(virDomainObjPtr vm)
  * @vm: Domain object
  *
  * For any objects that may require an auth/secret setup, create a
- * qemuDomainSecretInfo and save it in the approriate place within
+ * qemuDomainSecretInfo and save it in the appropriate place within
  * the private structures. This will be used by command line build
  * code in order to pass the secret along to qemu in order to provide
  * the necessary authentication data.
@@ -3980,7 +3980,7 @@ qemuDomainDefValidateMemory(const virDomainDef *def,
     if (mem->source == VIR_DOMAIN_MEMORY_SOURCE_MEMFD &&
         !virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_MEMORY_MEMFD_HUGETLB)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("hugepages is not support with memfd memory source"));
+                       _("hugepages is not supported with memfd memory source"));
         return -1;
     }
 
@@ -4847,7 +4847,7 @@ qemuDomainValidateStorageSource(virStorageSourcePtr src,
         src->encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_LUKS &&
         !virQEMUCapsGet(qemuCaps, QEMU_CAPS_QCOW2_LUKS)) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("LUKS encrypted QCOW2 images are not suppored by this QEMU"));
+                       _("LUKS encrypted QCOW2 images are not supported by this QEMU"));
         return -1;
     }
 
index 83de42f041b628c1ede15d68b2243d544996cf07..90cbc02745a0fcfb655f2e6c574e6ce2e4565a77 100644 (file)
@@ -6082,7 +6082,7 @@ qemuDomainDelIOThreadCheck(virDomainDefPtr def,
  * QEMU keeps track of the polling time elapsed and may grow or shrink the
  * its polling interval based upon its heuristic algorithm. It is possible
  * that calculations determine that it has found a "sweet spot" and no
- * ajustments are made. The polling time value is not available.
+ * adjustments are made. The polling time value is not available.
  *
  * Returns 0 on success, -1 on failure with error set.
  */
@@ -14980,7 +14980,7 @@ qemuDomainSnapshotPrepare(virDomainObjPtr vm,
 
     /* internal snapshots + pflash based loader have the following problems:
      * - if the variable store is raw, the snapshot fails
-     * - alowing a qcow2 image as the varstore would make it eligible to receive
+     * - allowing a qcow2 image as the varstore would make it eligible to receive
      *   the vmstate dump, which would make it huge
      * - offline snapshot would not snapshot the varstore at all
      *
index 5f756b72673a76614fdf5edc440163e1287bf134..a5069701b462cd26338b3b5710cdcfdb7c4a985d 100644 (file)
@@ -6647,7 +6647,7 @@ qemuDomainSetVcpusConfig(virDomainDefPtr def,
                 continue;
 
             if (vcpu->online) {
-                /* non-hotpluggable vcpus need to be clustered at the beggining,
+                /* non-hotpluggable vcpus need to be clustered at the beginning,
                  * thus we need to force vcpus to be hotpluggable when we find
                  * vcpus that are hotpluggable and online prior to the ones
                  * we are going to add */
index 4c3abbb1e6ed7ffd82fa9611c5b3825f739c64ee..a0b622d2ea384da65675b0cd066edc8cfd5d1ca5 100644 (file)
@@ -1025,7 +1025,7 @@ qemuMigrationSrcNBDStorageCopy(virQEMUDriverPtr driver,
  * qemuMigrationSrcIsAllowedHostdev:
  * @def: domain definition
  *
- * Checks that @def does not contain any host devices unsupported accross
+ * Checks that @def does not contain any host devices unsupported across
  * migrations. Returns true if the vm is allowed to migrate.
  */
 static bool
index a65d638ab81d63c45cedbe7563360bbe6ef2a920..1d40aef12717c954d8aa40cf4726e092fdb3e104 100644 (file)
@@ -2033,7 +2033,7 @@ qemuMonitorGetCPUInfo(qemuMonitorPtr mon,
                                      cpuentries, ncpuentries,
                                      info, maxvcpus) < 0) {
         /* Fallback to the legacy algorithm. Hotplug paths will make sure that
-         * the apropriate data is present */
+         * the appropriate data is present */
         qemuMonitorCPUInfoClear(info, maxvcpus);
         qemuMonitorGetCPUInfoLegacy(cpuentries, ncpuentries, info, maxvcpus);
     }
index 5a806f6c0e3392079edaf77a3668d77e65d1f4ef..dfcc6d88b5d3981e7c29d0b3f478d7bee0ef3f81 100644 (file)
@@ -771,7 +771,7 @@ qemuMonitorJSONHandleIOError(qemuMonitorPtr mon, virJSONValuePtr data)
     int actionID;
 
     /* Throughout here we try our best to carry on upon errors,
-       since it's imporatant to get as much info as possible out
+       since it's important to get as much info as possible out
        to the application */
 
     if ((action = virJSONValueObjectGetString(data, "action")) == NULL) {
@@ -5797,7 +5797,7 @@ qemuMonitorJSONGetCommandLineOptionParameters(qemuMonitorPtr mon,
 
         if (!virJSONValueIsArray(array)) {
             virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                           _("Malformed query-cmmand-line-options array"));
+                           _("Malformed query-command-line-options array"));
             goto cleanup;
         }
 
@@ -5831,7 +5831,7 @@ qemuMonitorJSONGetCommandLineOptionParameters(qemuMonitorPtr mon,
 
     if (!virJSONValueIsArray(data)) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                       _("Malformed query-cmmand-line-options parameters array"));
+                       _("Malformed query-command-line-options parameters array"));
         goto cleanup;
     }
     n = virJSONValueArraySize(data);
index ad54d96cf8e931860b700b1141f323dd5d6bba16..2f8e19d29d20ffe609ef8c290db4cec2a68b0a8d 100644 (file)
@@ -2487,7 +2487,7 @@ qemuProcessSetLinkStates(virQEMUDriverPtr driver,
 /**
  * qemuProcessSetupPid:
  *
- * This function sets resource properities (affinity, cgroups,
+ * This function sets resource properties (affinity, cgroups,
  * scheduler) for any PID associated with a domain.  It should be used
  * to set up emulator PIDs as well as vCPU and I/O thread pids to
  * ensure they are all handled the same way.
index 372bc533967b5bf13aa0a7bcbb5a3b8ab7ce1593..aedee735b43b914c009d36c33cfc46edcf488c0a 100644 (file)
@@ -482,7 +482,7 @@ qemuSecurityRestoreChardevLabel(virQEMUDriverPtr driver,
  * @existstatus: pointer to int returning exit status of process
  * @cmdret: pointer to int returning result of virCommandRun
  *
- * Start the TPM emulator with approriate labels. Apply security
+ * Start the TPM emulator with appropriate labels. Apply security
  * labels to files first.
  * This function returns -1 on security setup error, 0 if all the
  * setup was done properly. In case the virCommand failed to run
index c7488432d6dffaecccd26384cf67a331b75517bf..a0f2c8ff229e5b49d1b3a205bfcbe1187cfe0baf 100644 (file)
@@ -551,7 +551,7 @@ valid_path(const char *path, const bool readonly)
             return 0;
     }
 
-    /* disallow RW acess to all paths in restricted and restriced_rw */
+    /* disallow RW access to all paths in restricted and restriced_rw */
     if ((array_starts_with(path, restricted, nropaths) == 0 ||
          array_starts_with(path, restricted_rw, nrwpaths) == 0))
         return 1;
index 10df0713220ccfa1aa337d79b70d10522e91d81d..9a0d550bc25fe5277de5c0236715e4d86ea324f1 100644 (file)
@@ -764,7 +764,7 @@ virStorageBackendDiskPartBoundaries(virStoragePoolObjPtr pool,
  * name provided during create doesn't match the name read from
  * virStorageBackendDiskReadPartitions.
  *
- * For a device mapper device, device respresentation is dependant upon
+ * For a device mapper device, device representation is dependent upon
  * device mapper configuration, but the general rule of thumb is that at
  * creation if a device name ends with a number, then a partition separator
  * "p" is added to the created name; otherwise, if the device name doesn't
index 52087bcf7c68a84763e2b660ee9c29500a3c70fb..5c979dd84304b5cb777f966710af377c34686d53 100644 (file)
@@ -56,7 +56,7 @@ virCapsPtr umlCapsInit(void)
                                    false, false)) == NULL)
         goto error;
 
-    /* Some machines have problematic NUMA toplogy causing
+    /* Some machines have problematic NUMA topology causing
      * unexpected failures. We don't want to break the QEMU
      * driver in this scenario, so log errors & carry on
      */
index 1646b25fe8eebcab40d39ca0bfcbf1d721dbf4c9..b58329476038b27480c923f6a433e12303b219eb 100644 (file)
@@ -588,7 +588,7 @@ void virFree(void *ptrptr)
  * virDispose:
  * @ptrptr: pointer to pointer for address of memory to be sanitized and freed
  * @count: count of elements in the array to dispose
- * @elemet_size: size of one element
+ * @element_size: size of one element
  * @countptr: pointer to the count variable to clear (may be NULL)
  *
  * Clear and release the chunk of memory in the pointer pointed to by 'prtptr'.
index a23aa188bb0546a33455a52da16a0fb0d5c0bedb..ed72caaa135bb04afe6d8b62e2f9852dbfa65be6 100644 (file)
@@ -559,7 +559,7 @@ void virDispose(void *ptrptr, size_t count, size_t element_size, size_t *countpt
  * @ptr: pointer holding address to be cleared and freed
  * @count: count of elements in @ptr
  *
- * Clear the memory of the array of elemets pointed to by 'ptr' of 'count'
+ * Clear the memory of the array of elements pointed to by 'ptr' of 'count'
  * elements and free it. Update the pointer/count to NULL/0.
  *
  * This macro is safe to use on arguments with side effects.
index 21c484e1f341717e4f3720341881b445c23e04ef..3bbced01b0f8f12ce6dc658708b5d042b9b5c376 100644 (file)
@@ -610,7 +610,7 @@ virBitmapParse(const char *str,
  * This function is the counterpart of virBitmapFormat. This function creates
  * a bitmap, in which bits are set according to the content of @str.
  *
- * The bitmap is expanded to accomodate all the bits.
+ * The bitmap is expanded to accommodate all the bits.
  *
  * @str is a comma separated string of fields N, which means a number of bit
  * to set, and ^N, which means to unset the bit, and N-M for ranges of bits
index 4aec5f1bcfe0a6caad4c9b74dbb1adcd8bcd9331..e20df3ea0532f5508779a2aeb91106aa55825bde 100644 (file)
@@ -1899,7 +1899,7 @@ virCgroupDenyAllDevices(virCgroupPtr group)
 /**
  * virCgroupAllowAllDevices:
  *
- * Allows the permissiong for all devices by setting lines similar
+ * Allows the permission for all devices by setting lines similar
  * to these ones (obviously the 'm' permission is an example):
  *
  * 'b *:* m'
@@ -1950,7 +1950,7 @@ virCgroupAllowDevice(virCgroupPtr group, char type, int major, int minor,
  * adds that to the cgroup ACL
  *
  * Returns: 0 on success, 1 if path exists but is not a device or is not
- * accesible, or * -1 on error
+ * accessible, or * -1 on error
  */
 int
 virCgroupAllowDevicePath(virCgroupPtr group,
index bdb83c5fd31c57191eb8a0cc033c1f1461242ae7..3a3ea227a5f79f62713fa0c50ac73e79b722691c 100644 (file)
@@ -216,9 +216,9 @@ virCryptoEncryptDataAESgnutls(gnutls_cipher_algorithm_t gnutls_enc_alg,
 
 
 /* virCryptoEncryptData:
- * @algorithm: algoritm desired for encryption
+ * @algorithm: algorithm desired for encryption
  * @enckey: encryption key
- * @enckeylen: encription key length
+ * @enckeylen: encryption key length
  * @iv: initialization vector
  * @ivlen: length of initialization vector
  * @data: data to encrypt
index 533cfefc77080cb21cf2fed49e1ceea8bc7797ca..b0a019497ca47c6b0023444dd25be4db6cbfb550 100644 (file)
@@ -153,7 +153,7 @@ virModuleLoad(const char *path,
         return -1;
     } else {
         /* Since we have no dlopen(), but definition we have no
-         * loadable modules on disk, so we can resaonably
+         * loadable modules on disk, so we can reasonably
          * return '1' instead of an error.
          */
         return 1;
index 9aebe56f40123bc2190d19f5e4173bd31f06c4ca..6f88399a76008c16d7f67e507eca6179fb12fa2c 100644 (file)
@@ -280,7 +280,7 @@ virNetDevBandwidthSet(const char *ifname,
          *                                                +-----------+     +-----+
          *
          * After the routing decision, when is it clear a packet is to be sent
-         * via a particular NIC, it is sent to the root qdisc (queueing
+         * via a particular NIC, it is sent to the root qdisc (queuing
          * discipline). In this case HTB (Hierarchical Token Bucket). It has
          * only one direct child class (with id 1:1) which shapes the overall
          * rate that is sent through the NIC.  This class has at least one child
index 9f940e10292506a13fe5fc034890d3dc08b0544c..295ba86265155e784c720c1c1339cf6e4cdb1b48 100644 (file)
@@ -443,7 +443,7 @@ virNetDevIPWaitDadFinish(virSocketAddrPtr *addrs, size_t count)
     }
 
     memset(&ifa, 0, sizeof(ifa));
-    /* DAD is for IPv6 adresses only. */
+    /* DAD is for IPv6 addresses only. */
     ifa.ifa_family = AF_INET6;
     if (nlmsg_append(nlmsg, &ifa, sizeof(ifa), NLMSG_ALIGNTO) < 0) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
index 757d8135a6d69966ed0d72f9f61f37992c50086f..fa2fa6dadf9df0e25a65c5c410d4814dd9b11203 100644 (file)
@@ -733,7 +733,7 @@ virNetDevMacVLanVPortProfileCallback(struct nlmsghdr *hdr,
                 VIR_DEBUG("IFLA_PORT_REQUEST = %d", req);
 
                 if (req == PORT_REQUEST_DISASSOCIATE) {
-                    VIR_DEBUG("Set dissaccociated.");
+                    VIR_DEBUG("Set disassociated.");
                     indicate = true;
                 }
             }
index 8fe06fdbab6660f0f4d9c626556c8252aa44e575..ee0db4e9b29a92f42e85caca637b60c4643c2ec9 100644 (file)
@@ -307,7 +307,7 @@ int virNetDevOpenvswitchSetMigrateData(char *migrate, const char *ifname)
 /**
  * virNetDevOpenvswitchInterfaceStats:
  * @ifname: the name of the interface
- * @stats: the retreived domain interface stat
+ * @stats: the retrieved domain interface stat
  *
  * Retrieves the OVS interfaces stats
  *
index 1f616f73d561349680483e440c86b8fec1558776..6ac8ae615327438596ecccdf11b368709d0408fc 100644 (file)
@@ -50,7 +50,7 @@ VIR_LOG_INIT("util.random");
 
 /**
  * virRandomBits:
- * @nbits: Number of bits of randommess required
+ * @nbits: Number of bits of randomness required
  *
  * Generate an evenly distributed random number between [0,2^nbits), where
  * @nbits must be in the range (0,64].
index 6ffd71fe7cb4111f7834c705f7312a20224e4aee..bc6b614ee9c8b02f3579dd07317cf974c1454bb5 100644 (file)
@@ -730,7 +730,7 @@ virResctrlGetMonitorInfo(virResctrlInfoPtr resctrl)
         /* If no feature found in "/info/L3_MON/mon_features",
          * some error happens */
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                       _("Get empty feature list from resctrl"));
+                       _("Got empty feature list from resctrl"));
         goto cleanup;
     }
 
index 3ff6c4f9008edb8ec994bc9217274045939f636f..a1583832109671ffc7fe4895510cc701725ae738 100644 (file)
@@ -324,7 +324,7 @@ struct _virStorageSource {
     unsigned int debugLevel;
     bool debug;
 
-    /* Libvirt currently stores the following properities in virDomainDiskDef.
+    /* Libvirt currently stores the following properties in virDomainDiskDef.
      * These instances are currently just copies from the parent definition and
      * are not mapped back to the XML */
     int iomode; /* enum virDomainDiskIo */
index 270e747acf8a917a32c28dba4f67964e79231173..2207c9f9dfeabdf7d709e73f7c33eb834a8e4a0a 100644 (file)
@@ -763,7 +763,7 @@ virAsprintfInternal(bool report,
  * @dest: destination buffer
  * @src: source buffer
  * @n: number of bytes to copy
- * @destbytes: number of bytes the destination can accomodate
+ * @destbytes: number of bytes the destination can accommodate
  *
  * Copies the first @n bytes of @src to @dest.
  *
@@ -772,7 +772,7 @@ virAsprintfInternal(bool report,
  *
  * @n must be a reasonable value, that is, it must not exceed either
  * the length of @src or the size of @dest. For the latter constraint,
- * the fact that @dest needs to accomodate a NULL byte in addition to
+ * the fact that @dest needs to accommodate a NULL byte in addition to
  * the bytes copied from @src must be taken into account.
  *
  * If you want to copy *all* of @src to @dest, use virStrcpy() or
@@ -806,7 +806,7 @@ virStrncpy(char *dest, const char *src, size_t n, size_t destbytes)
  *
  * @dest: destination buffer
  * @src: source buffer
- * @destbytes: number of bytes the destination can accomodate
+ * @destbytes: number of bytes the destination can accommodate
  *
  * Copies @src to @dest.
  *
index 50a7a56303363ac2144cac631588ff98d6a16ac3..7326ae7d073a1851a5b306e851344a9c81221518 100644 (file)
@@ -413,7 +413,7 @@ vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start)
      * assign a name to it and it defaults to vboxnet*, for e.g:
      * vboxnet0, vboxnet1, etc. Also the UUID is assigned to it
      * automatically depending on the mac address and thus both
-     * these paramters are ignored here for now.
+     * these parameters are ignored here for now.
      *
      * If the vbox is in 2.x and the def->name not equal to vboxnet0,
      * the function call will fail and the networkInterface set to
index 65c24d094417f578b16c3ec1bdc6825ec49f7a9c..eb4e148909dd6d367dab60cbd13649383e62f451 100644 (file)
@@ -39,9 +39,9 @@
  * defined by vbox_CAPI_v4_0.h.
  *
  * The vbox_common.c, it is used to generate common codes for all vbox
- * versions. Bacause the same member varible's offset in a vbox struct
+ * versions. Because the same member variable's offset in a vbox struct
  * may change between different vbox versions. The vbox_common.c
- * shouldn't directly use struct's member varibles defined in
+ * shouldn't directly use struct's member variables defined in
  * vbox_CAPI_v*.h. To make things safety, we include the
  * vbox_common.h in vbox_common.c. In this case, we treat structs
  * defined by vbox as a void*. The common codes don't concern about
index 937bf0c96b75322b270faefff6e9456ad2eee675..92601291fd2d9694a73d1b7e4c1a1c13ec51d0e2 100644 (file)
@@ -2173,7 +2173,7 @@ virVMXParseDisk(virVMXContext *ctx, virDomainXMLOptionPtr xmlopt, virConfPtr con
         goto cleanup;
     }
 
-    /* FIXME: Need to distiguish between active and inactive domains here */
+    /* FIXME: Need to distinguish between active and inactive domains here */
     if (! present/* && ! startConnected*/)
         goto ignore;
 
@@ -2571,7 +2571,7 @@ virVMXParseEthernet(virConfPtr conf, int controller, virDomainNetDefPtr *def)
         return -1;
     }
 
-    /* FIXME: Need to distiguish between active and inactive domains here */
+    /* FIXME: Need to distinguish between active and inactive domains here */
     if (! present/* && ! startConnected*/)
         return 0;
 
@@ -2774,7 +2774,7 @@ virVMXParseSerial(virVMXContext *ctx, virConfPtr conf, int port,
         return -1;
     }
 
-    /* FIXME: Need to distiguish between active and inactive domains here */
+    /* FIXME: Need to distinguish between active and inactive domains here */
     if (! present/* && ! startConnected*/)
         return 0;
 
@@ -2953,7 +2953,7 @@ virVMXParseParallel(virVMXContext *ctx, virConfPtr conf, int port,
         return -1;
     }
 
-    /* FIXME: Need to distiguish between active and inactive domains here */
+    /* FIXME: Need to distinguish between active and inactive domains here */
     if (! present/* && ! startConnected*/)
         return 0;
 
index bedc6316db8de3032bf7cacca6c42f8899fc588c..7e9ef932dc6bdca6329ac5bd8e1f6bff30b7ab4c 100644 (file)
@@ -3354,7 +3354,7 @@ vzDomainMigrateFinish3Params(virConnectPtr dconn,
     /* In this situation we have to restore domain on source. But the migration
      * is already finished. */
     if (!domain)
-        VIR_WARN("Can't provide domain '%s' after successfull migration.", name);
+        VIR_WARN("Can't provide domain '%s' after successful migration.", name);
     virDomainObjEndAPI(&dom);
     return domain;
 }
index 5ca906e65f23af95aecc24d8e6746586c356233c..63d013deac6058bdd0257e796a986dbfa1d0739a 100644 (file)
@@ -2601,7 +2601,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def)
 
     /* we fill only type and arch fields in vzLoadDomain for
      * hvm type and also init for containers, so we can check that all
-     * other paramenters are null and boot devices config is default */
+     * other parameters are null and boot devices config is default */
 
     if (def->os.machine != NULL || def->os.bootmenu != 0 ||
         def->os.kernel != NULL || def->os.initrd != NULL ||
index af6316e7d055e11bdbbd2c83262f1aa8caf77442..fbdd5ea982e005ac23a47672094e3d37008b0d13 100644 (file)
@@ -1703,7 +1703,7 @@ xenFormatSxprChr(virDomainChrDefPtr def,
  * @hvm: true or 1 if domain is HVM
  * @isAttach: create expression for device attach (1).
  *
- * Convert the disk device part of the domain config into a S-expresssion in buf.
+ * Convert the disk device part of the domain config into a S-expression in buf.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -1965,7 +1965,7 @@ xenFormatSxprNet(virConnectPtr conn,
  * @def: the device config
  * @buf: a buffer for the result S-expression
  *
- * Convert a single PCI device part of the domain config into a S-expresssion in buf.
+ * Convert a single PCI device part of the domain config into a S-expression in buf.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -1987,7 +1987,7 @@ xenFormatSxprPCI(virDomainHostdevDefPtr def,
  * @buf: a buffer for the result S-expression
  * @detach: create expression for device detach (1).
  *
- * Convert a single PCI device part of the domain config into a S-expresssion in buf.
+ * Convert a single PCI device part of the domain config into a S-expression in buf.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
@@ -2019,7 +2019,7 @@ xenFormatSxprOnePCI(virDomainHostdevDefPtr def,
  * @def: the domain config
  * @buf: a buffer for the result S-expression
  *
- * Convert all PCI device parts of the domain config into a S-expresssion in buf.
+ * Convert all PCI device parts of the domain config into a S-expression in buf.
  *
  * Returns 0 in case of success, -1 in case of error.
  */
index 39f4eb7b6a27ec46e277040cd94fa4edca569738..76db2494bd4c890cd135812e1fda28d0c5a2b310 100644 (file)
@@ -281,7 +281,7 @@ testSELinuxCheckLabels(testSELinuxFile *files, size_t nfiles)
         }
         if (STRNEQ_NULLABLE(files[i].context, ctx)) {
             virReportError(VIR_ERR_INTERNAL_ERROR,
-                           "File %s context '%s' did not match epected '%s'",
+                           "File %s context '%s' did not match expected '%s'",
                            files[i].file, ctx, files[i].context);
             VIR_FREE(ctx);
             return -1;
index e6d68745aeb413a838f1778f7daa2b766eaba0b3..dda736cae531817ee1ca963eba68275280fafb43 100644 (file)
@@ -240,7 +240,7 @@ testFirewallSingleGroup(const void *opaque)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -306,7 +306,7 @@ testFirewallRemoveRule(const void *opaque)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -379,7 +379,7 @@ testFirewallManyGroups(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -475,7 +475,7 @@ testFirewallIgnoreFailGroup(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -549,7 +549,7 @@ testFirewallIgnoreFailRule(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -620,7 +620,7 @@ testFirewallNoRollback(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -710,7 +710,7 @@ testFirewallSingleRollback(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -803,7 +803,7 @@ testFirewallManyRollback(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -926,7 +926,7 @@ testFirewallChainedRollback(const void *opaque ATTRIBUTE_UNUSED)
     actual = virBufferCurrentContent(&cmdbuf);
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
@@ -1109,7 +1109,7 @@ testFirewallQuery(const void *opaque ATTRIBUTE_UNUSED)
     }
 
     if (STRNEQ_NULLABLE(expected, actual)) {
-        fprintf(stderr, "Unexected command execution\n");
+        fprintf(stderr, "Unexpected command execution\n");
         virTestDifference(stderr, expected, actual);
         goto cleanup;
     }
index 4e6b6f3fefdf01d8aadff24ae603974f7e9c7d8e..38f549848fd733a56414497dd71c016b15eb51e9 100644 (file)
@@ -23,7 +23,7 @@ testHashInit(int size)
     if (!(hash = virHashCreate(size, NULL)))
         return NULL;
 
-    /* entires are added in reverse order so that they will be linked in
+    /* entries are added in reverse order so that they will be linked in
      * collision list in the same order as in the uuids array
      */
     for (i = ARRAY_CARDINALITY(uuids) - 1; i >= 0; i--) {
index aaefb802e0b6f08f16deb3b10767712c8f9dc872..09efc7478df1873542f981f7db976c6b623a1631 100644 (file)
@@ -83,7 +83,7 @@
  * then lookup the same symbol name but with 'wrap_' prefixed
  * on it, and call that.
  *
- * The actual test suite should provide the implemention of
+ * The actual test suite should provide the implementation of
  * the wrap_XXXX symbol, using the VIR_MOCK_WRAP_NNN_MMM
  * macros.
  */
index 25aadf8aea47f71c8c61fbbb25617fdc62183e0a..e0a338826698a674692cd60b84b965ef8857babf 100644 (file)
@@ -221,7 +221,7 @@ int access(const char *path, int mode)
 
 /* Okay, the following ifdef rain forest may look messy at a
  * first glance. But here's the thing: during run time linking of
- * a binary, stat() may not be acutally needing symbol stat. It
+ * a binary, stat() may not be actually needing symbol stat. It
  * might as well not had been stat() in the first place (see the
  * reasoning at the beginning of this file). However, if we would
  * expose stat symbol here, we will poison the well and trick
index eb4f9caa7f80287127a99c1f2c0139d0f5e233eb..09fa0f8a67139ec6e3b02809d7e46647b83734ea 100644 (file)
@@ -322,7 +322,7 @@ virshConnectionUsability(vshControl *ctl, virConnectPtr conn)
     }
 
     /* The connection is considered dead only if
-     * virConnectIsAlive() successfuly says so.
+     * virConnectIsAlive() successfully says so.
      */
     vshResetLibvirtError();
 
index 77928ddb8099e7081eb093eeaaca8ea0642efd87..aa4564858ede9893510e314e0057ebaa4100976b 100644 (file)
@@ -646,7 +646,7 @@ cmdSrvClientsList(vshControl *ctl, const vshCmd *cmd)
         goto cleanup;
     }
 
-    table = vshTableNew(_("Id"), _("Transport"), _("Connected sice"), NULL);
+    table = vshTableNew(_("Id"), _("Transport"), _("Connected since"), NULL);
     if (!table)
         goto cleanup;
 
index fb656ffeb0938a7f1eec36ee15ae122418faac29..9855609e54df1578731e9ed805af5d5ea9f565d7 100644 (file)
@@ -427,7 +427,7 @@ vshTablePrint(vshTablePtr table, bool header)
  * @ctl virtshell control structure
  *
  * Print table returned in string to stdout.
- * If effect on vshControl structure on priting function changes in future
+ * If effect on vshControl structure on printing function changes in future
  * (apart from quiet mode) this code may need update
  */
 void