mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 00:45:18 +00:00
Various typos and misspellings
This commit is contained in:
parent
36f7dbf4dc
commit
149c87b49d
2
HACKING
2
HACKING
@ -461,7 +461,7 @@ File handling
|
|||||||
=============
|
=============
|
||||||
Usage of the "fdopen()", "close()", "fclose()" APIs is deprecated in libvirt
|
Usage of the "fdopen()", "close()", "fclose()" APIs is deprecated in libvirt
|
||||||
code base to help avoiding double-closing of files or file descriptors, which
|
code base to help avoiding double-closing of files or file descriptors, which
|
||||||
is particulary dangerous in a multi-threaded applications. Instead of these
|
is particularly dangerous in a multi-threaded application. Instead of these
|
||||||
APIs, use the macros from virfile.h
|
APIs, use the macros from virfile.h
|
||||||
|
|
||||||
- Open a file from a file descriptor:
|
- Open a file from a file descriptor:
|
||||||
|
@ -1351,7 +1351,7 @@ if test "x$with_avahi" = "xyes" || test "x$with_avahi" = "xcheck"; then
|
|||||||
])
|
])
|
||||||
if test "x$with_avahi" = "xyes" ; then
|
if test "x$with_avahi" = "xyes" ; then
|
||||||
AC_DEFINE_UNQUOTED([HAVE_AVAHI], 1,
|
AC_DEFINE_UNQUOTED([HAVE_AVAHI], 1,
|
||||||
[whether Avahi is used to broadcast server presense])
|
[whether Avahi is used to broadcast server presence])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST([AVAHI_CFLAGS])
|
AC_SUBST([AVAHI_CFLAGS])
|
||||||
|
@ -64,13 +64,13 @@
|
|||||||
<p> Most kind of object can also be named in various ways:</p>
|
<p> Most kind of object can also be named in various ways:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>by their <code>name</code>, an user friendly identifier but
|
<li>by their <code>name</code>, an user friendly identifier but
|
||||||
whose unicity cannot be garanteed between two nodes.</li>
|
whose unicity cannot be guaranteed between two nodes.</li>
|
||||||
<li>by their <code>ID</code>, which is a runtime unique identifier
|
<li>by their <code>ID</code>, which is a runtime unique identifier
|
||||||
provided by the hypervisor for one given activation of the object,
|
provided by the hypervisor for one given activation of the object,
|
||||||
but it becomes invalid once the resource is deactivated.</li >
|
but it becomes invalid once the resource is deactivated.</li >
|
||||||
<li>by their <code>UUID</code>, a 16 bytes unique identifier
|
<li>by their <code>UUID</code>, a 16 bytes unique identifier
|
||||||
as defined in <a href="http://www.ietf.org/rfc/rfc4122.txt">RFC 4122</a>,
|
as defined in <a href="http://www.ietf.org/rfc/rfc4122.txt">RFC 4122</a>,
|
||||||
which is garanteed to be unique for long term usage and across a
|
which is guaranteed to be unique for long term usage and across a
|
||||||
set of nodes.</li>
|
set of nodes.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@ -2474,7 +2474,7 @@ class docBuilder:
|
|||||||
|
|
||||||
def rebuild(name):
|
def rebuild(name):
|
||||||
if name not in ["libvirt", "libvirt-qemu"]:
|
if name not in ["libvirt", "libvirt-qemu"]:
|
||||||
self.warning("rebuild() failed, unkown module %s") % name
|
self.warning("rebuild() failed, unknown module %s") % name
|
||||||
return None
|
return None
|
||||||
builder = None
|
builder = None
|
||||||
srcdir = os.environ["srcdir"]
|
srcdir = os.environ["srcdir"]
|
||||||
|
@ -317,7 +317,7 @@ Bridge chain: PREROUTING, entries: 1, policy: ACCEPT
|
|||||||
|
|
||||||
Bridge chain: POSTROUTING, entries: 1, policy: ACCEPT
|
Bridge chain: POSTROUTING, entries: 1, policy: ACCEPT
|
||||||
-o vnet0 -j libvirt-O-vnet0</pre>
|
-o vnet0 -j libvirt-O-vnet0</pre>
|
||||||
<p>To keep things managable and easy to follow, the driver will then
|
<p>To keep things manageable and easy to follow, the driver will then
|
||||||
create further sub-chains for each protocol then it needs to match
|
create further sub-chains for each protocol then it needs to match
|
||||||
against:
|
against:
|
||||||
</p>
|
</p>
|
||||||
|
@ -425,7 +425,7 @@
|
|||||||
<dd>
|
<dd>
|
||||||
The optional <code>emulatorpin</code> element specifies which of host
|
The optional <code>emulatorpin</code> element specifies which of host
|
||||||
physical CPUs the "emulator", a subset of a domain not including vcpu,
|
physical CPUs the "emulator", a subset of a domain not including vcpu,
|
||||||
will be pinned to. If this is ommitted, "emulator" is pinned to all
|
will be pinned to. If this is omitted, "emulator" is pinned to all
|
||||||
the physical CPUs by default. It contains one required attribute
|
the physical CPUs by default. It contains one required attribute
|
||||||
<code>cpuset</code> specifying which physical CPUs to pin to.
|
<code>cpuset</code> specifying which physical CPUs to pin to.
|
||||||
</dd>
|
</dd>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
or:
|
or:
|
||||||
</p>
|
</p>
|
||||||
<pre>
|
<pre>
|
||||||
git diff > libvirt-myfeature.patch
|
git diff > libvirt-myfeature.patch
|
||||||
</pre>
|
</pre>
|
||||||
<p>However, the usual workflow of libvirt developer is:</p>
|
<p>However, the usual workflow of libvirt developer is:</p>
|
||||||
<pre>
|
<pre>
|
||||||
@ -554,8 +554,8 @@
|
|||||||
<p>
|
<p>
|
||||||
Usage of the <code>fdopen()</code>, <code>close()</code>, <code>fclose()</code>
|
Usage of the <code>fdopen()</code>, <code>close()</code>, <code>fclose()</code>
|
||||||
APIs is deprecated in libvirt code base to help avoiding double-closing of files
|
APIs is deprecated in libvirt code base to help avoiding double-closing of files
|
||||||
or file descriptors, which is particulary dangerous in a multi-threaded
|
or file descriptors, which is particularly dangerous in a multi-threaded
|
||||||
applications. Instead of these APIs, use the macros from virfile.h
|
application. Instead of these APIs, use the macros from virfile.h
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -150,7 +150,7 @@
|
|||||||
<h2><a name="usagePatterns">Lock usage patterns</a></h2>
|
<h2><a name="usagePatterns">Lock usage patterns</a></h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The following psuedo code illustrates the common
|
The following pseudo code illustrates the common
|
||||||
patterns of operations invoked on the lock
|
patterns of operations invoked on the lock
|
||||||
manager plugin callbacks.
|
manager plugin callbacks.
|
||||||
</p>
|
</p>
|
||||||
|
@ -356,7 +356,7 @@ Note that parameter values must be
|
|||||||
</td>
|
</td>
|
||||||
<td> libssh2 </td>
|
<td> libssh2 </td>
|
||||||
<td>
|
<td>
|
||||||
Path to the known_hosts file to verify the host key agains. LibSSH2
|
Path to the known_hosts file to verify the host key against. LibSSH2
|
||||||
supports OpenSSH-style known_hosts files, although it does not support
|
supports OpenSSH-style known_hosts files, although it does not support
|
||||||
all key types, so using files created by the OpenSSH binary may result
|
all key types, so using files created by the OpenSSH binary may result
|
||||||
into truncating the known_hosts file. It's recommended to use the default
|
into truncating the known_hosts file. It's recommended to use the default
|
||||||
|
@ -126,7 +126,7 @@ class virEventLoopPure:
|
|||||||
self.poll.register(self.pipetrick[0], select.POLLIN)
|
self.poll.register(self.pipetrick[0], select.POLLIN)
|
||||||
|
|
||||||
|
|
||||||
# Calculate when the next timeout is due to occurr, returning
|
# Calculate when the next timeout is due to occur, returning
|
||||||
# the absolute timestamp for the next timeout, or 0 if there is
|
# the absolute timestamp for the next timeout, or 0 if there is
|
||||||
# no timeout due
|
# no timeout due
|
||||||
def next_timeout(self):
|
def next_timeout(self):
|
||||||
|
@ -43,7 +43,7 @@ try:
|
|||||||
dom = conn.lookupByName(name)
|
dom = conn.lookupByName(name)
|
||||||
# Annoyiingly, libvirt prints its own error message here
|
# Annoyiingly, libvirt prints its own error message here
|
||||||
except libvirt.libvirtError:
|
except libvirt.libvirtError:
|
||||||
print "Domain %s is not runing" % name
|
print "Domain %s is not running" % name
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
info = dom.info()
|
info = dom.info()
|
||||||
|
@ -3124,7 +3124,7 @@ typedef enum {
|
|||||||
* virConnectDomainEventCallback:
|
* virConnectDomainEventCallback:
|
||||||
* @conn: virConnect connection
|
* @conn: virConnect connection
|
||||||
* @dom: The domain on which the event occurred
|
* @dom: The domain on which the event occurred
|
||||||
* @event: The specfic virDomainEventType which occurred
|
* @event: The specific virDomainEventType which occurred
|
||||||
* @detail: event specific detail information
|
* @detail: event specific detail information
|
||||||
* @opaque: opaque user data
|
* @opaque: opaque user data
|
||||||
*
|
*
|
||||||
@ -3849,7 +3849,7 @@ typedef void (*virConnectDomainEventWatchdogCallback)(virConnectPtr conn,
|
|||||||
/**
|
/**
|
||||||
* virDomainEventIOErrorAction:
|
* virDomainEventIOErrorAction:
|
||||||
*
|
*
|
||||||
* The action that is to be taken due to an IO error occuring
|
* The action that is to be taken due to an IO error occurring
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIR_DOMAIN_EVENT_IO_ERROR_NONE = 0, /* No action, IO error ignored */
|
VIR_DOMAIN_EVENT_IO_ERROR_NONE = 0, /* No action, IO error ignored */
|
||||||
|
@ -4668,7 +4668,7 @@ virDomainActualNetDefParseXML(xmlNodePtr node,
|
|||||||
int m;
|
int m;
|
||||||
if ((m = virNetDevMacVLanModeTypeFromString(mode)) < 0) {
|
if ((m = virNetDevMacVLanModeTypeFromString(mode)) < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("Unkown mode '%s' in interface <actual> element"),
|
_("Unknown mode '%s' in interface <actual> element"),
|
||||||
mode);
|
mode);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -5036,7 +5036,7 @@ virDomainNetDefParseXML(virCapsPtr caps,
|
|||||||
int m;
|
int m;
|
||||||
if ((m = virNetDevMacVLanModeTypeFromString(mode)) < 0) {
|
if ((m = virNetDevMacVLanModeTypeFromString(mode)) < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("Unkown mode has been specified"));
|
_("Unknown mode has been specified"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
def->data.direct.mode = m;
|
def->data.direct.mode = m;
|
||||||
@ -7042,7 +7042,7 @@ virDomainVideoDefaultRAM(virDomainDefPtr def,
|
|||||||
int type)
|
int type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
/* Wierd, QEMU defaults to 9 MB ??! */
|
/* Weird, QEMU defaults to 9 MB ??! */
|
||||||
case VIR_DOMAIN_VIDEO_TYPE_VGA:
|
case VIR_DOMAIN_VIDEO_TYPE_VGA:
|
||||||
case VIR_DOMAIN_VIDEO_TYPE_CIRRUS:
|
case VIR_DOMAIN_VIDEO_TYPE_CIRRUS:
|
||||||
case VIR_DOMAIN_VIDEO_TYPE_VMVGA:
|
case VIR_DOMAIN_VIDEO_TYPE_VMVGA:
|
||||||
|
@ -2801,7 +2801,7 @@ _virNWFilterDefLoopDetect(virConnectPtr conn,
|
|||||||
* virNWFilterDefLoopDetect:
|
* virNWFilterDefLoopDetect:
|
||||||
* @conn: pointer to virConnect object
|
* @conn: pointer to virConnect object
|
||||||
* @nwfilters : the nwfilters to search
|
* @nwfilters : the nwfilters to search
|
||||||
* @def : the filter definiton that may add a loop and is to be tested
|
* @def : the filter definition that may add a loop and is to be tested
|
||||||
*
|
*
|
||||||
* Detect a loop introduced through the filters being able to
|
* Detect a loop introduced through the filters being able to
|
||||||
* reference each other.
|
* reference each other.
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
/**
|
/**
|
||||||
* ATTRIBUTE_UNUSED:
|
* ATTRIBUTE_UNUSED:
|
||||||
*
|
*
|
||||||
* Macro to flag conciously unused parameters to functions
|
* Macro to flag consciously unused parameters to functions
|
||||||
*/
|
*/
|
||||||
# ifndef ATTRIBUTE_UNUSED
|
# ifndef ATTRIBUTE_UNUSED
|
||||||
# define ATTRIBUTE_UNUSED __attribute__((__unused__))
|
# define ATTRIBUTE_UNUSED __attribute__((__unused__))
|
||||||
|
@ -3091,7 +3091,7 @@ error:
|
|||||||
*
|
*
|
||||||
* This call sets up a stream; subsequent use of stream API is necessary
|
* This call sets up a stream; subsequent use of stream API is necessary
|
||||||
* to transfer actual data, determine how much data is successfully
|
* to transfer actual data, determine how much data is successfully
|
||||||
* transfered, and detect any errors.
|
* transferred, and detect any errors.
|
||||||
*
|
*
|
||||||
* The screen ID is the sequential number of screen. In case of multiple
|
* The screen ID is the sequential number of screen. In case of multiple
|
||||||
* graphics cards, heads are enumerated before devices, e.g. having
|
* graphics cards, heads are enumerated before devices, e.g. having
|
||||||
@ -14683,7 +14683,7 @@ error:
|
|||||||
* @cb: callback to the function handling domain events
|
* @cb: callback to the function handling domain events
|
||||||
*
|
*
|
||||||
* Removes a callback previously registered with the virConnectDomainEventRegister
|
* Removes a callback previously registered with the virConnectDomainEventRegister
|
||||||
* funtion.
|
* function.
|
||||||
*
|
*
|
||||||
* Use of this method is no longer recommended. Instead applications
|
* Use of this method is no longer recommended. Instead applications
|
||||||
* should try virConnectDomainEventUnregisterAny which has a more flexible
|
* should try virConnectDomainEventUnregisterAny which has a more flexible
|
||||||
|
@ -2064,7 +2064,7 @@ phypStorageVolCreateXML(virStoragePoolPtr pool,
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Information not avaliable */
|
/* Information not available */
|
||||||
spdef->allocation = 0;
|
spdef->allocation = 0;
|
||||||
spdef->available = 0;
|
spdef->available = 0;
|
||||||
|
|
||||||
@ -2287,7 +2287,7 @@ phypVolumeGetXMLDesc(virStorageVolPtr vol, unsigned int flags)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Information not avaliable */
|
/* Information not available */
|
||||||
pool.allocation = 0;
|
pool.allocation = 0;
|
||||||
pool.available = 0;
|
pool.available = 0;
|
||||||
|
|
||||||
@ -2767,7 +2767,7 @@ phypGetStoragePoolXMLDesc(virStoragePoolPtr pool, unsigned int flags)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Information not avaliable */
|
/* Information not available */
|
||||||
def.allocation = 0;
|
def.allocation = 0;
|
||||||
def.available = 0;
|
def.available = 0;
|
||||||
|
|
||||||
|
@ -607,7 +607,7 @@ qemuCapsInitGuest(virCapsPtr caps,
|
|||||||
qemuCapsPtr kvmbinCaps = NULL;
|
qemuCapsPtr kvmbinCaps = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
/* Check for existance of base emulator, or alternate base
|
/* Check for existence of base emulator, or alternate base
|
||||||
* which can be used with magic cpu choice
|
* which can be used with magic cpu choice
|
||||||
*/
|
*/
|
||||||
binary = qemuCapsFindBinaryForArch(hostarch, guestarch);
|
binary = qemuCapsFindBinaryForArch(hostarch, guestarch);
|
||||||
|
@ -203,7 +203,7 @@ int qemudLoadDriverConfig(struct qemud_driver *driver,
|
|||||||
size_t len;
|
size_t len;
|
||||||
virConfValuePtr pp;
|
virConfValuePtr pp;
|
||||||
|
|
||||||
/* Calc lenght and check items */
|
/* Calc length and check items */
|
||||||
for (len = 0, pp = p->list; pp; len++, pp = pp->next) {
|
for (len = 0, pp = p->list; pp; len++, pp = pp->next) {
|
||||||
if (pp->type != VIR_CONF_STRING) {
|
if (pp->type != VIR_CONF_STRING) {
|
||||||
VIR_ERROR(_("security_driver be a list of strings"));
|
VIR_ERROR(_("security_driver be a list of strings"));
|
||||||
|
@ -2291,7 +2291,7 @@ int qemuMonitorTextGetPtyPaths(qemuMonitorPtr mon,
|
|||||||
if (!needle)
|
if (!needle)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* id is everthing from the beginning of the line to the ':'
|
/* id is everything from the beginning of the line to the ':'
|
||||||
* find ':' and turn it into a terminator */
|
* find ':' and turn it into a terminator */
|
||||||
char *colon = memchr(pos, ':', needle - pos);
|
char *colon = memchr(pos, ':', needle - pos);
|
||||||
if (colon == NULL)
|
if (colon == NULL)
|
||||||
|
@ -2599,7 +2599,7 @@ static int qemuProcessHook(void *data)
|
|||||||
if (virDomainLockProcessStart(h->driver->lockManager,
|
if (virDomainLockProcessStart(h->driver->lockManager,
|
||||||
h->driver->uri,
|
h->driver->uri,
|
||||||
h->vm,
|
h->vm,
|
||||||
/* QEMU is always pased initially */
|
/* QEMU is always paused initially */
|
||||||
true,
|
true,
|
||||||
&fd) < 0)
|
&fd) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
@ -150,7 +150,7 @@ int virNetSASLContextCheckIdentity(virNetSASLContextPtr ctxt,
|
|||||||
int rv = fnmatch (*wildcards, identity, 0);
|
int rv = fnmatch (*wildcards, identity, 0);
|
||||||
if (rv == 0) {
|
if (rv == 0) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto cleanup; /* Succesful match */
|
goto cleanup; /* Successful match */
|
||||||
}
|
}
|
||||||
if (rv != FNM_NOMATCH) {
|
if (rv != FNM_NOMATCH) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
@ -374,7 +374,7 @@ virNetTLSContextCheckCertDNWhitelist(const char *dname,
|
|||||||
{
|
{
|
||||||
while (*wildcards) {
|
while (*wildcards) {
|
||||||
int ret = fnmatch (*wildcards, dname, 0);
|
int ret = fnmatch (*wildcards, dname, 0);
|
||||||
if (ret == 0) /* Succesful match */
|
if (ret == 0) /* Successful match */
|
||||||
return 1;
|
return 1;
|
||||||
if (ret != FNM_NOMATCH) {
|
if (ret != FNM_NOMATCH) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
|
@ -533,9 +533,9 @@ virStorageBackendDiskPartFormat(virStoragePoolObjPtr pool,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Aligns a new partition to nearest cylinder boundry
|
* Aligns a new partition to nearest cylinder boundary
|
||||||
* when having a msdos partition table type
|
* when having a msdos partition table type
|
||||||
* to avoid any problem with all ready existing
|
* to avoid any problem with already existing
|
||||||
* partitions
|
* partitions
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
@ -558,7 +558,7 @@ virStorageBackendDiskPartBoundries(virStoragePoolObjPtr pool,
|
|||||||
int partType = virStorageBackendDiskPartTypeToCreate(pool);
|
int partType = virStorageBackendDiskPartTypeToCreate(pool);
|
||||||
|
|
||||||
/* how many extra bytes we have since we allocate
|
/* how many extra bytes we have since we allocate
|
||||||
aligned to the cylinder boundry */
|
aligned to the cylinder boundary */
|
||||||
extraBytes = cylinderSize - (allocation % cylinderSize);
|
extraBytes = cylinderSize - (allocation % cylinderSize);
|
||||||
|
|
||||||
for (i = 0 ; i < dev->nfreeExtent ; i++) {
|
for (i = 0 ; i < dev->nfreeExtent ; i++) {
|
||||||
@ -568,7 +568,7 @@ virStorageBackendDiskPartBoundries(virStoragePoolObjPtr pool,
|
|||||||
unsigned long long neededSize = allocation;
|
unsigned long long neededSize = allocation;
|
||||||
|
|
||||||
if (pool->def->source.format == VIR_STORAGE_POOL_DISK_DOS) {
|
if (pool->def->source.format == VIR_STORAGE_POOL_DISK_DOS) {
|
||||||
/* align to cylinder boundry */
|
/* align to cylinder boundary */
|
||||||
neededSize += extraBytes;
|
neededSize += extraBytes;
|
||||||
if ((*start % cylinderSize) > extraBytes) {
|
if ((*start % cylinderSize) > extraBytes) {
|
||||||
/* add an extra cylinder if the offset can't fit within
|
/* add an extra cylinder if the offset can't fit within
|
||||||
@ -617,7 +617,7 @@ virStorageBackendDiskPartBoundries(virStoragePoolObjPtr pool,
|
|||||||
|
|
||||||
*end = *start + alignedAllocation;
|
*end = *start + alignedAllocation;
|
||||||
if (pool->def->source.format == VIR_STORAGE_POOL_DISK_DOS) {
|
if (pool->def->source.format == VIR_STORAGE_POOL_DISK_DOS) {
|
||||||
/* adjust our allocation if start is not at a cylinder boundry */
|
/* adjust our allocation if start is not at a cylinder boundary */
|
||||||
*end -= (*start % cylinderSize);
|
*end -= (*start % cylinderSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ static int virStorageBackendRBDRefreshPool(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
if (len >= 0)
|
if (len >= 0)
|
||||||
break;
|
break;
|
||||||
if (len != -ERANGE) {
|
if (len != -ERANGE) {
|
||||||
VIR_WARN("%s", _("A problem occured while listing RBD images"));
|
VIR_WARN("%s", _("A problem occurred while listing RBD images"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ no_memory:
|
|||||||
/*
|
/*
|
||||||
* Process /proc/self/cgroup figuring out what cgroup
|
* Process /proc/self/cgroup figuring out what cgroup
|
||||||
* sub-path the current process is assigned to. ie not
|
* sub-path the current process is assigned to. ie not
|
||||||
* neccessarily in the root
|
* necessarily in the root
|
||||||
*/
|
*/
|
||||||
static int virCgroupDetectPlacement(virCgroupPtr group)
|
static int virCgroupDetectPlacement(virCgroupPtr group)
|
||||||
{
|
{
|
||||||
@ -2026,7 +2026,7 @@ int virCgroupKillPainfully(virCgroupPtr group)
|
|||||||
else if (i == 8)
|
else if (i == 8)
|
||||||
signum = SIGKILL;
|
signum = SIGKILL;
|
||||||
else
|
else
|
||||||
signum = 0; /* Just check for existance */
|
signum = 0; /* Just check for existence */
|
||||||
|
|
||||||
rc = virCgroupKillRecursive(group, signum);
|
rc = virCgroupKillRecursive(group, signum);
|
||||||
VIR_DEBUG("Iteration %d rc=%d", i, rc);
|
VIR_DEBUG("Iteration %d rc=%d", i, rc);
|
||||||
|
@ -1090,7 +1090,7 @@ virLogOutputToJournald(virLogSource source,
|
|||||||
|
|
||||||
if (strchr(rawstr, '\n')) {
|
if (strchr(rawstr, '\n')) {
|
||||||
uint64_t nstr;
|
uint64_t nstr;
|
||||||
/* If 'str' containes a newline, then we must
|
/* If 'str' contains a newline, then we must
|
||||||
* encode the string length, since we can't
|
* encode the string length, since we can't
|
||||||
* rely on the newline for the field separator
|
* rely on the newline for the field separator
|
||||||
*/
|
*/
|
||||||
|
@ -366,7 +366,7 @@ int virPidFileAcquirePath(const char *path,
|
|||||||
VIR_DEBUG("Pid file '%s' disappeared: %s",
|
VIR_DEBUG("Pid file '%s' disappeared: %s",
|
||||||
path, virStrerror(errno, ebuf, sizeof(ebuf)));
|
path, virStrerror(errno, ebuf, sizeof(ebuf)));
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
/* Someone else must be racing with us, so try agin */
|
/* Someone else must be racing with us, so try again */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,7 +375,7 @@ int virPidFileAcquirePath(const char *path,
|
|||||||
|
|
||||||
VIR_DEBUG("Pid file '%s' was recreated", path);
|
VIR_DEBUG("Pid file '%s' was recreated", path);
|
||||||
VIR_FORCE_CLOSE(fd);
|
VIR_FORCE_CLOSE(fd);
|
||||||
/* Someone else must be racing with us, so try agin */
|
/* Someone else must be racing with us, so try again */
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid);
|
snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid);
|
||||||
|
@ -418,7 +418,7 @@ virSocketAddrMaskByPrefix(const virSocketAddrPtr addr,
|
|||||||
* virSocketAddrBroadcast:
|
* virSocketAddrBroadcast:
|
||||||
* @addr: address that needs to be turned into broadcast address (IPv4 only)
|
* @addr: address that needs to be turned into broadcast address (IPv4 only)
|
||||||
* @netmask: the netmask address
|
* @netmask: the netmask address
|
||||||
* @broadcast: virSocketAddr to recieve the broadcast address
|
* @broadcast: virSocketAddr to receive the broadcast address
|
||||||
*
|
*
|
||||||
* Mask ON the host bits of @addr according to @netmask, turning it
|
* Mask ON the host bits of @addr according to @netmask, turning it
|
||||||
* into a broadcast address.
|
* into a broadcast address.
|
||||||
@ -448,7 +448,7 @@ virSocketAddrBroadcast(const virSocketAddrPtr addr,
|
|||||||
* virSocketAddrBroadcastByPrefix:
|
* virSocketAddrBroadcastByPrefix:
|
||||||
* @addr: address that needs to be turned into broadcast address (IPv4 only)
|
* @addr: address that needs to be turned into broadcast address (IPv4 only)
|
||||||
* @prefix: prefix (# of 1 bits) of netmask to apply
|
* @prefix: prefix (# of 1 bits) of netmask to apply
|
||||||
* @broadcast: virSocketAddr to recieve the broadcast address
|
* @broadcast: virSocketAddr to receive the broadcast address
|
||||||
*
|
*
|
||||||
* Mask off the host bits of @addr according to @prefix, turning it
|
* Mask off the host bits of @addr according to @prefix, turning it
|
||||||
* into a network address.
|
* into a network address.
|
||||||
|
@ -7049,7 +7049,7 @@ vboxCallbackOnMachineRegistered(IVirtualBoxCallback *pThis ATTRIBUTE_UNUSED,
|
|||||||
virDomainEventPtr ev;
|
virDomainEventPtr ev;
|
||||||
|
|
||||||
/* CURRENT LIMITATION: we never get the VIR_DOMAIN_EVENT_UNDEFINED
|
/* CURRENT LIMITATION: we never get the VIR_DOMAIN_EVENT_UNDEFINED
|
||||||
* event becuase the when the machine is de-registered the call
|
* event because the when the machine is de-registered the call
|
||||||
* to vboxDomainLookupByUUID fails and thus we don't get any
|
* to vboxDomainLookupByUUID fails and thus we don't get any
|
||||||
* dom pointer which is necessary (null dom pointer doesn't work)
|
* dom pointer which is necessary (null dom pointer doesn't work)
|
||||||
* to show the VIR_DOMAIN_EVENT_UNDEFINED event
|
* to show the VIR_DOMAIN_EVENT_UNDEFINED event
|
||||||
@ -8747,7 +8747,7 @@ static int vboxStorageVolDelete(virStorageVolPtr vol,
|
|||||||
* is no 128bit width simple item type for a SafeArray to fit a
|
* is no 128bit width simple item type for a SafeArray to fit a
|
||||||
* GUID in. The largest simple type it 64bit width and VirtualBox
|
* GUID in. The largest simple type it 64bit width and VirtualBox
|
||||||
* uses two of this 64bit items to represents one GUID. Therefore,
|
* uses two of this 64bit items to represents one GUID. Therefore,
|
||||||
* we devide the size of the SafeArray by two, to compensate for
|
* we divide the size of the SafeArray by two, to compensate for
|
||||||
* this workaround in VirtualBox */
|
* this workaround in VirtualBox */
|
||||||
machineIds.count /= 2;
|
machineIds.count /= 2;
|
||||||
#endif /* VBOX_API_VERSION >= 2002 */
|
#endif /* VBOX_API_VERSION >= 2002 */
|
||||||
|
@ -174,7 +174,7 @@ xenXMConfigSaveFile(virConnectPtr conn, const char *filename, virDomainDefPtr de
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Caller must hold the lock on 'conn->privateData' before
|
* Caller must hold the lock on 'conn->privateData' before
|
||||||
* calling this funtion
|
* calling this function
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
xenXMConfigCacheRemoveFile(virConnectPtr conn,
|
xenXMConfigCacheRemoveFile(virConnectPtr conn,
|
||||||
@ -198,7 +198,7 @@ xenXMConfigCacheRemoveFile(virConnectPtr conn,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Caller must hold the lock on 'conn->privateData' before
|
* Caller must hold the lock on 'conn->privateData' before
|
||||||
* calling this funtion
|
* calling this function
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
xenXMConfigCacheAddFile(virConnectPtr conn, const char *filename)
|
xenXMConfigCacheAddFile(virConnectPtr conn, const char *filename)
|
||||||
@ -307,7 +307,7 @@ xenXMConfigCacheAddFile(virConnectPtr conn, const char *filename)
|
|||||||
* once every X seconds
|
* once every X seconds
|
||||||
*
|
*
|
||||||
* Caller must hold the lock on 'conn->privateData' before
|
* Caller must hold the lock on 'conn->privateData' before
|
||||||
* calling this funtion
|
* calling this function
|
||||||
*/
|
*/
|
||||||
int xenXMConfigCacheRefresh (virConnectPtr conn) {
|
int xenXMConfigCacheRefresh (virConnectPtr conn) {
|
||||||
xenUnifiedPrivatePtr priv = conn->privateData;
|
xenUnifiedPrivatePtr priv = conn->privateData;
|
||||||
|
@ -811,7 +811,7 @@ xenParseSxprGraphicsOld(virDomainDefPtr def,
|
|||||||
/* For Xen >= 3.0.3, don't generate a fixed port mapping
|
/* For Xen >= 3.0.3, don't generate a fixed port mapping
|
||||||
* because it will almost certainly be wrong ! Just leave
|
* because it will almost certainly be wrong ! Just leave
|
||||||
* it as -1 which lets caller see that the VNC server isn't
|
* it as -1 which lets caller see that the VNC server isn't
|
||||||
* present yet. Subsquent dumps of the XML will eventually
|
* present yet. Subsequent dumps of the XML will eventually
|
||||||
* find the port in XenStore once VNC server has started
|
* find the port in XenStore once VNC server has started
|
||||||
*/
|
*/
|
||||||
if (port == -1 && xendConfigVersion < XEND_CONFIG_VERSION_3_0_3)
|
if (port == -1 && xendConfigVersion < XEND_CONFIG_VERSION_3_0_3)
|
||||||
|
@ -448,7 +448,7 @@ struct testTLSContextData {
|
|||||||
* This code is done when libvirtd starts up, or before
|
* This code is done when libvirtd starts up, or before
|
||||||
* a libvirt client connects. The test is ensuring that
|
* a libvirt client connects. The test is ensuring that
|
||||||
* the creation of virNetTLSContextPtr fails if we
|
* the creation of virNetTLSContextPtr fails if we
|
||||||
* give bogus certs, or suceeds for good certs
|
* give bogus certs, or succeeds for good certs
|
||||||
*/
|
*/
|
||||||
static int testTLSContextInit(const void *opaque)
|
static int testTLSContextInit(const void *opaque)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ Several B<virsh> commands take an optionally scaled integer; if no
|
|||||||
scale is provided, then the default is listed in the command (for
|
scale is provided, then the default is listed in the command (for
|
||||||
historical reasons, some commands default to bytes, while other
|
historical reasons, some commands default to bytes, while other
|
||||||
commands default to kibibytes). The following case-insensitive
|
commands default to kibibytes). The following case-insensitive
|
||||||
suffixes can be used to select a specfic scale:
|
suffixes can be used to select a specific scale:
|
||||||
b, byte byte 1
|
b, byte byte 1
|
||||||
KB kilobyte 1,000
|
KB kilobyte 1,000
|
||||||
k, KiB kibibyte 1,024
|
k, KiB kibibyte 1,024
|
||||||
@ -607,7 +607,7 @@ Availability of these fields depends on hypervisor. Unsupported fields are
|
|||||||
missing from the output. Other fields may appear if communicating with a newer
|
missing from the output. Other fields may appear if communicating with a newer
|
||||||
version of libvirtd.
|
version of libvirtd.
|
||||||
|
|
||||||
B<Explanation of fields> (fields appear in the folowing order):
|
B<Explanation of fields> (fields appear in the following order):
|
||||||
rd_req - count of read operations
|
rd_req - count of read operations
|
||||||
rd_bytes - count of read bytes
|
rd_bytes - count of read bytes
|
||||||
wr_req - count of write operations
|
wr_req - count of write operations
|
||||||
@ -2406,7 +2406,7 @@ is in.
|
|||||||
I<vol-name-or-key-or-path> is the name or key or path of the volume to wipe.
|
I<vol-name-or-key-or-path> is the name or key or path of the volume to wipe.
|
||||||
I<--offset> is the position in the storage volume at which to start writing
|
I<--offset> is the position in the storage volume at which to start writing
|
||||||
the data. I<--length> is an upper bound of the amount of data to be uploaded.
|
the data. I<--length> is an upper bound of the amount of data to be uploaded.
|
||||||
An error will occurr if the I<local-file> is greater than the specified length.
|
An error will occur if the I<local-file> is greater than the specified length.
|
||||||
|
|
||||||
=item B<vol-download> [I<--pool> I<pool-or-uuid>] [I<--offset> I<bytes>]
|
=item B<vol-download> [I<--pool> I<pool-or-uuid>] [I<--offset> I<bytes>]
|
||||||
[I<--length> I<bytes>] I<vol-name-or-key-or-path> I<local-file>
|
[I<--length> I<bytes>] I<vol-name-or-key-or-path> I<local-file>
|
||||||
@ -2654,7 +2654,7 @@ this flag is in use, the command can also take additional I<diskspec>
|
|||||||
arguments to add <disk> elements to the xml. Each <diskspec> is in the
|
arguments to add <disk> elements to the xml. Each <diskspec> is in the
|
||||||
form B<disk[,snapshot=type][,driver=type][,file=name]>. To include a
|
form B<disk[,snapshot=type][,driver=type][,file=name]>. To include a
|
||||||
literal comma in B<disk> or in B<file=name>, escape it with a second
|
literal comma in B<disk> or in B<file=name>, escape it with a second
|
||||||
comma. A literal I<--diskspec> must preceed each B<diskspec> unless
|
comma. A literal I<--diskspec> must precede each B<diskspec> unless
|
||||||
all three of I<domain>, I<name>, and I<description> are also present.
|
all three of I<domain>, I<name>, and I<description> are also present.
|
||||||
For example, a diskspec of "vda,snapshot=external,file=/path/to,,new"
|
For example, a diskspec of "vda,snapshot=external,file=/path/to,,new"
|
||||||
results in the following XML:
|
results in the following XML:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user