提交 d276da48 编写于 作者: N Nitesh Konkar 提交者: John Ferlan

Fix typos and grammar

Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
上级 5d9c2c70
......@@ -2778,7 +2778,7 @@ virCgroupGetCpusetMemoryMigrate(virCgroupPtr group, bool *migrate)
* @group: The cgroup to set cpuset.cpus for
* @cpus: the cpus to set
*
* Retuens: 0 on success
* Returns: 0 on success
*/
int
virCgroupSetCpusetCpus(virCgroupPtr group, const char *cpus)
......@@ -2796,7 +2796,7 @@ virCgroupSetCpusetCpus(virCgroupPtr group, const char *cpus)
* @group: The cgroup to get cpuset.cpus for
* @cpus: the cpus to get
*
* Retuens: 0 on success
* Returns: 0 on success
*/
int
virCgroupGetCpusetCpus(virCgroupPtr group, char **cpus)
......
......@@ -124,7 +124,7 @@ virCryptoHaveCipher(virCryptoCipher algorithm)
*
* Performs the AES gnutls encryption
*
* Same input as virCryptoEncryptData, except the algoritm is replaced
* Same input as virCryptoEncryptData, except the algorithm is replaced
* by the specific gnutls algorithm.
*
* Encrypts the @data buffer using the @enckey and if available the @iv
......
......@@ -1749,7 +1749,7 @@ int virDBusIsServiceEnabled(const char *name)
* virDBusIsServiceRegistered
* @name: service name
*
* Retruns 0 if service is registered, -1 on fatal error, or -2 if service is not registered
* Returns 0 if service is registered, -1 on fatal error, or -2 if service is not registered
*/
int virDBusIsServiceRegistered(const char *name)
{
......
......@@ -655,7 +655,7 @@ virHostCPUGetInfoPopulateLinux(FILE *cpuinfo,
* subcores alone will be online on the host for a subcore in the
* host. Even though the actual threads per core for P8 processor is 8,
* depending on the subcores_per_core = 1, 2 or 4, the threads per
* subcore will vary accordingly to 8, 4 and 2 repectively.
* subcore will vary accordingly to 8, 4 and 2 respectively.
* So, On host threads_per_core what is arrived at from sysfs in the
* current logic is actually the subcores_per_core. Threads per subcore
* can only be obtained from the kvm device. For example, on P8 wih 1
......
......@@ -751,7 +751,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr mgr,
virPCIDevicePtr actual;
/* We need to look up the actual device because that's what
* virPCIDeviceReattach() exepects as its argument */
* virPCIDeviceReattach() expects as its argument */
if (!(actual = virPCIDeviceListFind(mgr->inactivePCIHostdevs, pci)))
continue;
......
......@@ -512,7 +512,7 @@ virRotatingFileWriterAppend(virRotatingFileWriterPtr file,
* If no file with a inode matching @inode currently
* exists, then seeks to the start of the oldest
* file, on the basis that the requested file has
* probably been rotated out of existance
* probably been rotated out of existence
*/
int
virRotatingFileReaderSeek(virRotatingFileReaderPtr file,
......
......@@ -2022,7 +2022,7 @@ virStorageSourceCopy(const virStorageSource *src,
* virStorageSourceInitChainElement:
* @newelem: New backing chain element disk source
* @old: Existing top level disk source
* @transferLabels: Transfer security lables.
* @transferLabels: Transfer security labels.
*
* Transfers relevant information from the existing disk source to the new
* backing chain element if they weren't supplied so that labelling info
......
......@@ -1027,7 +1027,7 @@ virStringStripControlChars(char *str)
* Capitalize the string with replacement of all '-' characters for '_'
* characters. Caller frees the result.
*
* Returns 0 if src is NULL, 1 if capitalization was successfull, -1 on failure.
* Returns 0 if src is NULL, 1 if capitalization was successful, -1 on failure.
*/
int
virStringToUpper(char **dst, const char *src)
......
......@@ -1364,7 +1364,7 @@ virTypedParamsRemoteFree(virTypedParameterRemotePtr remote_params_val,
* parameters for @params to hold, followed by an allocation of @params and
* a second call to the deserializer to actually retrieve the data.
* 2) Newer APIs rely completely on the deserializer to allocate the right
* ammount of memory for @params to hold all the data obtained in
* amount of memory for @params to hold all the data obtained in
* @remote_params.
*
* If used with model 1, two checks are performed, first one comparing the user
......
......@@ -95,7 +95,7 @@ virXPathString(const char *xpath,
/**
* virXPathStringLimit:
* @xpath: the XPath string to evaluate
* @maxlen: maximum length permittred string
* @maxlen: maximum length permitted string
* @ctxt: an XPath context
*
* Wrapper for virXPathString, which validates the length of the returned
......
......@@ -1305,7 +1305,7 @@ a hint and the guest may not respect it). By increasing this value,
the fstrim operation will complete more quickly for filesystems
with badly fragmented free space, although not all blocks will
be discarded. The default value is zero, meaning "discard
every free block". Moreover, a if user wants to trim only one mount
every free block". Moreover, if a user wants to trim only one mount
point, it can be specified via optional I<--mountpoint> parameter.
=item B<domhostname> I<domain>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册