diff --git a/ChangeLog b/ChangeLog
index 9f76d14308..5ded45adac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 29 12:50:00 UTC 2008 Richard W.M. Jones
To avoid as much as prossible troubles with a global variable in a +the last logged error can be retrieved.
To avoid as much as possible troubles with a global variable in a multithreaded environment, libvirt will associate when possible the errors to the current connection they are related to, that way the error is stored in a dynamic structure which can be made thread specific. Error callback can be @@ -43,7 +43,7 @@ following fields:
and then extra raw informations about the error which may be initialized to 0 or NULL if unused
So usually, setting up specific error handling with libvirt consist of registering an handler with with virSetErrorFunc or with virConnSetErrorFunc, -chech the value of the code value, take appropriate action, if needed let +check the value of the code value, take appropriate action, if needed let libvirt print the error on stderr by calling virDefaultErrorFunc. For asynchronous error handing, set such a function doing nothing to avoid the error being reported on stderr, and call virConnGetLastError or diff --git a/docs/format.html b/docs/format.html index 716c589c1b..b5f158b241 100644 --- a/docs/format.html +++ b/docs/format.html @@ -45,7 +45,7 @@ significant:
<domain type='xen' id='3'> pointing to an additional program in charge of emulating the devices
hda
-hdd
, or a floppy device
fda
, fdb
. The <disk>
element
also supports a 'device' attribute to indicate what kinda of hardware to
@@ -247,7 +247,7 @@ support a variety of options:192.168.22.0/255.255.255.0
. Each guest will have an
associated tun device created with a name of vnetN, which can also be
- overriden with the <target> element. Example configs are:
+ overridden with the <target> element. Example configs are:
<interface type='network'> <source network='default'/> </interface> @@ -263,7 +263,7 @@ support a variety of options:
- Userspace SLIRP stack
Provides a bridge from the VM directly onto the LAN. This assumes there is a bridge device on the host which has one or more of the hosts physical NICs enslaved. The guest VM will have an associated tun device - created with a name of vnetN, which can also be overriden with the + created with a name of vnetN, which can also be overridden with the <target> element. The tun device will be enslaved to the bridge. The IP range / network configuration is whatever is used on the LAN. This provides the guest VM full incoming & outgoing net access just like a @@ -281,11 +281,11 @@ support a variety of options:
- Userspace SLIRP stack
- Generic connection to LAN
-Provides a means for the administrator to execute an arbitrary script to connect the guest's network to the LAN. The guest will have a tun - device created with a name of vnetN, which can also be overriden with the + device created with a name of vnetN, which can also be overridden with the <target> element. After creating the tun device a shell script will be run which is expected to do whatever host network integration is required. By default this script is called /etc/qemu-ifup but can be - overriden.
+ overridden.<interface type='ethernet'/> <interface type='ethernet'> @@ -409,7 +409,7 @@ BIOS you will see<capabilities> </features> </guest> ... -</capabilities>The first block (in red) indicates the host hardware capbilities, currently +</capabilities>
The first block (in red) indicates the host hardware capabilities, currently it is limited to the CPU properties but other information may be available, it shows the CPU architecture, and the features of the chip (the feature block is similar to what you will find in a Xen fully virtualized domain diff --git a/docs/index.html b/docs/index.html index 6b4eca0273..348fe59168 100644 --- a/docs/index.html +++ b/docs/index.html @@ -20,7 +20,7 @@ of recent versions of Linux (and other OSes). It is free software available under the GNU Lesser General Public License. Virtualization of the Linux Operating System means the ability to run multiple instances of Operating Systems -concurently on a single hardware system where the basic resources are driven +concurrently on a single hardware system where the basic resources are driven by a Linux (or Solaris) instance. The library aims at providing a long term stable C API initially for Xen paravirtualization but it can also integrate with other diff --git a/docs/news.html b/docs/news.html index 19b8d10228..8df577f76d 100644 --- a/docs/news.html +++ b/docs/news.html @@ -6,7 +6,7 @@ and check the ChangeLog to gauge progress.
0 Ruby bindings (David Lutterkort), SASL based authentication for libvirt remote support (Daniel Berrange), PolicyKit authentication (Daniel Berrange)
- Documentation: example files for QEMU and libvirtd configuations +
- Documentation: example files for QEMU and libvirtd configurations (Daniel Berrange), english cleanups (Jim Paris), CIM and OpenVZ references, document <shareable/>, daemon startup when using QEMU/KVM, document HV support for new NUMA calls (Richard Jones), diff --git a/docs/python.html b/docs/python.html index 884c35f449..566a543102 100644 --- a/docs/python.html +++ b/docs/python.html @@ -2,7 +2,7 @@
Bindings for other languages Bindings for other languages
Libvirt comes with bindings to support other languages than pure C. First the headers embeds the necessary declarations to -allow direct acces from C++ code, but also we have bindings for +allow direct access from C++ code, but also we have bindings for higher level kind of languages:
- Python: Libvirt comes with direct support for the Python language (just make sure you installed the libvirt-python package if not compiling from sources). See below for more informations about diff --git a/docs/storage.html b/docs/storage.html index eb09b9db2b..9496ee82ba 100644 --- a/docs/storage.html +++ b/docs/storage.html @@ -84,7 +84,7 @@ full capacity for storage volumes. This value is in bytes. This is not applicable when creating a pool.
- available
-- Providing the free space available for allocating new volums +
- Providing the free space available for allocating new volumes in the pool. Due to underlying device constraints it may not be possible to allocate the entire free space to a single volume. This value is in bytes. This is not applicable when creating a @@ -131,8 +131,8 @@ pool it will be the name of the directory in which volumes will be created. For device based pools it will tbe directory in which devices nodes exist. For the latter
/dev/
may seem like the logical choice, however, devices nodes there are not -guarenteed stable across reboots, since they are allocated on -demand. It is preferrable to use a stable location such as one +guaranteed stable across reboots, since they are allocated on +demand. It is preferable to use a stable location such as one of the/dev/disk/by-{path,id,uuid,label
locations.- permissions
- @@ -152,7 +152,7 @@ contains the MAC (eg SELinux) label string. If a storage pool exposes information about its underlying placement / allocation scheme, the
device
element within thesource
element may contain information -about its avilable extents. Some pools have a constraint that +about its available extents. Some pools have a constraint that a volume must be allocated entirely within a single constraint (eg disk partition pools). Thus the extent information allows an application to determine the maximum possible size for a new @@ -215,8 +215,8 @@ pool it will be the name of the directory in which volumes will be created. For device based pools it will tbe directory in which devices nodes exist. For the latter/dev/
may seem like the logical choice, however, devices nodes there are not -guarenteed stable across reboots, since they are allocated on -demand. It is preferrable to use a stable location such as one +guaranteed stable across reboots, since they are allocated on +demand. It is preferable to use a stable location such as one of the/dev/disk/by-{path,id,uuid,label
locations.- format
@@ -293,10 +293,10 @@ One of the following options:When listing existing volumes all these formats are supported natively. When creating new volumes, only a subset may be -available. The
raw
type is guarenteed always +available. Theraw
type is guaranteed always available. Theqcow2
type can be created if eitherqemu-img
orqcow-create
tools -are present. The others are dependant on support of the +are present. The others are dependent on support of theqemu-img
tool.Filesystem pool
@@ -328,7 +328,7 @@ required.Valid pool format types
-The fileystem pool supports the following formats: +The filesystem pool supports the following formats:
- @@ -378,7 +378,7 @@ point. It will default to using NFS as the protocol.
auto
- automatically determine formatValid pool format types
-The network fileystem pool supports the following formats: +The network filesystem pool supports the following formats:
- diff --git a/include/libvirt/libvirt.h b/include/libvirt/libvirt.h index 7f28e01253..1e51365805 100644 --- a/include/libvirt/libvirt.h +++ b/include/libvirt/libvirt.h @@ -241,7 +241,7 @@ struct _virDomainInterfaceStats { /** * virDomainInterfaceStatsPtr: * - * A pointe to a virDomainInterfaceStats structure + * A pointer to a virDomainInterfaceStats structure */ typedef virDomainInterfaceStatsStruct *virDomainInterfaceStatsPtr; @@ -261,7 +261,7 @@ virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn, * @nodeinfo: virNodeInfo instance * * This macro is to calculate the total number of CPUs supported - * but not neccessarily active in the host. + * but not necessarily active in the host. */ @@ -278,7 +278,7 @@ typedef virNodeInfo *virNodeInfoPtr; /** * virConnectFlags * - * Flags when openning a connection to a hypervisor + * Flags when opening a connection to a hypervisor */ typedef enum { VIR_CONNECT_RO = 1, /* A readonly connection */ @@ -573,7 +573,7 @@ int virDomainPinVcpu (virDomainPtr domain, * @cpumap: pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT) * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * USE_CPU macro set the bit (CPU usable) of the related cpu in cpumap. */ @@ -584,7 +584,7 @@ int virDomainPinVcpu (virDomainPtr domain, * @cpumap: pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT) * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * USE_CPU macro reset the bit (CPU not usable) of the related cpu in cpumap. */ @@ -594,7 +594,7 @@ int virDomainPinVcpu (virDomainPtr domain, * VIR_CPU_MAPLEN: * @cpu: number of physical CPUs * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * It returns the length (in bytes) required to store the complete * CPU map between a single virtual & all physical CPUs of a domain. */ @@ -615,7 +615,7 @@ int virDomainGetVcpus (virDomainPtr domain, * @vcpu: the virtual CPU number * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainGetVcpus() API. + * This macro is to be used in conjunction with virDomainGetVcpus() API. * VIR_CPU_USABLE macro returns a non zero value (true) if the cpu * is usable by the vcpu, and 0 otherwise. */ @@ -632,7 +632,7 @@ int virDomainGetVcpus (virDomainPtr domain, * This cpumap must be previously allocated by the caller * (ie: malloc(maplen)) * - * This macro is to be used in conjonction with virDomainGetVcpus() and + * This macro is to be used in conjunction with virDomainGetVcpus() and * virDomainPinVcpu() APIs. VIR_COPY_CPUMAP macro extract the cpumap of * the specified vcpu from cpumaps array and copy it into cpumap to be used * later by virDomainPinVcpu() API. @@ -647,7 +647,7 @@ int virDomainGetVcpus (virDomainPtr domain, * @maplen: the length (in bytes) of one cpumap * @vcpu: the virtual CPU number * - * This macro is to be used in conjonction with virDomainGetVcpus() and + * This macro is to be used in conjunction with virDomainGetVcpus() and * virDomainPinVcpu() APIs. VIR_GET_CPUMAP macro returns a pointer to the * cpumap of the specified vcpu from cpumaps array. */ diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index ade9b5104e..2963f0d92c 100644 --- a/include/libvirt/libvirt.h.in +++ b/include/libvirt/libvirt.h.in @@ -241,7 +241,7 @@ struct _virDomainInterfaceStats { /** * virDomainInterfaceStatsPtr: * - * A pointe to a virDomainInterfaceStats structure + * A pointer to a virDomainInterfaceStats structure */ typedef virDomainInterfaceStatsStruct *virDomainInterfaceStatsPtr; @@ -261,7 +261,7 @@ virDomainPtr virDomainMigrate (virDomainPtr domain, virConnectPtr dconn, * @nodeinfo: virNodeInfo instance * * This macro is to calculate the total number of CPUs supported - * but not neccessarily active in the host. + * but not necessary active in the host. */ @@ -278,7 +278,7 @@ typedef virNodeInfo *virNodeInfoPtr; /** * virConnectFlags * - * Flags when openning a connection to a hypervisor + * Flags when opening a connection to a hypervisor */ typedef enum { VIR_CONNECT_RO = 1, /* A readonly connection */ @@ -573,7 +573,7 @@ int virDomainPinVcpu (virDomainPtr domain, * @cpumap: pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT) * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * USE_CPU macro set the bit (CPU usable) of the related cpu in cpumap. */ @@ -584,7 +584,7 @@ int virDomainPinVcpu (virDomainPtr domain, * @cpumap: pointer to a bit map of real CPUs (in 8-bit bytes) (IN/OUT) * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * USE_CPU macro reset the bit (CPU not usable) of the related cpu in cpumap. */ @@ -594,7 +594,7 @@ int virDomainPinVcpu (virDomainPtr domain, * VIR_CPU_MAPLEN: * @cpu: number of physical CPUs * - * This macro is to be used in conjonction with virDomainPinVcpu() API. + * This macro is to be used in conjunction with virDomainPinVcpu() API. * It returns the length (in bytes) required to store the complete * CPU map between a single virtual & all physical CPUs of a domain. */ @@ -615,7 +615,7 @@ int virDomainGetVcpus (virDomainPtr domain, * @vcpu: the virtual CPU number * @cpu: the physical CPU number * - * This macro is to be used in conjonction with virDomainGetVcpus() API. + * This macro is to be used in conjunction with virDomainGetVcpus() API. * VIR_CPU_USABLE macro returns a non zero value (true) if the cpu * is usable by the vcpu, and 0 otherwise. */ @@ -632,7 +632,7 @@ int virDomainGetVcpus (virDomainPtr domain, * This cpumap must be previously allocated by the caller * (ie: malloc(maplen)) * - * This macro is to be used in conjonction with virDomainGetVcpus() and + * This macro is to be used in conjunction with virDomainGetVcpus() and * virDomainPinVcpu() APIs. VIR_COPY_CPUMAP macro extract the cpumap of * the specified vcpu from cpumaps array and copy it into cpumap to be used * later by virDomainPinVcpu() API. @@ -647,7 +647,7 @@ int virDomainGetVcpus (virDomainPtr domain, * @maplen: the length (in bytes) of one cpumap * @vcpu: the virtual CPU number * - * This macro is to be used in conjonction with virDomainGetVcpus() and + * This macro is to be used in conjunction with virDomainGetVcpus() and * virDomainPinVcpu() APIs. VIR_GET_CPUMAP macro returns a pointer to the * cpumap of the specified vcpu from cpumaps array. */ diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index f28ce50ba5..b05cd3d2cb 100644 --- a/include/libvirt/virterror.h +++ b/include/libvirt/virterror.h @@ -41,7 +41,7 @@ typedef enum { VIR_FROM_XEN, /* Error at Xen hypervisor layer */ VIR_FROM_XEND, /* Error at connection with xend daemon */ VIR_FROM_XENSTORE, /* Error at connection with xen store */ - VIR_FROM_SEXPR, /* Error in the S-Epression code */ + VIR_FROM_SEXPR, /* Error in the S-Expression code */ VIR_FROM_XML, /* Error in the XML code */ VIR_FROM_DOM, /* Error when operating on a domain */ VIR_FROM_RPC, /* Error in the XML-RPC code */ @@ -131,7 +131,7 @@ typedef enum { VIR_WAR_NO_NETWORK, /* failed to start network */ VIR_ERR_NO_DOMAIN, /* domain not found or unexpectedly disappeared */ VIR_ERR_NO_NETWORK, /* network not found */ - VIR_ERR_INVALID_MAC, /* invalid MAC adress */ + VIR_ERR_INVALID_MAC, /* invalid MAC address */ VIR_ERR_AUTH_FAILED, /* authentication failed */ VIR_ERR_INVALID_STORAGE_POOL, /* invalid storage pool object */ VIR_ERR_INVALID_STORAGE_VOL, /* invalid storage vol object */ diff --git a/python/libvir.c b/python/libvir.c index 2b97e088d3..fe650e89d4 100644 --- a/python/libvir.c +++ b/python/libvir.c @@ -115,7 +115,7 @@ libvirt_virDomainGetSchedulerType(PyObject *self ATTRIBUTE_UNUSED, if (c_retval == NULL) return VIR_PY_NONE; - /* convert to a Python tupple of long objects */ + /* convert to a Python tuple of long objects */ if ((info = PyTuple_New(2)) == NULL) { free(c_retval); return VIR_PY_NONE; @@ -154,7 +154,7 @@ libvirt_virDomainGetSchedulerParameters(PyObject *self ATTRIBUTE_UNUSED, return VIR_PY_NONE; } - /* convert to a Python tupple of long objects */ + /* convert to a Python tuple of long objects */ if ((info = PyDict_New()) == NULL) { free(params); return VIR_PY_NONE; @@ -227,7 +227,7 @@ libvirt_virDomainSetSchedulerParameters(PyObject *self ATTRIBUTE_UNUSED, return VIR_PY_INT_FAIL; } - /* convert to a Python tupple of long objects */ + /* convert to a Python tuple of long objects */ for (i = 0 ; i < nparams ; i++) { PyObject *key, *val; key = libvirt_constcharPtrWrap(params[i].field); @@ -318,7 +318,7 @@ libvirt_virDomainGetVcpus(PyObject *self ATTRIBUTE_UNUSED, cpumap, cpumaplen) < 0) goto cleanup; - /* convert to a Python tupple of long objects */ + /* convert to a Python tuple of long objects */ if ((pyretval = PyTuple_New(2)) == NULL) goto cleanup; if ((pycpuinfo = PyList_New(dominfo.nrVirtCpu)) == NULL) @@ -1442,7 +1442,7 @@ initcygvirtmod virInitialize(); - /* intialize the python extension module */ + /* initialize the python extension module */ Py_InitModule((char *) #ifndef __CYGWIN__ "libvirtmod" diff --git a/python/libvirt-python-api.xml b/python/libvirt-python-api.xml index f50b378be9..6f64b655b6 100644 --- a/python/libvirt-python-api.xml +++ b/python/libvirt-python-api.xml @@ -76,7 +76,7 @@
auto
- automatically determine format- Returns the availbale memory for a list of cells +Returns the available memory for a list of cells @@ -98,7 +98,7 @@ - Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires priviledged access to the hypervisor. +Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. diff --git a/python/libvirt_wrap.h b/python/libvirt_wrap.h index acf788f410..3bb42abf99 100644 --- a/python/libvirt_wrap.h +++ b/python/libvirt_wrap.h @@ -86,7 +86,7 @@ PyObject * libvirt_virStorageVolPtrWrap(virStorageVolPtr node); * if (x) LIBVIRT_STMT_START { ... } LIBVIRT_STMT_END; else ... * * When GCC is compiling C code in non-ANSI mode, it will use the - * compiler __extension__ to wrap the statements wihin `({' and '})' braces. + * compiler __extension__ to wrap the statements within `({' and '})' braces. * When compiling on platforms where configure has defined * HAVE_DOWHILE_MACROS, statements will be wrapped with `do' and `while (0)'. * For any other platforms (SunOS4 is known to have this issue), wrap the diff --git a/qemud/event.c b/qemud/event.c index ca7dc117b2..c744738689 100644 --- a/qemud/event.c +++ b/qemud/event.c @@ -379,7 +379,7 @@ static int virEventCleanupTimeouts(void) { int i; /* Remove deleted entries, shuffling down remaining - * entries as needed to form contigous series + * entries as needed to form contiguous series */ for (i = 0 ; i < eventLoop.timeoutsCount ; ) { if (!eventLoop.timeouts[i].deleted) { @@ -421,7 +421,7 @@ static int virEventCleanupHandles(void) { int i; /* Remove deleted entries, shuffling down remaining - * entries as needed to form contigous series + * entries as needed to form contiguous series */ for (i = 0 ; i < eventLoop.handlesCount ; ) { if (!eventLoop.handles[i].deleted) { diff --git a/qemud/event.h b/qemud/event.h index ab59e9e60a..adf7b6d04c 100644 --- a/qemud/event.h +++ b/qemud/event.h @@ -30,8 +30,8 @@ * virEventAddHandleImpl: register a callback for monitoring file handle events * * @fd: file handle to monitor for events - * @events: bitset of events to wach from POLLnnn constants - * @cb: callback to invoke when an event occurrs + * @events: bitset of events to watch from POLLnnn constants + * @cb: callback to invoke when an event occurs * @opaque: user data to pass to callback * * returns -1 if the file handle cannot be registered, 0 upon success @@ -42,7 +42,7 @@ int virEventAddHandleImpl(int fd, int events, virEventHandleCallback cb, void *o * virEventUpdateHandleImpl: change event set for a monitored file handle * * @fd: file handle to monitor for events - * @events: bitset of events to wach from POLLnnn constants + * @events: bitset of events to watch from POLLnnn constants * * Will not fail if fd exists */ @@ -61,7 +61,7 @@ int virEventRemoveHandleImpl(int fd); * virEventAddTimeoutImpl: register a callback for a timer event * * @frequency: time between events in milliseconds - * @cb: callback to invoke when an event occurrs + * @cb: callback to invoke when an event occurs * @opaque: user data to pass to callback * * Setting frequency to -1 will disable the timer. Setting the frequency diff --git a/qemud/libvirtd.conf b/qemud/libvirtd.conf index 1919d498af..3b7db4dad9 100644 --- a/qemud/libvirtd.conf +++ b/qemud/libvirtd.conf @@ -5,14 +5,14 @@ ################################################################# # -# Network connectivitiy controls +# Network connectivity controls # # Flag listening for secure TLS connections on the public TCP/IP port. # NB, must pass the --listen flag to the libvirtd process for this to # have any effect. # -# It is neccessary to setup a CA and issue server certificates before +# It is necessary to setup a CA and issue server certificates before # using this capability. # # This is enabled by default, uncomment this to disable it diff --git a/qemud/mdns.c b/qemud/mdns.c index d47d18e1aa..e5c99cb75a 100644 --- a/qemud/mdns.c +++ b/qemud/mdns.c @@ -209,7 +209,7 @@ static void libvirtd_mdns_client_callback(AvahiClient *c, AvahiClientState state /* The server records are now being established. This * might be caused by a host name change. We need to wait * for our own records to register until the host name is - * properly esatblished. */ + * properly established. */ AVAHI_DEBUG("Client collision/connecting %p", mdns->client); group = mdns->group; while (group) { diff --git a/qemud/mdns.h b/qemud/mdns.h index 53ddd40055..0d0516e151 100644 --- a/qemud/mdns.h +++ b/qemud/mdns.h @@ -69,7 +69,7 @@ struct libvirtd_mdns_group *libvirtd_mdns_add_group(struct libvirtd_mdns *mdns, /** * Removes a group container from advertizement * - * @mdns amanger to detatch group from + * @mdns amanger to detach group from * @group group to remove */ void libvirtd_mdns_remove_group(struct libvirtd_mdns *mdns, struct libvirtd_mdns_group *group); @@ -88,7 +88,7 @@ struct libvirtd_mdns_entry *libvirtd_mdns_add_entry(struct libvirtd_mdns_group * /** * Removes a service entry from a group * - * @group group to deteach service entry from + * @group group to detach service entry from * @entry service entry to remove */ void libvirtd_mdns_remove_entry(struct libvirtd_mdns_group *group, struct libvirtd_mdns_entry *entry); diff --git a/qemud/remote.c b/qemud/remote.c index 014fe65e76..85df9cd7fa 100644 --- a/qemud/remote.c +++ b/qemud/remote.c @@ -2261,7 +2261,7 @@ remoteDispatchAuthSaslInit (struct qemud_server *server ATTRIBUTE_UNUSED, } -/* We asked for an SSF layer, so sanity check that we actaully +/* We asked for an SSF layer, so sanity check that we actually * got what we asked for */ static int remoteSASLCheckSSF (struct qemud_client *client,