<strong>Note:</strong> if the command has been daemonized
this will only block & wait for the intermediate process,
not the real command. <code>virCommandRun</code> will
- report on any errors that have occured upon this point
+ report on any errors that have occurred upon this point
with all previous API calls. If the command fails to
run, or exits with non-zero status an error will be
reported via normal libvirt error infrastructure. If a
/**
* virConnectDomainEventCallback:
* @conn: virConnect connection
- * @dom: The domain on which the event occured
- * @event: The specfic virDomainEventType which occured
+ * @dom: The domain on which the event occurred
+ * @event: The specfic virDomainEventType which occurred
* @detail: event specific detail information
* @opaque: opaque user data
*
Example callback prototype is:
def cb(watch, # int id of the handle
- fd, # int file descriptor the event occured on
- events, # int bitmap of events that have occured
+ fd, # int file descriptor the event occurred on
+ events, # int bitmap of events that have occurred
opaque): # opaque data passed to eventAddHandle
"""
cbData = {"cb" : cb, "opaque" : opaque}
*
* Firstly parse the datastore path. Then use the datastore name to lookup the
* datastore and it's mount path. Finally concatenate the mount path, directory
- * and file name to an absolute path and return it. Detect the seperator type
+ * and file name to an absolute path and return it. Detect the separator type
* based on the mount path.
*/
static char *
VIR_FORCE_CLOSE(argv->handshakefd);
if (ret == 0) {
- /* this function will only return if an error occured */
+ /* this function will only return if an error occurred */
ret = virCommandExec(cmd);
}
goto cleanup;
}
- /* Now parse the "devices" feild seperately */
+ /* Now parse the "devices" field separately */
regex = strdup(regex_unit);
for (i = 1; i < nextents; i++) {
virReportOOMError();
goto cleanup;
}
- /* "," is the seperator of "devices" field */
+ /* "," is the separator of "devices" field */
strcat(regex, ",");
strncat(regex, regex_unit, strlen(regex_unit));
}
*
* Create a new virHashTablePtr.
*
- * Returns the newly created object, or NULL if an error occured.
+ * Returns the newly created object, or NULL if an error occurred.
*/
virHashTablePtr virHashCreateFull(int size,
virHashDataFree dataFree,
unsigned char uuid2[VIR_UUID_BUFLEN];
/* Note: we can't directly compare the utf8 strings here
- * cause the two UUID's may have seperators as space or '-'
+ * cause the two UUID's may have separators as space or '-'
* or mixture of both and we don't want to fail here by
* using direct string comparison. Here virUUIDParse() takes
* care of these cases. */