mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Fix typos in src/*
Fix minor typos in source comments Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
45e134d6fc
commit
3d5c29a17c
@ -4286,7 +4286,7 @@ Wed Dec 17 21:45:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
|||||||
|
|
||||||
Wed Dec 17 21:41:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
Wed Dec 17 21:41:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/libvirt_sym.version.in: Remove non-existant symbols
|
* src/libvirt_sym.version.in: Remove non-existent symbols
|
||||||
(John Levon)
|
(John Levon)
|
||||||
|
|
||||||
Wed Dec 17 21:35:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
Wed Dec 17 21:35:39 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
@ -12415,7 +12415,7 @@ Thu Jul 12 11:02:17 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
|||||||
|
|
||||||
Thu Jul 12 11:00:17 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Thu Jul 12 11:00:17 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* qemud/qemud.c: Add explicit checks for existance of x509
|
* qemud/qemud.c: Add explicit checks for existence of x509
|
||||||
certificate & key files to get better error reporting than
|
certificate & key files to get better error reporting than
|
||||||
GNU TLS offers when it can't load a file
|
GNU TLS offers when it can't load a file
|
||||||
|
|
||||||
@ -13276,7 +13276,7 @@ Tue Apr 17 11:30:46 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
|||||||
|
|
||||||
Mon Apr 16 09:11:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Mon Apr 16 09:11:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* qemud/conf.c: Check for existance of QEMU binary path. Fix check
|
* qemud/conf.c: Check for existence of QEMU binary path. Fix check
|
||||||
for -no-kqemu flag to work with x86_64 on i386
|
for -no-kqemu flag to work with x86_64 on i386
|
||||||
|
|
||||||
Mon Apr 16 09:09:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Mon Apr 16 09:09:04 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
@ -15020,7 +15020,7 @@ Tue Nov 7 16:33:43 CET 2006 Daniel Veillard <veillard@redhat.com>
|
|||||||
Tue Oct 31 10:31:34 CET 2006 Daniel Veillard <veillard@redhat.com>
|
Tue Oct 31 10:31:34 CET 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/xend_internal.c: when getting informations about a non
|
* src/xend_internal.c: when getting informations about a non
|
||||||
existant domain, it is not a good idea to raise the HTTP
|
existent domain, it is not a good idea to raise the HTTP
|
||||||
404 GET error, the handling is better done somewhere up in
|
404 GET error, the handling is better done somewhere up in
|
||||||
the stack.
|
the stack.
|
||||||
|
|
||||||
|
@ -2424,7 +2424,7 @@ Security:<br/>
|
|||||||
Auto-detect existing cgroup placement (Daniel P. Berrange),<br/>
|
Auto-detect existing cgroup placement (Daniel P. Berrange),<br/>
|
||||||
Add API for checking if a cgroup is valid for a domain (Daniel P. Berrange),<br/>
|
Add API for checking if a cgroup is valid for a domain (Daniel P. Berrange),<br/>
|
||||||
Add a virCgroupNewDetect API for finding cgroup placement (Daniel P. Berrange),<br/>
|
Add a virCgroupNewDetect API for finding cgroup placement (Daniel P. Berrange),<br/>
|
||||||
Add logic for handling systemd-machined non-existance (Daniel P. Berrange),<br/>
|
Add logic for handling systemd-machined non-existence (Daniel P. Berrange),<br/>
|
||||||
Fix handling of DBus errors emitted by the bus itself (Daniel P. Berrange),<br/>
|
Fix handling of DBus errors emitted by the bus itself (Daniel P. Berrange),<br/>
|
||||||
storage: Add connection for autostart storage pool (John Ferlan),<br/>
|
storage: Add connection for autostart storage pool (John Ferlan),<br/>
|
||||||
Adjust 'ceph' authentication secret usage for rbd pool. (John Ferlan),<br/>
|
Adjust 'ceph' authentication secret usage for rbd pool. (John Ferlan),<br/>
|
||||||
@ -3898,7 +3898,7 @@ Security:<br/>
|
|||||||
Use separate symbol file for GNUTLS symbols (Daniel P. Berrange),<br/>
|
Use separate symbol file for GNUTLS symbols (Daniel P. Berrange),<br/>
|
||||||
Apply security label when entering LXC namespaces (Daniel P. Berrange),<br/>
|
Apply security label when entering LXC namespaces (Daniel P. Berrange),<br/>
|
||||||
virCaps: conf: start splitting out irrelevant data (Peter Krempa),<br/>
|
virCaps: conf: start splitting out irrelevant data (Peter Krempa),<br/>
|
||||||
Remove hack using existance of an 'identity' string to disable auth (Daniel P. Berrange),<br/>
|
Remove hack using existence of an 'identity' string to disable auth (Daniel P. Berrange),<br/>
|
||||||
Convert HAVE_SELINUX to WITH_SELINUX (Guido Günther),<br/>
|
Convert HAVE_SELINUX to WITH_SELINUX (Guido Günther),<br/>
|
||||||
capabilities: add NUMA memory information (Dusty Mabe),<br/>
|
capabilities: add NUMA memory information (Dusty Mabe),<br/>
|
||||||
apparmor: use AppArmorSetFDLabel for both imageFD and tapFD (Guannan Ren),<br/>
|
apparmor: use AppArmorSetFDLabel for both imageFD and tapFD (Guannan Ren),<br/>
|
||||||
@ -4014,7 +4014,7 @@ Security:<br/>
|
|||||||
qemu: Don't fail to shutdown domains with unresponsive agent (Michal Privoznik),<br/>
|
qemu: Don't fail to shutdown domains with unresponsive agent (Michal Privoznik),<br/>
|
||||||
qemu: virConnectGetVersion returns bogus value (Viktor Mihajlovski),<br/>
|
qemu: virConnectGetVersion returns bogus value (Viktor Mihajlovski),<br/>
|
||||||
qemu: fix use-after-free when parsing NBD disk (Paolo Bonzini),<br/>
|
qemu: fix use-after-free when parsing NBD disk (Paolo Bonzini),<br/>
|
||||||
Don't try to add non-existant devices to ACL (Daniel P. Berrange),<br/>
|
Don't try to add non-existent devices to ACL (Daniel P. Berrange),<br/>
|
||||||
Fix typo in internal VIR_QEMU_PROCESS_START_AUTODESROY constant (Daniel P. Berrange),<br/>
|
Fix typo in internal VIR_QEMU_PROCESS_START_AUTODESROY constant (Daniel P. Berrange),<br/>
|
||||||
Fix autodestroy of QEMU guests (Daniel P. Berrange),<br/>
|
Fix autodestroy of QEMU guests (Daniel P. Berrange),<br/>
|
||||||
qemu: -numa doesn't (yet) support disjoint range (Eric Blake),<br/>
|
qemu: -numa doesn't (yet) support disjoint range (Eric Blake),<br/>
|
||||||
@ -4367,7 +4367,7 @@ Security:<br/>
|
|||||||
qemu_monitor: Fix tray-open attribute in query-block (Michal Privoznik),<br/>
|
qemu_monitor: Fix tray-open attribute in query-block (Michal Privoznik),<br/>
|
||||||
Fix bogus reporting of KVM support for non-native emulators (Daniel P. Berrange),<br/>
|
Fix bogus reporting of KVM support for non-native emulators (Daniel P. Berrange),<br/>
|
||||||
Move QEMU capabilities initialization later in QEMU startup (Daniel P. Berrange),<br/>
|
Move QEMU capabilities initialization later in QEMU startup (Daniel P. Berrange),<br/>
|
||||||
Fix performance & reliabilty of QMP probing (Daniel P. Berrange),<br/>
|
Fix performance & reliability of QMP probing (Daniel P. Berrange),<br/>
|
||||||
qemu: escape ipv6 for rbd network disk hosts (Josh Durgin),<br/>
|
qemu: escape ipv6 for rbd network disk hosts (Josh Durgin),<br/>
|
||||||
snapshot: fix state after external snapshot of S3 domain (Eric Blake),<br/>
|
snapshot: fix state after external snapshot of S3 domain (Eric Blake),<br/>
|
||||||
python: Fix bindings for virDomainSnapshotGet{Domain,Connect} (Jiri Denemark),<br/>
|
python: Fix bindings for virDomainSnapshotGet{Domain,Connect} (Jiri Denemark),<br/>
|
||||||
@ -6402,7 +6402,7 @@ Security:<br/>
|
|||||||
python: Don't generate bodies for close callback functions (Peter Krempa),<br/>
|
python: Don't generate bodies for close callback functions (Peter Krempa),<br/>
|
||||||
maint: regenerate bootstrap (Eric Blake),<br/>
|
maint: regenerate bootstrap (Eric Blake),<br/>
|
||||||
Remove accidentally committed virNetClientSetEOFNotify symbol (Daniel P. Berrange),<br/>
|
Remove accidentally committed virNetClientSetEOFNotify symbol (Daniel P. Berrange),<br/>
|
||||||
Remove two non-existant NWFilter driver symbols from .syms (Daniel P. Berrange),<br/>
|
Remove two non-existent NWFilter driver symbols from .syms (Daniel P. Berrange),<br/>
|
||||||
tests: reduce length of nodeinfodata test names (Eric Blake),<br/>
|
tests: reduce length of nodeinfodata test names (Eric Blake),<br/>
|
||||||
rpc: remove trailing whitespace character in error string (Guannan Ren),<br/>
|
rpc: remove trailing whitespace character in error string (Guannan Ren),<br/>
|
||||||
po: avoid spurious double spaces in messages (Eric Blake),<br/>
|
po: avoid spurious double spaces in messages (Eric Blake),<br/>
|
||||||
@ -9238,7 +9238,7 @@ Security:<br/>
|
|||||||
Make hvsupport.pl pick up the host device drivers (Matthias Bolte)
|
Make hvsupport.pl pick up the host device drivers (Matthias Bolte)
|
||||||
</li>
|
</li>
|
||||||
<li> Portability:<br/>
|
<li> Portability:<br/>
|
||||||
Explicitely invoke python for API doc generator (Daniel Veillard),<br/>
|
Explicitly invoke python for API doc generator (Daniel Veillard),<br/>
|
||||||
fix virParseVersionString with linux 3.0 (Scott Moser),<br/>
|
fix virParseVersionString with linux 3.0 (Scott Moser),<br/>
|
||||||
Add conditionals to allow build without SASL (Daniel P. Berrange),<br/>
|
Add conditionals to allow build without SASL (Daniel P. Berrange),<br/>
|
||||||
Add missing include of signal.h in virnetsocket.c (Daniel P. Berrange),<br/>
|
Add missing include of signal.h in virnetsocket.c (Daniel P. Berrange),<br/>
|
||||||
@ -14263,7 +14263,7 @@ Security:<br/>
|
|||||||
Factor qemudMonitorSend() out of qemudMonitorCommandExtra() (Mark
|
Factor qemudMonitorSend() out of qemudMonitorCommandExtra() (Mark
|
||||||
McLoughlin), Fix cgroup compile warnings (Daniel P. Berrange),
|
McLoughlin), Fix cgroup compile warnings (Daniel P. Berrange),
|
||||||
Fix misc build problems due to new drivers (Daniel P. Berrange),
|
Fix misc build problems due to new drivers (Daniel P. Berrange),
|
||||||
Fix wierd build problems due to autopoint overwriting gnulib m4
|
Fix weird build problems due to autopoint overwriting gnulib m4
|
||||||
(Daniel P. Berrange), Makefile.cfg: Rename to... (Jim Meyering),
|
(Daniel P. Berrange), Makefile.cfg: Rename to... (Jim Meyering),
|
||||||
make .gnulib a submodule (Jim Meyering), make "make syntax-check"
|
make .gnulib a submodule (Jim Meyering), make "make syntax-check"
|
||||||
consistent with "git diff --check" (Jim Meyering), Minor qemu
|
consistent with "git diff --check" (Jim Meyering), Minor qemu
|
||||||
|
@ -3109,7 +3109,7 @@ esxDomainDefineXML(virConnectPtr conn, const char *xml)
|
|||||||
/*
|
/*
|
||||||
* Build VMX datastore URL. Use the source of the first file-based harddisk
|
* Build VMX datastore URL. Use the source of the first file-based harddisk
|
||||||
* to deduce the datastore and path for the VMX file. Don't just use the
|
* to deduce the datastore and path for the VMX file. Don't just use the
|
||||||
* first disk, because it may be CDROM disk and ISO images are normaly not
|
* first disk, because it may be CDROM disk and ISO images are normally not
|
||||||
* located in the virtual machine's directory. This approach to deduce the
|
* located in the virtual machine's directory. This approach to deduce the
|
||||||
* datastore isn't perfect but should work in the majority of cases.
|
* datastore isn't perfect but should work in the majority of cases.
|
||||||
*/
|
*/
|
||||||
|
@ -460,7 +460,7 @@ esxStorageVolLookupByName(virStoragePoolPtr pool,
|
|||||||
scsiLun = scsiLun->_next) {
|
scsiLun = scsiLun->_next) {
|
||||||
if (STREQ(scsiLun->deviceName, name)) {
|
if (STREQ(scsiLun->deviceName, name)) {
|
||||||
/*
|
/*
|
||||||
* ScsiLun provides an UUID field that is unique accross
|
* ScsiLun provides a UUID field that is unique across
|
||||||
* multiple servers. But this field length is ~55 characters
|
* multiple servers. But this field length is ~55 characters
|
||||||
* compute MD5 hash to transform it to an acceptable
|
* compute MD5 hash to transform it to an acceptable
|
||||||
* libvirt format
|
* libvirt format
|
||||||
|
@ -386,7 +386,7 @@ esxStorageVolLookupByPath(virConnectPtr conn, const char *path)
|
|||||||
/*
|
/*
|
||||||
* FIXME: calling backends blindly may set unwanted error codes
|
* FIXME: calling backends blindly may set unwanted error codes
|
||||||
*
|
*
|
||||||
* VMFS Datastore path follows cannonical format i.e.:
|
* VMFS Datastore path follows canonical format i.e.:
|
||||||
* [<datastore_name>] <file_path>
|
* [<datastore_name>] <file_path>
|
||||||
* WHEREAS
|
* WHEREAS
|
||||||
* iSCSI LUNs device path follows normal linux path convention
|
* iSCSI LUNs device path follows normal linux path convention
|
||||||
|
@ -151,7 +151,7 @@ netcfStateReload(void)
|
|||||||
/*
|
/*
|
||||||
* Get a minimal virInterfaceDef containing enough metadata
|
* Get a minimal virInterfaceDef containing enough metadata
|
||||||
* for access control checks to be performed. Currently
|
* for access control checks to be performed. Currently
|
||||||
* this implies existance of name and mac address attributes
|
* this implies existence of name and mac address attributes
|
||||||
*/
|
*/
|
||||||
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
|
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
|
||||||
netcfGetMinimalDefForDevice(struct netcf_if *iface)
|
netcfGetMinimalDefForDevice(struct netcf_if *iface)
|
||||||
|
@ -66,7 +66,7 @@ virUdevStatusString(virUdevStatus status)
|
|||||||
/*
|
/*
|
||||||
* Get a minimal virInterfaceDef containing enough metadata
|
* Get a minimal virInterfaceDef containing enough metadata
|
||||||
* for access control checks to be performed. Currently
|
* for access control checks to be performed. Currently
|
||||||
* this implies existance of name and mac address attributes
|
* this implies existence of name and mac address attributes
|
||||||
*/
|
*/
|
||||||
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
|
static virInterfaceDef * ATTRIBUTE_NONNULL(1)
|
||||||
udevGetMinimalDefForDevice(struct udev_device *dev)
|
udevGetMinimalDefForDevice(struct udev_device *dev)
|
||||||
|
@ -77,7 +77,7 @@ const VIR_LOCK_SPACE_PROTOCOL_PROGRAM = 0xEA7BEEF;
|
|||||||
const VIR_LOCK_SPACE_PROTOCOL_PROGRAM_VERSION = 1;
|
const VIR_LOCK_SPACE_PROTOCOL_PROGRAM_VERSION = 1;
|
||||||
|
|
||||||
enum virLockSpaceProtocolProcedure {
|
enum virLockSpaceProtocolProcedure {
|
||||||
/* Each function must be preceeded by a comment providing one or
|
/* Each function must be preceded by a comment providing one or
|
||||||
* more annotations:
|
* more annotations:
|
||||||
*
|
*
|
||||||
* - @generate: none|client|server|both
|
* - @generate: none|client|server|both
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010, 2014 Red Hat, Inc.
|
||||||
* Copyright IBM Corp. 2008
|
* Copyright IBM Corp. 2008
|
||||||
*
|
*
|
||||||
* lxc_conf.c: config functions for managing linux containers
|
* lxc_conf.c: config functions for managing linux containers
|
||||||
@ -242,7 +242,7 @@ virLXCLoadDriverConfig(virLXCDriverConfigPtr cfg,
|
|||||||
virConfPtr conf;
|
virConfPtr conf;
|
||||||
virConfValuePtr p;
|
virConfValuePtr p;
|
||||||
|
|
||||||
/* Avoid error from non-existant or unreadable file. */
|
/* Avoid error from non-existent or unreadable file. */
|
||||||
if (access(filename, R_OK) == -1)
|
if (access(filename, R_OK) == -1)
|
||||||
goto done;
|
goto done;
|
||||||
conf = virConfReadFile(filename, 0);
|
conf = virConfReadFile(filename, 0);
|
||||||
|
@ -215,7 +215,7 @@ openvzReadNetworkConf(virDomainDefPtr def,
|
|||||||
/*parse routing network configuration*
|
/*parse routing network configuration*
|
||||||
* Sample from config:
|
* Sample from config:
|
||||||
* IP_ADDRESS="1.1.1.1 1.1.1.2"
|
* IP_ADDRESS="1.1.1.1 1.1.1.2"
|
||||||
* splited IPs by space
|
* IPs split by space
|
||||||
*/
|
*/
|
||||||
ret = openvzReadVPSConfigParam(veid, "IP_ADDRESS", &temp);
|
ret = openvzReadVPSConfigParam(veid, "IP_ADDRESS", &temp);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
@ -242,8 +242,8 @@ openvzReadNetworkConf(virDomainDefPtr def,
|
|||||||
|
|
||||||
/*parse bridge devices*/
|
/*parse bridge devices*/
|
||||||
/*Sample from config:
|
/*Sample from config:
|
||||||
*NETIF="ifname=eth10,mac=00:18:51:C1:05:EE,host_ifname=veth105.10,host_mac=00:18:51:8F:D9:F3"
|
* NETIF="ifname=eth10,mac=00:18:51:C1:05:EE,host_ifname=veth105.10,host_mac=00:18:51:8F:D9:F3"
|
||||||
*devices splited by ';'
|
*devices split by ';'
|
||||||
*/
|
*/
|
||||||
ret = openvzReadVPSConfigParam(veid, "NETIF", &temp);
|
ret = openvzReadVPSConfigParam(veid, "NETIF", &temp);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* parallels_network.c: core privconn functions for managing
|
* parallels_network.c: core privconn functions for managing
|
||||||
* Parallels Cloud Server hosts
|
* Parallels Cloud Server hosts
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Red Hat, Inc.
|
* Copyright (C) 2013-2014 Red Hat, Inc.
|
||||||
* Copyright (C) 2012 Parallels, Inc.
|
* Copyright (C) 2012 Parallels, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -201,7 +201,7 @@ parallelsLoadNetwork(parallelsConnPtr privconn, virJSONValuePtr jobj)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Network names are unique in Parallels Cloud Server, so we can make
|
/* Network names are unique in Parallels Cloud Server, so we can make
|
||||||
* an UUID from it */
|
* a UUID from it */
|
||||||
md5_buffer(tmp, strlen(tmp), md5);
|
md5_buffer(tmp, strlen(tmp), md5);
|
||||||
memcpy(def->uuid, md5, VIR_UUID_BUFLEN);
|
memcpy(def->uuid, md5, VIR_UUID_BUFLEN);
|
||||||
def->uuid_specified = 1;
|
def->uuid_specified = 1;
|
||||||
|
@ -2296,7 +2296,7 @@ virQEMUCapsProbeQMPKVMState(virQEMUCapsPtr qemuCaps,
|
|||||||
|
|
||||||
/* The QEMU_CAPS_KVM flag was initially set according to the QEMU
|
/* The QEMU_CAPS_KVM flag was initially set according to the QEMU
|
||||||
* reporting the recognition of 'query-kvm' QMP command. That merely
|
* reporting the recognition of 'query-kvm' QMP command. That merely
|
||||||
* indicates existance of the command though, not whether KVM support
|
* indicates existence of the command though, not whether KVM support
|
||||||
* is actually available, nor whether it is enabled by default.
|
* is actually available, nor whether it is enabled by default.
|
||||||
*
|
*
|
||||||
* If it is not present we need to clear the flag, and if it is
|
* If it is not present we need to clear the flag, and if it is
|
||||||
|
@ -527,7 +527,7 @@ qemuSetupDevicesCgroup(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
for (i = 0; deviceACL[i] != NULL; i++) {
|
for (i = 0; deviceACL[i] != NULL; i++) {
|
||||||
if (!virFileExists(deviceACL[i])) {
|
if (!virFileExists(deviceACL[i])) {
|
||||||
VIR_DEBUG("Ignoring non-existant device %s", deviceACL[i]);
|
VIR_DEBUG("Ignoring non-existent device %s", deviceACL[i]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
# define QEMU_FSDEV_HOST_PREFIX "fsdev-"
|
# define QEMU_FSDEV_HOST_PREFIX "fsdev-"
|
||||||
|
|
||||||
/* These are only defaults, they can be changed now in qemu.conf and
|
/* These are only defaults, they can be changed now in qemu.conf and
|
||||||
* explicitely specified port is checked against these two (makes
|
* explicitly specified port is checked against these two (makes
|
||||||
* sense to limit the values).
|
* sense to limit the values).
|
||||||
*
|
*
|
||||||
* This limitation is mentioned in qemu.conf, so bear in mind that the
|
* This limitation is mentioned in qemu.conf, so bear in mind that the
|
||||||
|
@ -1304,7 +1304,7 @@ qemuGetProcessInfo(unsigned long long *cpuTime, int *lastCpu, long *vm_rss,
|
|||||||
/* We got jiffies
|
/* We got jiffies
|
||||||
* We want nanoseconds
|
* We want nanoseconds
|
||||||
* _SC_CLK_TCK is jiffies per second
|
* _SC_CLK_TCK is jiffies per second
|
||||||
* So calulate thus....
|
* So calculate thus....
|
||||||
*/
|
*/
|
||||||
if (cpuTime)
|
if (cpuTime)
|
||||||
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long long)sysconf(_SC_CLK_TCK);
|
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long long)sysconf(_SC_CLK_TCK);
|
||||||
@ -2934,7 +2934,7 @@ qemuDomainSaveMemory(virQEMUDriverPtr driver,
|
|||||||
* we don't have an explicit offset in the header, so we fake
|
* we don't have an explicit offset in the header, so we fake
|
||||||
* it by padding the XML string with NUL bytes. Additionally,
|
* it by padding the XML string with NUL bytes. Additionally,
|
||||||
* we want to ensure that virDomainSaveImageDefineXML can supply
|
* we want to ensure that virDomainSaveImageDefineXML can supply
|
||||||
* slightly larger XML, so we add a miminum padding prior to
|
* slightly larger XML, so we add a minimum padding prior to
|
||||||
* rounding out to page boundaries.
|
* rounding out to page boundaries.
|
||||||
*/
|
*/
|
||||||
pad = 1024;
|
pad = 1024;
|
||||||
@ -12509,7 +12509,7 @@ qemuDomainSnapshotPrepareDiskInternal(virConnectPtr conn,
|
|||||||
{
|
{
|
||||||
int actualType;
|
int actualType;
|
||||||
|
|
||||||
/* active disks are handeled by qemu itself so no need to worry about those */
|
/* active disks are handled by qemu itself so no need to worry about those */
|
||||||
if (active)
|
if (active)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -693,7 +693,8 @@ static int virNetTLSContextLoadCredentials(virNetTLSContextPtr ctxt,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
VIR_DEBUG("Skipping non-existant cert %s key %s on client", cert, key);
|
VIR_DEBUG("Skipping non-existent cert %s key %s on client",
|
||||||
|
cert, key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ virSecuritySELinuxMCSFind(virSecurityManagerPtr mgr,
|
|||||||
* the category part, since that's what we're really
|
* the category part, since that's what we're really
|
||||||
* interested in. This won't work in Enforcing mode,
|
* interested in. This won't work in Enforcing mode,
|
||||||
* but will prevent libvirtd breaking in Permissive
|
* but will prevent libvirtd breaking in Permissive
|
||||||
* mode when run with a wierd process label.
|
* mode when run with a weird process label.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
virSecuritySELinuxMCSGetProcessRange(char **sens,
|
virSecuritySELinuxMCSGetProcessRange(char **sens,
|
||||||
|
@ -482,7 +482,7 @@ virStorageGenerateSecretUUID(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("too many conflicts when generating an uuid"));
|
_("too many conflicts when generating a uuid"));
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1196,7 +1196,7 @@ virStorageBackendFileSystemVolRefresh(virConnectPtr conn,
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Load any secrets if posible */
|
/* Load any secrets if possible */
|
||||||
if (vol->target.encryption &&
|
if (vol->target.encryption &&
|
||||||
vol->target.encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_QCOW &&
|
vol->target.encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_QCOW &&
|
||||||
vol->target.encryption->nsecrets == 0) {
|
vol->target.encryption->nsecrets == 0) {
|
||||||
|
@ -1337,7 +1337,7 @@ static int umlGetProcessInfo(unsigned long long *cpuTime, pid_t pid)
|
|||||||
/* We got jiffies
|
/* We got jiffies
|
||||||
* We want nanoseconds
|
* We want nanoseconds
|
||||||
* _SC_CLK_TCK is jiffies per second
|
* _SC_CLK_TCK is jiffies per second
|
||||||
* So calulate thus....
|
* So calculate thus....
|
||||||
*/
|
*/
|
||||||
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long long)sysconf(_SC_CLK_TCK);
|
*cpuTime = 1000ull * 1000ull * 1000ull * (usertime + systime) / (unsigned long long)sysconf(_SC_CLK_TCK);
|
||||||
|
|
||||||
|
@ -545,7 +545,7 @@ int virFileUpdatePerm(const char *path,
|
|||||||
|
|
||||||
# if HAVE_DECL_LOOP_CTL_GET_FREE
|
# if HAVE_DECL_LOOP_CTL_GET_FREE
|
||||||
|
|
||||||
/* virFileLoopDeviceOpenLoopCtl() returns -1 when a real failure has occured
|
/* virFileLoopDeviceOpenLoopCtl() returns -1 when a real failure has occurred
|
||||||
* while in the process of allocating or opening the loop device. On success
|
* while in the process of allocating or opening the loop device. On success
|
||||||
* we return 0 and modify the fd to the appropriate file descriptor.
|
* we return 0 and modify the fd to the appropriate file descriptor.
|
||||||
* If /dev/loop-control does not exist, we return 0 and do not set fd. */
|
* If /dev/loop-control does not exist, we return 0 and do not set fd. */
|
||||||
|
@ -758,7 +758,7 @@ virStringSearch(const char *str,
|
|||||||
* @oldneedle: the substring to locate
|
* @oldneedle: the substring to locate
|
||||||
* @newneedle: the substring to insert
|
* @newneedle: the substring to insert
|
||||||
*
|
*
|
||||||
* Search @haystack and replace all occurences of @oldneedle with @newneedle.
|
* Search @haystack and replace all occurrences of @oldneedle with @newneedle.
|
||||||
*
|
*
|
||||||
* Returns: a new string with all the replacements, or NULL on error
|
* Returns: a new string with all the replacements, or NULL on error
|
||||||
*/
|
*/
|
||||||
|
@ -392,7 +392,7 @@ vmwareVmxPath(virDomainDefPtr vmdef, char **vmxPath)
|
|||||||
/*
|
/*
|
||||||
* Build VMX URL. Use the source of the first file-based harddisk
|
* Build VMX URL. Use the source of the first file-based harddisk
|
||||||
* to deduce the path for the VMX file. Don't just use the
|
* to deduce the path for the VMX file. Don't just use the
|
||||||
* first disk, because it may be CDROM disk and ISO images are normaly not
|
* first disk, because it may be CDROM disk and ISO images are normally not
|
||||||
* located in the virtual machine's directory. This approach
|
* located in the virtual machine's directory. This approach
|
||||||
* isn't perfect but should work in the majority of cases.
|
* isn't perfect but should work in the majority of cases.
|
||||||
*/
|
*/
|
||||||
|
@ -597,7 +597,7 @@ sexpr_get(virConnectPtr xend, const char *fmt, ...)
|
|||||||
* @sexpr: an S-Expression
|
* @sexpr: an S-Expression
|
||||||
* @name: the name for the value
|
* @name: the name for the value
|
||||||
*
|
*
|
||||||
* convenience function to lookup an UUID value from the S-Expression
|
* convenience function to lookup a UUID value from the S-Expression
|
||||||
*
|
*
|
||||||
* Returns a -1 on error, 0 on success
|
* Returns a -1 on error, 0 on success
|
||||||
*/
|
*/
|
||||||
|
@ -355,7 +355,7 @@ xenStoreDomainGetVNCPort(virConnectPtr conn, int domid)
|
|||||||
* serial console is attached.
|
* serial console is attached.
|
||||||
*
|
*
|
||||||
* Returns the path to the serial console. It is the callers
|
* Returns the path to the serial console. It is the callers
|
||||||
* responsibilty to free() the return string. Returns NULL
|
* responsibility to free() the return string. Returns NULL
|
||||||
* on error
|
* on error
|
||||||
*
|
*
|
||||||
* The caller must hold the lock on the privateData
|
* The caller must hold the lock on the privateData
|
||||||
@ -376,7 +376,7 @@ xenStoreDomainGetConsolePath(virConnectPtr conn, int domid)
|
|||||||
* serial console is attached.
|
* serial console is attached.
|
||||||
*
|
*
|
||||||
* Returns the path to the serial console. It is the callers
|
* Returns the path to the serial console. It is the callers
|
||||||
* responsibilty to free() the return string. Returns NULL
|
* responsibility to free() the return string. Returns NULL
|
||||||
* on error
|
* on error
|
||||||
*
|
*
|
||||||
* The caller must hold the lock on the privateData
|
* The caller must hold the lock on the privateData
|
||||||
|
@ -56,7 +56,7 @@ uuid="00000000-0000-0000-0000-0123456789ab"
|
|||||||
disk1="$tmpdir/1.img"
|
disk1="$tmpdir/1.img"
|
||||||
disk2="$tmpdir/2.img"
|
disk2="$tmpdir/2.img"
|
||||||
relative_disk1="$tmpdir/./../`basename $tmpdir`//./1.img"
|
relative_disk1="$tmpdir/./../`basename $tmpdir`//./1.img"
|
||||||
nonexistent="$tmpdir/nonexistant.img"
|
nonexistent="$tmpdir/nonexistent.img"
|
||||||
bad_disk="/etc/passwd"
|
bad_disk="/etc/passwd"
|
||||||
valid_uuid="libvirt-$uuid"
|
valid_uuid="libvirt-$uuid"
|
||||||
nonexistent_uuid="libvirt-00000000-0000-0000-0000-000000000001"
|
nonexistent_uuid="libvirt-00000000-0000-0000-0000-000000000001"
|
||||||
|
@ -2936,7 +2936,7 @@ B<blockresize> for live resizing.
|
|||||||
The following commands manipulate "secrets" (e.g. passwords, passphrases and
|
The following commands manipulate "secrets" (e.g. passwords, passphrases and
|
||||||
encryption keys). Libvirt can store secrets independently from their use, and
|
encryption keys). Libvirt can store secrets independently from their use, and
|
||||||
other objects (e.g. volumes or domains) can refer to the secrets for encryption
|
other objects (e.g. volumes or domains) can refer to the secrets for encryption
|
||||||
or possibly other uses. Secrets are identified using an UUID. See
|
or possibly other uses. Secrets are identified using a UUID. See
|
||||||
L<http://libvirt.org/formatsecret.html> for documentation of the XML format
|
L<http://libvirt.org/formatsecret.html> for documentation of the XML format
|
||||||
used to represent properties of secrets.
|
used to represent properties of secrets.
|
||||||
|
|
||||||
@ -2946,7 +2946,7 @@ used to represent properties of secrets.
|
|||||||
|
|
||||||
Create a secret with the properties specified in I<file>, with no associated
|
Create a secret with the properties specified in I<file>, with no associated
|
||||||
secret value. If I<file> does not specify a UUID, choose one automatically.
|
secret value. If I<file> does not specify a UUID, choose one automatically.
|
||||||
If I<file> specifies an UUID of an existing secret, replace its properties by
|
If I<file> specifies a UUID of an existing secret, replace its properties by
|
||||||
properties defined in I<file>, without affecting the secret value.
|
properties defined in I<file>, without affecting the secret value.
|
||||||
|
|
||||||
=item B<secret-dumpxml> I<secret>
|
=item B<secret-dumpxml> I<secret>
|
||||||
|
Loading…
Reference in New Issue
Block a user