From e04912a9f04a26f82f5d7711260ef15e02b4967a Mon Sep 17 00:00:00 2001
From: Jim Meyering
Date: Tue, 5 Feb 2008 19:27:37 +0000
Subject: [PATCH] Remove all trailing blanks; turn on the rule to detect them.
* Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank.
* .x-sc_trailing_blank: New file, to exempt the few binary files.
---
.x-sc_trailing_blank | 3 ++
ChangeLog | 6 +++
Makefile.cfg | 1 -
NEWS | 66 ++++++++++++------------
TODO | 4 +-
autobuild.sh | 2 +-
autogen.sh | 4 +-
docs/ChangeLog.awk | 6 +--
docs/ChangeLog.xsl | 6 +--
docs/Makefile.am | 2 +-
docs/apibuild.py | 36 ++++++-------
docs/devhelp/Makefile.am | 2 +-
docs/devhelp/style.css | 22 ++++----
docs/examples/Makefile.am | 6 +--
docs/examples/examples.xsl | 4 +-
docs/examples/python/README | 4 +-
docs/examples/python/dominfo.py | 2 +-
docs/examples/python/domsave.py | 2 +-
docs/examples/python/domstart.py | 2 +-
docs/examples/suspend.c | 4 +-
docs/format.html | 6 +--
docs/html/libvirt-libvirt.html | 2 +-
docs/index.py | 38 +++++++-------
docs/library.xen | 10 ++--
docs/libvir.html | 48 ++++++++---------
docs/libvirt.rng | 6 +--
docs/newapi.xsl | 2 +-
docs/news.html | 38 +++++++-------
docs/news.xsl | 2 +-
docs/search.php | 6 +--
docs/site.xsl | 4 +-
docs/testnode.xml | 2 +-
docs/uri.html | 2 +-
docs/virsh.pod | 58 ++++++++++-----------
docs/windows.html | 2 +-
include/libvirt/libvirt.h | 10 ++--
include/libvirt/libvirt.h.in | 10 ++--
libvirt.spec.in | 6 +--
po/ru.po | 2 +-
po/sv.po | 6 +--
proxy/libvirt_proxy.c | 16 +++---
python/Makefile.am | 2 +-
python/generator.py | 8 +--
python/libvir.c | 6 +--
python/tests/create.py | 2 +-
python/tests/uuid.py | 2 +-
python/types.c | 2 +-
qemud/libvirtd.sasl | 2 +-
qemud/mdns.c | 4 +-
qemud/mdns.h | 2 +-
src/bridge.c | 6 +--
src/buf.c | 2 +-
src/conf.c | 8 +--
src/driver.h | 4 +-
src/hash.c | 2 +-
src/iptables.c | 12 ++---
src/libvirt.c | 60 +++++++++++-----------
src/openvz_conf.c | 76 +++++++++++++--------------
src/openvz_conf.h | 6 +--
src/openvz_driver.c | 82 ++++++++++++++---------------
src/openvz_driver.h | 2 +-
src/proxy_internal.c | 18 +++----
src/proxy_internal.h | 2 +-
src/qemu.conf | 4 +-
src/qemu_conf.c | 10 ++--
src/qemu_driver.c | 10 ++--
src/remote_internal.c | 28 +++++-----
src/sexpr.c | 2 +-
src/util.c | 12 ++---
src/virsh.c | 2 +-
src/virterror.c | 4 +-
src/xen_internal.c | 20 ++++----
src/xen_unified.c | 16 +++---
src/xend_internal.c | 38 +++++++-------
src/xend_internal.h | 6 +--
src/xm_internal.c | 2 +-
src/xml.c | 10 ++--
src/xmlrpc.c | 32 ++++++------
src/xs_internal.c | 12 ++---
tests/reconnect.c | 2 +-
tests/test_conf.sh | 2 +-
tests/testutils.h | 2 +-
tests/virshtest.c | 6 +--
tests/xml2sexprtest.c | 2 +-
tests/xmlrpctest.c | 88 ++++++++++++++++----------------
virsh.1 | 42 +++++++--------
86 files changed, 565 insertions(+), 557 deletions(-)
create mode 100644 .x-sc_trailing_blank
diff --git a/.x-sc_trailing_blank b/.x-sc_trailing_blank
new file mode 100644
index 00000000000..9c6439d0ac9
--- /dev/null
+++ b/.x-sc_trailing_blank
@@ -0,0 +1,3 @@
+\.png$
+\.fig$
+\.gif$
diff --git a/ChangeLog b/ChangeLog
index 1a62dbadaaa..1ecea31e158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Feb 3 20:26:53 CET 2008 Jim Meyering
+
+ Remove all trailing blanks; turn on the rule to detect them.
+ * Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank.
+ * .x-sc_trailing_blank: New file, to exempt the few binary files.
+
Tue Feb 3 11:21:45 EST 2008 Daniel P. Berrange
* src/xml.c, src/xend_internal.c: Allow use of kernel+initrd
diff --git a/Makefile.cfg b/Makefile.cfg
index dca7c5bacdc..a9578abe9d7 100644
--- a/Makefile.cfg
+++ b/Makefile.cfg
@@ -30,7 +30,6 @@ local-checks-to-skip = \
makefile-check \
sc_no_have_config_h \
sc_tight_scope \
- sc_trailing_blank \
sc_GPL_version \
sc_always_defined_macros \
sc_cast_of_alloca_return_value \
diff --git a/NEWS b/NEWS
index a19fd1876a7..fb4878f68fb 100644
--- a/NEWS
+++ b/NEWS
@@ -17,15 +17,15 @@ Releases
various english fixes (Bruce Montague), OCaml docs links (Richard Jones),
describe the various bindings add Ruby link, Windows support page
(Richard Jones), authentication documentation updates (Daniel Berrange)
-
+
- Bug fixes: NUMA topology error handling (Beth Kon), NUMA topology
cells without CPU (Beth Kon), XML to/from XM bridge config (Daniel
Berrange), XM processing of vnc parameters (Daniel Berrange), Reset
- migration source after failure (Jim Paris), negative integer in config
+ migration source after failure (Jim Paris), negative integer in config
(Tatsuro Enokura), zero terminating string buffer, detect integer
overflow (Jim Meyering), QEmu command line ending fixes (Daniel Berrange),
recursion problem in the daemon (Daniel Berrange), HVM domain with CDRom
- (Masayuki Sunou), off by one error in NUMA cpu count (Beth Kon),
+ (Masayuki Sunou), off by one error in NUMA cpu count (Beth Kon),
avoid xend errors when adding disks (Masayuki Sunou), compile error
(Chris Lalancette), transposed fwrite args (Jim Meyering), compile
without xen and on solaris (Jim Paris), parsing of interface names
@@ -42,17 +42,17 @@ Releases
parameter setting in XM config (Saori Fukuta), credential handling
fixes (Daniel Berrange), fix compatibility with Xen 3.2.0 (Daniel
Berrange)
-
+
- Improvements: /etc/libvirt/qemu.conf configuration for QEMU driver
(Daniel Berrange), NUMA cpu pinning in config files (DV and Saori Fukuta),
CDRom media change in KVM/QEMU (Daniel Berrange), tests for
in configs, pinning inactive domains for Xen 3.0.3
(Saori Fukuta), use gnulib for portability enhancement (Jim Meyering),
--without-libvirtd config option (Richard Jones), Python bindings for
- NUMA, add extra utility functions to buffer (Richard Jones),
+ NUMA, add extra utility functions to buffer (Richard Jones),
separate qparams module for handling query parameters (Richard Jones)
-
- - Code cleanups: remove virDomainRestart from API as it was never used
+
+ - Code cleanups: remove virDomainRestart from API as it was never used
(Richard Jones), constify params for attach/detach APIs (Daniel Berrange),
gcc printf attribute checkings (Jim Meyering), refactoring of device
parsing code and shell escaping (Daniel Berrange), virsh schedinfo
@@ -72,20 +72,20 @@ Releases
port (Richard Jones), disable the proxy if using PolicyKit, readline
availability detection, test libvirtd's config-processing code (Jim
Meyering), use a variable name as sizeof argument (Jim Meyering)
-
+
0.3.3: Sep 30 2007:
- New features: Avahi mDNS daemon export (Daniel Berrange),
- NUMA support (Beth Kan)
- - Documentation: cleanups (Toth Istvan), typos (Eduardo Pereira),
+ NUMA support (Beth Kan)
+ - Documentation: cleanups (Toth Istvan), typos (Eduardo Pereira),
- Bug fixes: memory corruption on large dumps (Masayuki Sunou), fix
virsh vncdisplay command exit (Masayuki Sunou), Fix network stats
TX/RX result (Richard Jones), warning on Xen 3.0.3 (Richard Jones),
missing buffer check in virDomainXMLDevID (Hugh Brock), avoid zombies
when using remote (Daniel Berrange), xend connection error message
(Richard Jones), avoid ssh tty prompt (Daniel Berrange), username
- handling for remote URIs (Fabian Deutsch), fix potential crash
+ handling for remote URIs (Fabian Deutsch), fix potential crash
on multiple input XML tags (Daniel Berrange), Solaris Xen hypercalls
fixup (Mark Johnson)
- Improvements: OpenVZ support (Shuveb Hussain and Anoop Cyriac),
@@ -103,7 +103,7 @@ Releases
0.3.2: Aug 21 2007:
- - New features: KVM migration and save/restore (Jim Paris),
+ - New features: KVM migration and save/restore (Jim Paris),
added API for migration (Richard Jones), added APIs for block device and
interface statistic (Richard Jones).
- Documentation: examples for XML network APIs,
@@ -124,10 +124,10 @@ Releases
speedup of domain queries on Xen (Daniel berrange), augment XML dumps
with interface devices names (Richard Jones), internal API to query
drivers for features (Richard Jones).
-
+
- Cleanups: Improve virNodeGetInfo implentation (Daniel berrange),
general UUID code cleanup (Daniel berrange), fix API generator
- file selection.
+ file selection.
0.3.1: Jul 24 2007:
@@ -161,13 +161,13 @@ Releases
- Secure Remote support (Richard Jones).
See the remote page
of the documentation
-
+
- Documentation: remote support (Richard Jones), description of
the URI connection strings (Richard Jones), update of virsh man
page, matrix of libvirt API/hypervisor support with version
informations (Richard Jones)
- - Bug fixes: examples Makefile.am generation (Richard Jones),
- SetMem fix (Mark Johnson), URI handling and ordering of
+ - Bug fixes: examples Makefile.am generation (Richard Jones),
+ SetMem fix (Mark Johnson), URI handling and ordering of
drivers (Daniel Berrange), fix virsh help without hypervisor (Richard
Jones), id marshalling fix (Daniel Berrange), fix virConnectGetMaxVcpus
on remote (Richard Jones), avoid a realloc leak (Jim Meyering), scheduler
@@ -177,12 +177,12 @@ Releases
XML serialization bugs
- Improvements: QEmu switch to XDR-based protocol (Dan Berrange),
device attach/detach commands (Masayuki Sunou), OCaml bindings
- (Richard Jones), new entry points virDomainGetConnect and
- virNetworkGetConnect useful for bindings (Richard Jones),
+ (Richard Jones), new entry points virDomainGetConnect and
+ virNetworkGetConnect useful for bindings (Richard Jones),
reunitifaction of remote and qemu daemon under a single libvirtd
with a config file (Daniel Berrange)
- Cleanups: parsing of connection URIs (Richard Jones), messages
- from virsh (Saori Fukuta), Coverage files (Daniel Berrange),
+ from virsh (Saori Fukuta), Coverage files (Daniel Berrange),
Solaris fixes (Mark Johnson), avoid [r]index calls (Richard Jones),
release information in Xen backend, virsh cpupin command cleanups
(Masayuki Sunou), xen:/// suppport as standard Xen URI (Richard Jones and
@@ -202,7 +202,7 @@ Releases
0.2.3: Jun 8 2007:
- Documentation: documentation for upcoming remote access (Richard Jones),
virConnectNumOfDefinedDomains doc (Jan Michael), virsh help messages
- for dumpxml and net-dumpxml (Chris Wright),
+ for dumpxml and net-dumpxml (Chris Wright),
- Bug fixes: RelaxNG schemas regexp fix (Robin Green), RelaxNG arch bug
(Mark McLoughlin), large buffers bug fixes (Shigeki Sakamoto), error
on out of memory condition (Shigeki Sakamoto), virshStrdup fix, non-root
@@ -214,7 +214,7 @@ Releases
QEmu memory bug (Daniel Berrange), memory leak fix (Masayuki Sunou),
fix compiler flags (Richard Jones), remove type ioemu on recent Xen
HVM for paravirt drivers (Saori Fukuta), uninitialized string bug
- (Masayuki Sunou), allow init even if the daemon is not running,
+ (Masayuki Sunou), allow init even if the daemon is not running,
XML to config fix (Daniel Berrange)
- Improvements: add a special error class for the test module (Richard
Jones), virConnectGetCapabilities on proxy (Richard Jones), allow
@@ -236,10 +236,10 @@ Releases
0.2.2: Apr 17 2007:
- - Documentation: fix errors due to Amaya (with Simon Hernandez),
+ - Documentation: fix errors due to Amaya (with Simon Hernandez),
virsh uses kB not bytes (Atsushi SAKAI), add command line help to
qemud (Richard Jones), xenUnifiedRegister docs (Atsushi SAKAI),
- strings typos (Nikolay Sivov), ilocalization probalem raised by
+ strings typos (Nikolay Sivov), ilocalization probalem raised by
Thomas Canniot
- Bug fixes: virsh memory values test (Masayuki Sunou), operations without
libvirt_qemud (Atsushi SAKAI), fix spec file (Florian La Roche, Jeremy
@@ -251,26 +251,26 @@ Releases
Berrange), bridged config configuration (Daniel Berrange), erroneous
XEN_V2_OP_SETMAXMEM value (Masayuki Sunou), memory free error (Mark
McLoughlin), set VIR_CONNECT_RO on read-only connections (S.Sakamoto),
- avoid memory explosion bug (Daniel Berrange), integer overflow
+ avoid memory explosion bug (Daniel Berrange), integer overflow
for qemu CPU time (Daniel Berrange), QEMU binary path check (Daniel
Berrange)
- Cleanups: remove some global variables (Jim Meyering), printf-style
functions checks (Jim Meyering), better virsh error messages, increase
compiler checkings and security (Daniel Berrange), virBufferGrow usage
and docs, use calloc instead of malloc/memset, replace all sprintf by
- snprintf, avoid configure clobbering user's CTAGS (Jim Meyering),
+ snprintf, avoid configure clobbering user's CTAGS (Jim Meyering),
signal handler error cleanup (Richard Jones), iptables internal code
claenup (Mark McLoughlin), unified Xen driver (Richard Jones),
cleanup XPath libxml2 calls, IPTables rules tightening (Daniel
- Berrange),
+ Berrange),
- Improvements: more regression tests on XML (Daniel Berrange), Python
bindings now generate exception in error cases (Richard Jones),
Python bindings for vir*GetAutoStart (Daniel Berrange),
handling of CD-Rom device without device name (Nobuhiro Itou),
fix hypervisor call to work with Xen 3.0.5 (Daniel Berrange),
DomainGetOSType for inactive domains (Daniel Berrange), multiple boot
- devices for HVM (Daniel Berrange),
-
+ devices for HVM (Daniel Berrange),
+
0.2.1: Mar 16 2007:
@@ -293,7 +293,7 @@ Releases
Berrange), pointer/int mismatch (Richard Jones), configure time
selection of drivers, libvirt spec hacking (Daniel Berrange)
- Add support for network autostart and init scripts (Mark McLoughlin)
- - New API virConnectGetCapabilities() to detect the virtualization
+ - New API virConnectGetCapabilities() to detect the virtualization
capabilities of a host (Richard Jones)
- Minor improvements: qemud signal handling (Mark), don't shutdown or reboot
domain0 (Kazuki Mizushima), QEmu version autodetection (Daniel Berrange),
@@ -312,7 +312,7 @@ Releases
parsing (Richard Jones)
- Add support for QEmu and KVM virtualization (Daniel Berrange)
- Add support for network configuration (Mark McLoughlin)
- - Minor improvements: regression testing (Daniel Berrange),
+ - Minor improvements: regression testing (Daniel Berrange),
localization string updates
@@ -375,7 +375,7 @@ Releases
- Support for localization of strings using gettext (Daniel Berrange)
- Support for new Xen-3.0.3 cdrom and disk configuration (Daniel Berrange)
- Support for setting VNC port when creating domains with new
- xend config files (Daniel Berrange)
+ xend config files (Daniel Berrange)
- Fix bug when running against xen-3.0.2 hypercalls (Jim Fehlig)
- Fix reconnection problem when talking directly to http xend
@@ -409,7 +409,7 @@ Releases
floppy and cdrom (Daniel Berrange), features block in XML to report/ask
PAE, ACPI, APIC for HVM domains (Daniel Berrange), fail saide-effect
operations when using read-only connection, large improvements to test
- driver (Daniel Berrange)
+ driver (Daniel Berrange)
- documentation: spelling (Daniel Berrange), test driver examples.
diff --git a/TODO b/TODO
index 828d50d8f72..fe3389c8f2c 100644
--- a/TODO
+++ b/TODO
@@ -6,7 +6,7 @@ TODO:
Other environment:
- support for UML
-
+
+ UML control layer should be easy at least for one user but incomplete
Probable TODOs:
@@ -20,7 +20,7 @@ Would-be-nice TODO:
Cleanup:
- now that libxml2 is linked in, drop hash.[ch] and get back to libxml2 ones ?
- same for the buffers
+ same for the buffers
Autoconf:
- On Debian and other platforms, C++ compiler is required because
diff --git a/autobuild.sh b/autobuild.sh
index 06b9c38519f..623b33adfce 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -16,7 +16,7 @@ rm -rf coverage
./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT \
--enable-test-coverage \
- --enable-compile-warnings=error
+ --enable-compile-warnings=error
make
make install
diff --git a/autogen.sh b/autogen.sh
index 3bcffd3d944..788729faeac 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,7 +2,7 @@
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
+test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
@@ -70,6 +70,6 @@ if test x$OBJ_DIR != x; then
fi
$srcdir/configure "$@" && {
- echo
+ echo
echo "Now type 'make' to compile libvirt."
}
diff --git a/docs/ChangeLog.awk b/docs/ChangeLog.awk
index eb0db032453..d9d92fc25b6 100755
--- a/docs/ChangeLog.awk
+++ b/docs/ChangeLog.awk
@@ -7,7 +7,7 @@ function translate(str) {
sub(/[0-9][0-9][0-9][0-9][0-9]+/, "", str)
return(str)
}
-BEGIN {
+BEGIN {
nb_entry = 0
in_entry = 0
in_item = 0
@@ -20,7 +20,7 @@ END {
print ""
}
/^[ \t]*$/ { next }
-/^[A-Za-z0-9]/ {
+/^[A-Za-z0-9]/ {
match($0, "\(.*\) \([A-Z]+\) \([0-9][0-9][0-9][0-9]\) \(.*\) <\(.*\)>", loge)
if (in_item == 1) printf("%s\n", translate(item))
if (in_entry == 1) print " "
@@ -41,7 +41,7 @@ END {
match($0, "[ \t]*. *\(.*\)", loge)
item = loge[1]
}
-/^[ \t]*[a-zA-Z0-9\#]/ {
+/^[ \t]*[a-zA-Z0-9\#]/ {
if (in_item == 1) {
match($0, "[ \t]*\(.*\)[ \t]*", loge)
item = sprintf("%s %s", item, loge[1])
diff --git a/docs/ChangeLog.xsl b/docs/ChangeLog.xsl
index 40ed1566766..00fecf11c02 100644
--- a/docs/ChangeLog.xsl
+++ b/docs/ChangeLog.xsl
@@ -24,7 +24,7 @@
- Main Menu
- - Modules Index
- API Menu
@@ -35,13 +35,13 @@
-
+
-
+
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 5feeab3aa84..3f36697fa9e 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -108,7 +108,7 @@ maintainer-clean-local: clean-local
rebuild: api all
-install-data-local:
+install-data-local:
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
-@INSTALL@ -m 0644 $(srcdir)/libvir.html $(srcdir)/FAQ.html \
$(srcdir)/redhat.gif $(srcdir)/Libxml2-Logo-90x34.gif \
diff --git a/docs/apibuild.py b/docs/apibuild.py
index 429182f3270..44d5e643080 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -311,7 +311,7 @@ def analyze(self):
self.analyze_dict("structs", self.structs)
self.analyze_dict("typedefs", self.typedefs)
self.analyze_dict("macros", self.macros)
-
+
class CLexer:
"""A lexer for the C language, tokenize the input by reading and
analyzing it line by line"""
@@ -343,7 +343,7 @@ def getline(self):
else:
line = line + n
return line
-
+
def getlineno(self):
return self.lineno
@@ -512,12 +512,12 @@ def token(self):
else:
break
self.tokens.append(('name', line[s:i]))
-
+
tok = self.tokens[0]
self.tokens = self.tokens[1:]
self.last = tok
return tok
-
+
class CParser:
"""The C module parser"""
def __init__(self, filename, idx = None):
@@ -672,7 +672,7 @@ def parseTypeComment(self, name, quiet = 0):
l = string.strip(l)
desc = desc + " " + l
del lines[0]
-
+
desc = string.strip(desc)
if quiet == 0:
@@ -742,7 +742,7 @@ def parseMacroComment(self, name, quiet = 0):
l = string.strip(l)
desc = desc + " " + l
del lines[0]
-
+
desc = string.strip(desc)
if quiet == 0:
@@ -843,7 +843,7 @@ def mergeFunctionComment(self, name, description, quiet = 0):
else:
desc = desc + " " + l
del lines[0]
-
+
retdesc = string.strip(retdesc)
desc = string.strip(desc)
@@ -921,7 +921,7 @@ def parsePreproc(self, token):
try:
self.defines.append(apstr)
if string.find(apstr, 'ENABLED') != -1:
- self.conditionals.append("defined(%s)" % apstr)
+ self.conditionals.append("defined(%s)" % apstr)
except:
pass
elif name == "#ifndef":
@@ -929,7 +929,7 @@ def parsePreproc(self, token):
try:
self.defines.append(apstr)
if string.find(apstr, 'ENABLED') != -1:
- self.conditionals.append("!defined(%s)" % apstr)
+ self.conditionals.append("!defined(%s)" % apstr)
except:
pass
elif name == "#if":
@@ -1054,7 +1054,7 @@ def parseTypedef(self, token):
return token
token = self.token()
return token
-
+
#
# Parse a C code block, used for functions it parse till
# the balancing } included
@@ -1089,7 +1089,7 @@ def parseBlock(self, token):
elif oldtok[0] == "name" and oldtok[1][0:7] == "LIBXEN_":
self.index_add_ref(oldtok[1], self.filename,
0, "typedef")
-
+
else:
token = self.token()
return token
@@ -1222,7 +1222,7 @@ def parseType(self, token):
if token == None:
return token
- while token[0] == "name" and (
+ while token[0] == "name" and (
token[1] == "const" or \
token[1] == "unsigned" or \
token[1] == "signed"):
@@ -1238,7 +1238,7 @@ def parseType(self, token):
else:
self.type = self.type + " " + token[1]
- # some read ahead for long long
+ # some read ahead for long long
oldtmp = token
token = self.token()
if token[0] == "name" and token[1] == "long":
@@ -1263,7 +1263,7 @@ def parseType(self, token):
self.type = tmp[1]
else:
self.type = self.type + " " + tmp[1]
-
+
elif token[0] == "name" and token[1] == "struct":
if self.type == "":
self.type = token[1]
@@ -1553,7 +1553,7 @@ def parseGlobal(self, token):
token = self.token()
else:
break
-
+
return token
def parse(self):
@@ -1569,7 +1569,7 @@ def parse(self):
return
self.parseTopComment(self.top_comment)
return self.index
-
+
class docBuilder:
"""A documentation builder"""
@@ -1663,7 +1663,7 @@ def scan(self):
self.headers[file] = None;
self.scanHeaders()
self.scanModules()
-
+
def modulename_file(self, file):
module = os.path.basename(file)
if module[-2:] == '.h':
@@ -1757,7 +1757,7 @@ def serialize_variable(self, output, name):
else:
output.write(" \n" % (
name, self.modulename_file(id.header)))
-
+
def serialize_function(self, output, name):
id = self.idx.functions[name]
if name == debugsym:
diff --git a/docs/devhelp/Makefile.am b/docs/devhelp/Makefile.am
index c599989d60b..ab8e3046e45 100644
--- a/docs/devhelp/Makefile.am
+++ b/docs/devhelp/Makefile.am
@@ -19,7 +19,7 @@ libvirt.devhelp $(HTML_FILES): devhelp.xsl html.xsl $(top_srcdir)/docs/libvirt-a
-@(if [ -x $(XSLTPROC) ] ; then \
$(XSLTPROC) --nonet -o $(srcdir)/libvirt.devhelp devhelp.xsl $(top_srcdir)/docs/libvirt-api.xml ; fi );
-install-data-local:
+install-data-local:
$(mkinstalldirs) $(DESTDIR)$(DEVHELP_DIR)
-@INSTALL@ -m 0644 libvirt.devhelp $(DESTDIR)$(DEVHELP_DIR)
-@INSTALL@ -m 0644 $(EXTRA_FORMAT) $(DESTDIR)$(DEVHELP_DIR)
diff --git a/docs/devhelp/style.css b/docs/devhelp/style.css
index c9cabe78301..dfbb41e34c3 100644
--- a/docs/devhelp/style.css
+++ b/docs/devhelp/style.css
@@ -1,16 +1,16 @@
-.synopsis, .classsynopsis
+.synopsis, .classsynopsis
{
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
-.programlisting
+.programlisting
{
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
-.variablelist
+.variablelist
{
padding: 4px;
margin-left: 3em;
@@ -19,39 +19,39 @@
{
vertical-align: top;
}
-table.navigation
+table.navigation
{
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
-.navigation a
+.navigation a
{
color: #770000;
}
-.navigation a:visited
+.navigation a:visited
{
color: #550000;
}
-.navigation .title
+.navigation .title
{
font-size: 200%;
}
-div.refnamediv
+div.refnamediv
{
margin-top: 2em;
}
-div.gallery-float
+div.gallery-float
{
float: left;
padding: 10px;
}
-div.gallery-float img
+div.gallery-float img
{
border-style: none;
}
-div.gallery-spacer
+div.gallery-spacer
{
clear: both;
}
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am
index 6b5963ebca7..9da4e219e08 100644
--- a/docs/examples/Makefile.am
+++ b/docs/examples/Makefile.am
@@ -22,9 +22,9 @@ install-data-local:
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml \
$(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
-EXTRA_DIST=examples.xsl index.py examples.xml
+EXTRA_DIST=examples.xsl index.py examples.xml
-noinst_PROGRAMS=info1 suspend
+noinst_PROGRAMS=info1 suspend
info1_SOURCES=info1.c
info1_LDFLAGS=
@@ -36,7 +36,7 @@ suspend_LDFLAGS=
suspend_DEPENDENCIES= $(DEPS)
suspend_LDADD= $(LDADDS)
-valgrind:
+valgrind:
$(MAKE) CHECKER='valgrind' tests
tests: $(noinst_PROGRAMS)
diff --git a/docs/examples/examples.xsl b/docs/examples/examples.xsl
index 912528a0c0a..b7ccba218a8 100644
--- a/docs/examples/examples.xsl
+++ b/docs/examples/examples.xsl
@@ -18,9 +18,9 @@
- Home
- - Developer Menu
- - API Menu
- Examples
diff --git a/docs/examples/python/README b/docs/examples/python/README
index d1593f9d1c9..79a3a58fee8 100644
--- a/docs/examples/python/README
+++ b/docs/examples/python/README
@@ -4,8 +4,8 @@ The examples are:
dominfo.py - print information about a running domU based on the results of
virDomainGetInfo and virDomainGetXMLDesc
-domstart.py - create a domU from an XML description if the domU isn't
- running yet
+domstart.py - create a domU from an XML description if the domU isn't
+ running yet
domsave.py - save all running domU's into a directory
domrestore.py - restore domU's from their saved files in a directory
diff --git a/docs/examples/python/dominfo.py b/docs/examples/python/dominfo.py
index d1009ea814d..208de87fb11 100755
--- a/docs/examples/python/dominfo.py
+++ b/docs/examples/python/dominfo.py
@@ -26,7 +26,7 @@ def print_xml(key, ctx, path):
value = res[0].content
print_entry(key, value)
return value
-
+
if not os.access("/proc/xen", os.R_OK):
print 'System is not running a Xen kernel'
sys.exit(1)
diff --git a/docs/examples/python/domsave.py b/docs/examples/python/domsave.py
index eec7f9ea351..35e2c8a5430 100755
--- a/docs/examples/python/domsave.py
+++ b/docs/examples/python/domsave.py
@@ -36,5 +36,5 @@ def usage():
print "done"
else:
print "error %d" % ret
-
+
#pdb.set_trace()
diff --git a/docs/examples/python/domstart.py b/docs/examples/python/domstart.py
index f39eb66c459..64434c414f6 100755
--- a/docs/examples/python/domstart.py
+++ b/docs/examples/python/domstart.py
@@ -18,7 +18,7 @@ def read_domain(fname):
doc = libxml2.parseDoc(xmldesc)
name = doc.xpathNewContext().xpathEval("/domain/name")[0].content
return (name, xmldesc)
-
+
def usage():
print 'Usage: %s domain.xml' % sys.argv[0]
print ' Check that the domain described by DOMAIN.XML is running'
diff --git a/docs/examples/suspend.c b/docs/examples/suspend.c
index 9ca6299e48f..d079acadfaa 100644
--- a/docs/examples/suspend.c
+++ b/docs/examples/suspend.c
@@ -27,7 +27,7 @@ static int
checkDomainState(virDomainPtr dom) {
virDomainInfo info; /* the informations being fetched */
int ret;
-
+
ret = virDomainGetInfo(dom, &info);
if (ret < 0) {
return(-1);
@@ -124,7 +124,7 @@ int main(int argc, char **argv) {
fprintf(stderr, "Failed find a running guest domain\n");
goto error;
}
-
+
SuspendAndResumeDomain(id);
error:
diff --git a/docs/format.html b/docs/format.html
index c3e7ec36a43..c8e9c0919d0 100644
--- a/docs/format.html
+++ b/docs/format.html
@@ -231,8 +231,8 @@
VMs to have outgoing access. Example configs are:
<interface type='user'/>
-<interface type='user'>
- <mac address="11:22:33:44:55:66"/>
+<interface type='user'>
+ <mac address="11:22:33:44:55:66"/>
</interface>
@@ -276,7 +276,7 @@
<source dev='br0'/>
<target dev='vnet7'/>
<mac address="11:22:33:44:55:66"/>
-</interface>
+</interface>
Generic connection to LAN
Provides a means for the administrator to execute an arbitrary script
diff --git a/docs/html/libvirt-libvirt.html b/docs/html/libvirt-libvirt.html
index 5d7478df350..9ab12aee6dd 100644
--- a/docs/html/libvirt-libvirt.html
+++ b/docs/html/libvirt-libvirt.html
@@ -181,7 +181,7 @@
@@ -1082,7 +1082,7 @@ Networking options for QEmu and KVM (added in 0.2.0)
<source dev='br0'/>
<target dev='vnet7'/>
<mac address="11:22:33:44:55:66"/>
-</interface>
+</interface>
Generic connection to LAN
Provides a means for the administrator to execute an arbitrary script
@@ -1678,7 +1678,7 @@
Compiling from source
-
-
Run Cygwin
+
Run Cygwin
setup.exe.
When it starts up it will show a dialog like this:
@@ -3130,7 +3130,7 @@ qemu:///... QEMU and KVM URIs
-The libvirtd
daemon should be started by the
+The libvirtd
daemon should be started by the
init scripts when the machine boots. It should appear as
a process libvirtd --daemon
running as root
in the background and will handle qemu instances on behalf
diff --git a/docs/libvirt.rng b/docs/libvirt.rng
index 5464f17dd65..eb67824c4ff 100644
--- a/docs/libvirt.rng
+++ b/docs/libvirt.rng
@@ -6,7 +6,7 @@
-
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 6fae4c80013..ca2025ec961 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -492,7 +492,7 @@
-
+
Module from
diff --git a/docs/news.html b/docs/news.html
index 758ee45b9c2..1047b8ed660 100644
--- a/docs/news.html
+++ b/docs/news.html
@@ -17,11 +17,11 @@
- Bug fixes: NUMA topology error handling (Beth Kon), NUMA topology
cells without CPU (Beth Kon), XML to/from XM bridge config (Daniel
Berrange), XM processing of vnc parameters (Daniel Berrange), Reset
- migration source after failure (Jim Paris), negative integer in config
+ migration source after failure (Jim Paris), negative integer in config
(Tatsuro Enokura), zero terminating string buffer, detect integer
overflow (Jim Meyering), QEmu command line ending fixes (Daniel Berrange),
recursion problem in the daemon (Daniel Berrange), HVM domain with CDRom
- (Masayuki Sunou), off by one error in NUMA cpu count (Beth Kon),
+ (Masayuki Sunou), off by one error in NUMA cpu count (Beth Kon),
avoid xend errors when adding disks (Masayuki Sunou), compile error
(Chris Lalancette), transposed fwrite args (Jim Meyering), compile
without xen and on solaris (Jim Paris), parsing of interface names
@@ -45,10 +45,10 @@
<shareable/> in configs, pinning inactive domains for Xen 3.0.3
(Saori Fukuta), use gnulib for portability enhancement (Jim Meyering),
--without-libvirtd config option (Richard Jones), Python bindings for
- NUMA, add extra utility functions to buffer (Richard Jones),
+ NUMA, add extra utility functions to buffer (Richard Jones),
separate qparams module for handling query parameters (Richard Jones)
- - Code cleanups: remove virDomainRestart from API as it was never used
+
- Code cleanups: remove virDomainRestart from API as it was never used
(Richard Jones), constify params for attach/detach APIs (Daniel Berrange),
gcc printf attribute checkings (Jim Meyering), refactoring of device
parsing code and shell escaping (Daniel Berrange), virsh schedinfo
@@ -78,7 +78,7 @@
missing buffer check in virDomainXMLDevID (Hugh Brock), avoid zombies
when using remote (Daniel Berrange), xend connection error message
(Richard Jones), avoid ssh tty prompt (Daniel Berrange), username
- handling for remote URIs (Fabian Deutsch), fix potential crash
+ handling for remote URIs (Fabian Deutsch), fix potential crash
on multiple input XML tags (Daniel Berrange), Solaris Xen hypercalls
fixup (Mark Johnson)
- Improvements: OpenVZ support (Shuveb Hussain and Anoop Cyriac),
@@ -93,7 +93,7 @@
statistics
- Code cleanups: virDrvOpenRemoteFlags definition (Richard Jones),
configure tests and output (Daniel Berrange)
-0.3.2: Aug 21 2007
- New features: KVM migration and save/restore (Jim Paris),
+
0.3.2: Aug 21 2007
- New features: KVM migration and save/restore (Jim Paris),
added API for migration (Richard Jones), added APIs for block device and
interface statistic (Richard Jones).
- Documentation: examples for XML network APIs,
@@ -149,8 +149,8 @@
the URI connection strings (Richard Jones), update of virsh man
page, matrix of libvirt API/hypervisor support with version
informations (Richard Jones)
- - Bug fixes: examples Makefile.am generation (Richard Jones),
- SetMem fix (Mark Johnson), URI handling and ordering of
+
- Bug fixes: examples Makefile.am generation (Richard Jones),
+ SetMem fix (Mark Johnson), URI handling and ordering of
drivers (Daniel Berrange), fix virsh help without hypervisor (Richard
Jones), id marshalling fix (Daniel Berrange), fix virConnectGetMaxVcpus
on remote (Richard Jones), avoid a realloc leak (Jim Meyering), scheduler
@@ -160,12 +160,12 @@
XML serialization bugs
- Improvements: QEmu switch to XDR-based protocol (Dan Berrange),
device attach/detach commands (Masayuki Sunou), OCaml bindings
- (Richard Jones), new entry points virDomainGetConnect and
- virNetworkGetConnect useful for bindings (Richard Jones),
+ (Richard Jones), new entry points virDomainGetConnect and
+ virNetworkGetConnect useful for bindings (Richard Jones),
reunitifaction of remote and qemu daemon under a single libvirtd
with a config file (Daniel Berrange)
- Cleanups: parsing of connection URIs (Richard Jones), messages
- from virsh (Saori Fukuta), Coverage files (Daniel Berrange),
+ from virsh (Saori Fukuta), Coverage files (Daniel Berrange),
Solaris fixes (Mark Johnson), avoid [r]index calls (Richard Jones),
release information in Xen backend, virsh cpupin command cleanups
(Masayuki Sunou), xen:/// suppport as standard Xen URI (Richard Jones and
@@ -194,7 +194,7 @@
QEmu memory bug (Daniel Berrange), memory leak fix (Masayuki Sunou),
fix compiler flags (Richard Jones), remove type ioemu on recent Xen
HVM for paravirt drivers (Saori Fukuta), uninitialized string bug
- (Masayuki Sunou), allow init even if the daemon is not running,
+ (Masayuki Sunou), allow init even if the daemon is not running,
XML to config fix (Daniel Berrange)
- Improvements: add a special error class for the test module (Richard
Jones), virConnectGetCapabilities on proxy (Richard Jones), allow
@@ -213,10 +213,10 @@
Jones), export __virGetDomain and __virGetNetwork for libvirtd only
(Richard Jones), ignore old VNC config for HVM on recent Xen (Daniel
Berrange), various code cleanups, -Werror cleanup (Hugh Brock)
-
0.2.2: Apr 17 2007
- Documentation: fix errors due to Amaya (with Simon Hernandez),
+
0.2.2: Apr 17 2007
- Documentation: fix errors due to Amaya (with Simon Hernandez),
virsh uses kB not bytes (Atsushi SAKAI), add command line help to
qemud (Richard Jones), xenUnifiedRegister docs (Atsushi SAKAI),
- strings typos (Nikolay Sivov), ilocalization probalem raised by
+ strings typos (Nikolay Sivov), ilocalization probalem raised by
Thomas Canniot
- Bug fixes: virsh memory values test (Masayuki Sunou), operations without
libvirt_qemud (Atsushi SAKAI), fix spec file (Florian La Roche, Jeremy
@@ -228,14 +228,14 @@
Berrange), bridged config configuration (Daniel Berrange), erroneous
XEN_V2_OP_SETMAXMEM value (Masayuki Sunou), memory free error (Mark
McLoughlin), set VIR_CONNECT_RO on read-only connections (S.Sakamoto),
- avoid memory explosion bug (Daniel Berrange), integer overflow
+ avoid memory explosion bug (Daniel Berrange), integer overflow
for qemu CPU time (Daniel Berrange), QEMU binary path check (Daniel
Berrange)
- Cleanups: remove some global variables (Jim Meyering), printf-style
functions checks (Jim Meyering), better virsh error messages, increase
compiler checkings and security (Daniel Berrange), virBufferGrow usage
and docs, use calloc instead of malloc/memset, replace all sprintf by
- snprintf, avoid configure clobbering user's CTAGS (Jim Meyering),
+ snprintf, avoid configure clobbering user's CTAGS (Jim Meyering),
signal handler error cleanup (Richard Jones), iptables internal code
claenup (Mark McLoughlin), unified Xen driver (Richard Jones),
cleanup XPath libxml2 calls, IPTables rules tightening (Daniel
@@ -246,7 +246,7 @@
handling of CD-Rom device without device name (Nobuhiro Itou),
fix hypervisor call to work with Xen 3.0.5 (Daniel Berrange),
DomainGetOSType for inactive domains (Daniel Berrange), multiple boot
- devices for HVM (Daniel Berrange),
+ devices for HVM (Daniel Berrange),
0.2.1: Mar 16 2007
- Various internal cleanups (Richard Jones,Daniel Berrange,Mark McLoughlin)
- Bug fixes: libvirt_qemud daemon path (Daniel Berrange), libvirt
@@ -267,7 +267,7 @@
Berrange), pointer/int mismatch (Richard Jones), configure time
selection of drivers, libvirt spec hacking (Daniel Berrange)
- Add support for network autostart and init scripts (Mark McLoughlin)
- - New API virConnectGetCapabilities() to detect the virtualization
+
- New API virConnectGetCapabilities() to detect the virtualization
capabilities of a host (Richard Jones)
- Minor improvements: qemud signal handling (Mark), don't shutdown or reboot
domain0 (Kazuki Mizushima), QEmu version autodetection (Daniel Berrange),
@@ -283,7 +283,7 @@
parsing (Richard Jones)
- Add support for QEmu and KVM virtualization (Daniel Berrange)
- Add support for network configuration (Mark McLoughlin)
- - Minor improvements: regression testing (Daniel Berrange),
+
- Minor improvements: regression testing (Daniel Berrange),
localization string updates
0.1.11: Jan 22 2007
- Finish XML <-> XM config files support
- Remove memory leak when freeing virConf objects
diff --git a/docs/news.xsl b/docs/news.xsl
index 781698eb1ef..0a23762a456 100644
--- a/docs/news.xsl
+++ b/docs/news.xsl
@@ -34,7 +34,7 @@
- at
+ at
diff --git a/docs/search.php b/docs/search.php
index 88de549c1bf..e7657903ff6 100644
--- a/docs/search.php
+++ b/docs/search.php
@@ -66,7 +66,7 @@ function queryWord($word) {
$result = mysql_query ("SELECT words.relevance, symbols.name, symbols.type, symbols.module, symbols.descr FROM words, symbols WHERE LCASE(words.name) LIKE LCASE('$word') and words.symbol = symbols.name ORDER BY words.relevance DESC LIMIT 75");
if ($result) {
$j = mysql_num_rows($result);
- if ($j == 0)
+ if ($j == 0)
mysql_free_result($result);
}
logQueryWord($word);
@@ -80,7 +80,7 @@ function queryHTMLWord($word) {
$result = mysql_query ("SELECT relevance, name, id, resource, section FROM wordsHTML WHERE LCASE(name) LIKE LCASE('$word') ORDER BY relevance DESC LIMIT 75");
if ($result) {
$j = mysql_num_rows($result);
- if ($j == 0)
+ if ($j == 0)
mysql_free_result($result);
}
logQueryWord($word);
@@ -94,7 +94,7 @@ function queryArchiveWord($word) {
$result = mysql_query ("SELECT wordsArchive.relevance, wordsArchive.name, 'libvir-list', archives.resource, archives.title FROM wordsArchive, archives WHERE LCASE(wordsArchive.name) LIKE LCASE('$word') and wordsArchive.ID = archives.ID ORDER BY relevance DESC LIMIT 75");
if ($result) {
$j = mysql_num_rows($result);
- if ($j == 0)
+ if ($j == 0)
mysql_free_result($result);
}
logQueryWord($word);
diff --git a/docs/site.xsl b/docs/site.xsl
index 30ee7126036..977432b447e 100644
--- a/docs/site.xsl
+++ b/docs/site.xsl
@@ -263,7 +263,7 @@