]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agoFix some stray leading spaces in Changelog entry for my last commit
David L. Leskovec [Tue, 13 May 2008 06:51:42 +0000 (06:51 +0000)]
Fix some stray leading spaces in Changelog entry for my last commit

16 years agoEnable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup
David L. Leskovec [Tue, 13 May 2008 06:30:58 +0000 (06:30 +0000)]
Enable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup
Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>

* qemud/qemud.c: get siginfo with signals, distribute to drivers that
    register a handler
* src/driver.h: add sighandler function to state driver table
* src/internal.h: define virStateSigDispatcher functions
* src/libvirt.c: add __virStateSigDispatcher function
* src/libvirt_sym.version: add __virStateSigDispatcher
* src/lxc_driver.c: add sig handler function, cleanup vm when sigchld
    received from container process
* src/qemu_driver.c: NULL for sig handler (no handler) in state driver
* src/remote_internal.c: NULL for sig handler (no handler) in state driver
* src/storage_driver.c: NULL for sig handler (no handler) in state driver

17 years agoAdd support for -drive QEMU syntax, and virtio bus / disk type
Daniel P. Berrange [Fri, 9 May 2008 16:41:19 +0000 (16:41 +0000)]
Add support for -drive QEMU syntax, and virtio bus / disk type

17 years agoAdd new files from gnulib.
Jim Meyering [Fri, 9 May 2008 14:03:15 +0000 (14:03 +0000)]
Add new files from gnulib.

* gnulib/lib/c-ctype.c: New file.
* gnulib/lib/c-ctype.h: Likewise.
* gnulib/tests/test-c-ctype.c: Likewise.
* gnulib/tests/test-vc-list-files-git.sh: Likewise.
* gnulib/tests/test-vc-list-files-cvs.sh: Likewise.

17 years agoUse gnulib's c-ctype.h, not <ctype.h>.
Jim Meyering [Fri, 9 May 2008 13:50:14 +0000 (13:50 +0000)]
Use gnulib's c-ctype.h, not <ctype.h>.

# Convert uses of isspace to c_isspace, isdigit to c_isdigit, etc.
re=$(man isspace|grep is.....,.is|sed 's/ -.*//' \
  |tr -s ', \n' \||sed 's/^|//;s/|$//')
git grep -l -E "$re"|grep -Ev 'Chan|gnulib' \
  |xargs perl -pi -e 's/\b('"$re"')\b/c_$1/g'
# Remove all uses of to_uchar
git grep -l to_uchar|xargs perl -pi -e 's/to_uchar\((.*?)\)/$1/g'
* src/util.h (to_uchar): Remove definition.
(TOLOWER): Remove definition.
(__virMacAddrCompare): Use c_tolower, not TOLOWER.
Globally:
  Where needed, change <ctype.h> to <c-ctype.h>.
  Remove unnecessary inclusion of <ctype.h>.
Ensure the global changes are never needed again:
* Makefile.maint (sc_avoid_ctype_macros): Prohibit use of ctype
macros.   Recommend c-ctype.h instead.
(sc_prohibit_c_ctype_without_use): New rule.
(sc_prohibit_ctype_h): New rule.  Disallow use of <ctype.h>.

17 years agoPrepare to use gnulib's c-type module.
Jim Meyering [Fri, 9 May 2008 13:46:09 +0000 (13:46 +0000)]
Prepare to use gnulib's c-type module.

* bootstrap: Move module list into separate variable w/less syntax.
(modules): Add c-ctype.
Update the following from gnulib:
* build-aux/useless-if-before-free:
* build-aux/vc-list-files:
* gnulib/lib/Makefile.am:
* gnulib/lib/getaddrinfo.h:
* gnulib/m4/gnulib-cache.m4:
* gnulib/m4/gnulib-comp.m4:
* gnulib/m4/inet_ntop.m4:
* gnulib/tests/Makefile.am:
* gnulib/tests/test-getaddrinfo.c:

17 years agoautostart for running Xen domains
Daniel Veillard [Fri, 9 May 2008 08:17:18 +0000 (08:17 +0000)]
autostart for running Xen domains
* src/xen_unified.c src/xend_internal.c src/xend_internal.h: patch
  from Cole Robinson implementing autostart for running Xen domains
Daniel

17 years agosytnax-check: add a check for risky ctype macro use
Jim Meyering [Fri, 9 May 2008 08:11:13 +0000 (08:11 +0000)]
sytnax-check: add a check for risky ctype macro use

* Makefile.maint (sc_risky_ctype_macros): New rule.

17 years agoavoid one more ctype vs. sign-extension problem
Jim Meyering [Fri, 9 May 2008 08:09:48 +0000 (08:09 +0000)]
avoid one more ctype vs. sign-extension problem

* src/util.c (TOLOWER): Also convert tolower argument.

17 years agocomplete the previous change
Jim Meyering [Fri, 9 May 2008 08:06:50 +0000 (08:06 +0000)]
complete the previous change

17 years agoadd "const" and "static" attributes to file-scoped globals
Jim Meyering [Fri, 9 May 2008 08:02:44 +0000 (08:02 +0000)]
add "const" and "static" attributes to file-scoped globals

* src/storage_backend_fs.c (fileTypeInfo): Add "static" and two
"const" attributes.
(FileTypeInfo): Name the previously anonymous struct,
so the declaration of fileTypeInfo looks more conventional.
* src/xend_internal.c (sound_models): Mark as static, and
as an array of "const" entries.

These were relatively new additions to the list from here:
nm src/*.o|grep ' D '

17 years ago*** empty log message ***
David L. Leskovec [Fri, 9 May 2008 07:16:30 +0000 (07:16 +0000)]
*** empty log message ***

17 years agoAdded some notes about libvirt string/memory/buffer functions
Daniel P. Berrange [Thu, 8 May 2008 14:49:53 +0000 (14:49 +0000)]
Added some notes about libvirt string/memory/buffer functions

17 years agoAdded disk target bus type to Xen driver
Daniel P. Berrange [Thu, 8 May 2008 14:41:56 +0000 (14:41 +0000)]
Added disk target bus type to Xen driver

17 years agoUpdate domain XML docs
Daniel P. Berrange [Thu, 8 May 2008 14:20:07 +0000 (14:20 +0000)]
Update domain XML docs

17 years agoFix polkit docs
Daniel P. Berrange [Thu, 8 May 2008 11:52:21 +0000 (11:52 +0000)]
Fix polkit docs

17 years agoDisable sound functions when in proxy
Daniel P. Berrange [Wed, 7 May 2008 18:50:23 +0000 (18:50 +0000)]
Disable sound functions when in proxy

17 years agoSetVcpus and DomainGetMaxVcpus for QEmu
Daniel Veillard [Wed, 7 May 2008 16:16:44 +0000 (16:16 +0000)]
SetVcpus and DomainGetMaxVcpus for QEmu
*  src/qemu_conf.c src/qemu_conf.h src/qemu_driver.c: another patch
   from Cole Robinson adding SetVcpus and DomainGetMaxVcpus for QEmu
Daniel

17 years agoMore regression tests for sound support
Daniel Veillard [Wed, 7 May 2008 14:44:20 +0000 (14:44 +0000)]
More regression tests for sound support
* tests/qemuxml2argvdata/qemuxml2argv-sound.args
  tests/qemuxml2argvdata/qemuxml2argv-sound.xml
  tests/sexpr2xmldata/sexpr2xml-fv-sound-all.sexpr
  tests/sexpr2xmldata/sexpr2xml-fv-sound-all.xml
  tests/sexpr2xmldata/sexpr2xml-fv-sound.sexpr
  tests/sexpr2xmldata/sexpr2xml-fv-sound.xml
  tests/xmconfigdata/test-fullvirt-sound.cfg
  tests/xmconfigdata/test-fullvirt-sound.xml
  tests/xml2sexprdata/xml2sexpr-fv-sound.sexpr
  tests/xml2sexprdata/xml2sexpr-fv-sound.xml: other regression
  tests from previous commit
Daniel

17 years agoSound support for QEmu and Xen
Daniel Veillard [Wed, 7 May 2008 14:04:40 +0000 (14:04 +0000)]
Sound support for QEmu and Xen
* src/qemu_conf.c src/qemu_conf.h src/xend_internal.c
  src/xend_internal.h src/xm_internal.c src/xml.c src/xml.h:
  Patch from Cole Robinson adding sound support for QEmu and Xen
* tests/qemuxml2argvtest.c tests/sexpr2xmltest.c
  tests/xmconfigtest.c tests/xml2sexprtest.c:
  Associated regression tests
Daniel

17 years agoAdded autogenerated TOC for network and storage XML reference docs
Daniel P. Berrange [Tue, 6 May 2008 23:23:55 +0000 (23:23 +0000)]
Added autogenerated TOC for network and storage XML reference docs

17 years agoFix build on F9 with missing stddefs.h include
Daniel P. Berrange [Tue, 6 May 2008 21:44:12 +0000 (21:44 +0000)]
Fix build on F9 with missing stddefs.h include

17 years ago* build-aux/vc-list-files: Add support for bzr.
Jim Meyering [Tue, 6 May 2008 21:23:20 +0000 (21:23 +0000)]
* build-aux/vc-list-files: Add support for bzr.

Author: Soren Hansen <soren@ubuntu.com>

17 years agoCheck in /usr/sbin for iptables too, for SUSE distros (Jim Fehlig)
Daniel P. Berrange [Mon, 5 May 2008 19:58:56 +0000 (19:58 +0000)]
Check in /usr/sbin for iptables too, for SUSE distros (Jim Fehlig)

17 years agoRemove bogus check for NULL in qparams breaking connections
Daniel P. Berrange [Thu, 1 May 2008 18:11:03 +0000 (18:11 +0000)]
Remove bogus check for NULL in qparams breaking connections

17 years agoRemove compat macros now present in onceonly.m4
Daniel P. Berrange [Wed, 30 Apr 2008 16:32:26 +0000 (16:32 +0000)]
Remove compat macros now present in onceonly.m4

17 years agoupdate from gnulib, again
Jim Meyering [Wed, 30 Apr 2008 16:11:08 +0000 (16:11 +0000)]
update from gnulib, again

* gnulib/m4/onceonly.m4: New file.
* gnulib/m4/printf.m4: New file.
* build-aux/useless-if-before-free: Update.
* build-aux/vc-list-files: Update.
* gnulib/lib/arpa_inet.in.h: Update.
* gnulib/lib/stdio-impl.h: Update.
* gnulib/m4/inet_ntop.m4: Update.

17 years agoAdd compat for RHEL-5 autoconf
Daniel P. Berrange [Wed, 30 Apr 2008 15:54:40 +0000 (15:54 +0000)]
Add compat for RHEL-5 autoconf

17 years agoIgnore coverage data files
Daniel P. Berrange [Wed, 30 Apr 2008 13:14:40 +0000 (13:14 +0000)]
Ignore coverage data files

17 years agoAdded support for network interface model setting
Daniel P. Berrange [Wed, 30 Apr 2008 12:30:55 +0000 (12:30 +0000)]
Added support for network interface model setting

17 years ago* gnulib/lib/stdio-impl.h: Add another new file from gnulib.
Jim Meyering [Tue, 29 Apr 2008 21:43:50 +0000 (21:43 +0000)]
* gnulib/lib/stdio-impl.h: Add another new file from gnulib.

17 years agoIgnore python JIT file
Daniel P. Berrange [Tue, 29 Apr 2008 21:42:47 +0000 (21:42 +0000)]
Ignore python JIT file

17 years ago* gnulib/tests/test-EOVERFLOW.c: Add another new file from gnulib.
Jim Meyering [Tue, 29 Apr 2008 21:39:38 +0000 (21:39 +0000)]
* gnulib/tests/test-EOVERFLOW.c: Add another new file from gnulib.

17 years agoFix build errors.
Jim Meyering [Tue, 29 Apr 2008 21:23:34 +0000 (21:23 +0000)]
Fix build errors.

* proxy/Makefile.am (libvirt_proxy_LDADD): Add ../gnulib/lib/libgnu.la.
* gnulib/lib/arpa_inet.in.h: Add new file from gnulib.

17 years agoupdate from gnulib
Jim Meyering [Tue, 29 Apr 2008 19:52:26 +0000 (19:52 +0000)]
update from gnulib

* gnulib/lib/inet_ntop.h: Remove file.
* gnulib/m4/onceonly_2_57.m4: Remove file.
* build-aux/useless-if-before-free: Update.
* build-aux/vc-list-files: Update.
* gnulib/lib/.cvsignore: Update.
* gnulib/lib/Makefile.am: Update.
* gnulib/lib/fseeko.c: Update.
* gnulib/lib/getaddrinfo.c: Update.
* gnulib/lib/getdelim.c: Update.
* gnulib/lib/inet_ntop.c: Update.
* gnulib/lib/inet_ntop.h: Update.
* gnulib/lib/poll.c: Update.
* gnulib/lib/snprintf.c: Update.
* gnulib/lib/stdlib.in.h: Update.
* gnulib/lib/string.in.h: Update.
* gnulib/lib/sys_socket.in.h: Update.
* gnulib/lib/sys_stat.in.h: Update.
* gnulib/lib/vasnprintf.c: Update.
* gnulib/lib/vasprintf.c: Update.
* gnulib/lib/wchar.in.h: Update.
* gnulib/m4/arpa_inet_h.m4: Update.
* gnulib/m4/extensions.m4: Update.
* gnulib/m4/gnulib-common.m4: Update.
* gnulib/m4/gnulib-comp.m4: Update.
* gnulib/m4/include_next.m4: Update.
* gnulib/m4/inet_ntop.m4: Update.
* gnulib/m4/netinet_in_h.m4: Update.
* gnulib/m4/onceonly_2_57.m4: Update.
* gnulib/m4/physmem.m4: Update.
* gnulib/m4/snprintf.m4: Update.
* gnulib/m4/stdint.m4: Update.
* gnulib/m4/stdio_h.m4: Update.
* gnulib/m4/stdlib_h.m4: Update.
* gnulib/m4/string_h.m4: Update.
* gnulib/m4/strndup.m4: Update.
* gnulib/m4/sys_select_h.m4: Update.
* gnulib/m4/sys_socket_h.m4: Update.
* gnulib/m4/sys_stat_h.m4: Update.
* gnulib/m4/vasnprintf.m4: Update.
* gnulib/tests/Makefile.am: Update.
* gnulib/tests/test-fseeko.c: Update.
* gnulib/tests/test-getaddrinfo.c: Update.
* gnulib/tests/test-getdelim.c: Update.
* gnulib/tests/test-getline.c: Update.
* gnulib/tests/test-lseek.c: Update.
* gnulib/tests/test-snprintf.c: Update.
* gnulib/tests/test-sys_stat.c: Update.
* gnulib/tests/test-vasnprintf.c: Update.
* gnulib/tests/test-vasprintf.c: Update.

17 years agoremove useless tests before xmlFree
Jim Meyering [Tue, 29 Apr 2008 19:43:57 +0000 (19:43 +0000)]
remove useless tests before xmlFree

* src/qemu_conf.c (qemudParseDiskXML, qemudParseInterfaceXML):
(qemudParseInputXML, qemudParseDhcpRangesXML):
* src/remote_internal.c (doRemoteOpen):
* src/storage_conf.c (virStoragePoolDefParseDoc):
* src/xm_internal.c (xenXMParseXMLDisk, xenXMParseXMLVif):
(xenXMParseXMLToConfig, xenXMAttachInterface):
* src/xml.c (virDomainParseXMLDiskDesc, virDomainParseXMLIfDesc):
(virDomainXMLDevID):

17 years agoTell gcov to look in .libs to find coverage data
Daniel P. Berrange [Tue, 29 Apr 2008 15:41:30 +0000 (15:41 +0000)]
Tell gcov to look in .libs to find coverage data

17 years agoTell gcov to look in .libs to find coverage data
Daniel P. Berrange [Tue, 29 Apr 2008 15:38:13 +0000 (15:38 +0000)]
Tell gcov to look in .libs to find coverage data

17 years agoalso check for useless test-before-xmlFree
Jim Meyering [Tue, 29 Apr 2008 15:06:14 +0000 (15:06 +0000)]
also check for useless test-before-xmlFree

* Makefile.cfg (useless_free_options): Add --name=xmlFree.

17 years agotests: recognize more uses of strcmp.
Jim Meyering [Tue, 29 Apr 2008 14:25:19 +0000 (14:25 +0000)]
tests: recognize more uses of strcmp.

* Makefile.maint (sc_prohibit_strcmp): Relax regexp.

17 years agoFix array out of bounds in capabilities code parsing
Daniel P. Berrange [Tue, 29 Apr 2008 14:13:54 +0000 (14:13 +0000)]
Fix array out of bounds in capabilities code parsing

17 years agoAdded network XML docs
Daniel P. Berrange [Tue, 29 Apr 2008 14:08:08 +0000 (14:08 +0000)]
Added network XML docs

17 years agoRemove bogus test code accidentally left in previous commit
Daniel P. Berrange [Tue, 29 Apr 2008 13:48:41 +0000 (13:48 +0000)]
Remove bogus test code accidentally left in previous commit

17 years agoAvoid "make syntax-check" failures.
Jim Meyering [Tue, 29 Apr 2008 13:37:20 +0000 (13:37 +0000)]
Avoid "make syntax-check" failures.

* src/memory.c: Include "config.h".
Remove trailing blanks.

17 years agoAvoid in-function #if directives.
Jim Meyering [Tue, 29 Apr 2008 13:20:46 +0000 (13:20 +0000)]
Avoid in-function #if directives.

* src/parthelper.c [!PED_PARTITION_PROTECTED]: Define to 0.
Remove in-function #ifdefs.

17 years ago * src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED
Richard W.M. Jones [Tue, 29 Apr 2008 08:17:36 +0000 (08:17 +0000)]
    * src/parthelper.c: Don't fail if PED_PARTITION_PROTECTED
          is not defined because of ancient libparted
          (Soren Hansen).

17 years agoAdded safer lowlevel memory allocation APis. Converted hash.c and capabilities.c...
Daniel P. Berrange [Mon, 28 Apr 2008 21:44:54 +0000 (21:44 +0000)]
Added safer lowlevel memory allocation APis. Converted hash.c and capabilities.c to use them

17 years agoChange virBuffer API to prevent common usage errors. Update all users of APIs
Daniel P. Berrange [Mon, 28 Apr 2008 15:14:59 +0000 (15:14 +0000)]
Change virBuffer API to prevent common usage errors. Update all users of APIs

17 years agofix typo in bootstrap script
Jim Meyering [Mon, 28 Apr 2008 14:12:45 +0000 (14:12 +0000)]
fix typo in bootstrap script

* bootstrap: Fix typo: s/gnulib/.gnulib/.  Reported by
Daniel P. Berrange.

17 years agoAdded more bash supressions
Daniel P. Berrange [Mon, 28 Apr 2008 13:55:50 +0000 (13:55 +0000)]
Added more bash supressions

17 years agoIgnore bash bugs under valgrind
Daniel P. Berrange [Mon, 28 Apr 2008 13:36:48 +0000 (13:36 +0000)]
Ignore bash bugs under valgrind

17 years agoavoid format-related warnings
Jim Meyering [Mon, 28 Apr 2008 09:09:52 +0000 (09:09 +0000)]
avoid format-related warnings

* qemud/qemud.c (main): Fix a bogus format string reported as umarked.
* src/virsh.c (cmdVcpupin): Non-literal with no args.

17 years ago* docs/Makefile.am docs/et.png docs/libvirt.css docs/page.xsl
Daniel Veillard [Mon, 28 Apr 2008 08:29:35 +0000 (08:29 +0000)]
* docs/Makefile.am docs/et.png docs/libvirt.css docs/page.xsl
  docs/*.html docs/html/*.html: removed footer, added sponsor logo
  regenerated the html pages also fixed 'make distcheck' as
  pointed by Jim.
Daniel

17 years agoAdded full support for serial and parallel devices to Xen drivers
Daniel P. Berrange [Sat, 26 Apr 2008 14:22:02 +0000 (14:22 +0000)]
Added full support for serial and parallel devices to Xen drivers

17 years agoImplement serial & parallel device support for QEMU driver
Daniel P. Berrange [Fri, 25 Apr 2008 20:46:13 +0000 (20:46 +0000)]
Implement serial & parallel device support for QEMU driver

17 years agoAdapt layout to workaround IE6 bugs
Daniel P. Berrange [Fri, 25 Apr 2008 16:23:51 +0000 (16:23 +0000)]
Adapt layout to workaround IE6 bugs

17 years agoAdding Anton Protopopov to AUTHORS
Daniel Veillard [Fri, 25 Apr 2008 15:48:04 +0000 (15:48 +0000)]
Adding Anton Protopopov to AUTHORS
Daniel

17 years agogroup ownership of /var/run/libvirt/
Daniel Veillard [Fri, 25 Apr 2008 15:46:46 +0000 (15:46 +0000)]
group ownership of /var/run/libvirt/
* qemud/qemud.c: applied patch from Anton Protopopov to change
  group ownership of /var/run/libvirt/ to unix_sock_gid.
Daniel

17 years agoavoid problems with sign-extended "char" operand to is* functions
Jim Meyering [Fri, 25 Apr 2008 14:53:05 +0000 (14:53 +0000)]
avoid problems with sign-extended "char" operand to is* functions

* src/util.h (to_uchar): Define function.
* src/nodeinfo.c (linuxNodeInfoCPUPopulate): Apply to_uchar to is* operand.
* src/qemu_driver.c (qemudExtractMonitorPath): Likewise.
* src/sexpr.c (_string2sexpr): Likewise.
* src/stats_linux.c (xenLinuxDomainDeviceID): Likewise.
* src/util.c (TOLOWER, __virMacAddrCompare, virParseMacAddr): Likewise.
* src/virsh.c (cmdVcpupin, vshCommandGetToken): Likewise.

17 years agoRoll back log change, Daniel
Daniel Veillard [Thu, 24 Apr 2008 20:24:18 +0000 (20:24 +0000)]
Roll back log change, Daniel

17 years ago"Sponsored by' wording, Daniel
Daniel Veillard [Thu, 24 Apr 2008 15:34:18 +0000 (15:34 +0000)]
"Sponsored by' wording, Daniel

17 years agoSponsor logo
Daniel Veillard [Thu, 24 Apr 2008 15:20:06 +0000 (15:20 +0000)]
Sponsor logo
* docs/page.xsl docs/redhat.gif docs/*.html: using the shadowman
  logo to indicate Red Hat sponsoring, regenerated.
Daniel

17 years ago* AUTHORS: update, list people with commit access
Daniel Veillard [Thu, 24 Apr 2008 12:35:28 +0000 (12:35 +0000)]
* AUTHORS: update, list people with commit access
Daniel

17 years agofix the search
Daniel Veillard [Thu, 24 Apr 2008 09:44:00 +0000 (09:44 +0000)]
fix the search
* libvirt.css search.php: fix the search box and PHP output
Daniel

17 years ago* proxy/libvirt_proxy.c and docs/* typo fixing
Atsushi SAKAI [Thu, 24 Apr 2008 09:17:29 +0000 (09:17 +0000)]
* proxy/libvirt_proxy.c and docs/* typo fixing
Atsushi

17 years agoCosmetic doc improvements
Daniel Veillard [Thu, 24 Apr 2008 07:56:37 +0000 (07:56 +0000)]
Cosmetic doc improvements
* AUTHORS: indicate that the Logo is by Diana Fong
* docs/index.py: modify to also index subprojects pages
Daniel

17 years agoFix generation of NEWS file
Daniel P. Berrange [Wed, 23 Apr 2008 19:39:59 +0000 (19:39 +0000)]
Fix generation of NEWS file

17 years agoFix wiki link in API docs
Daniel P. Berrange [Wed, 23 Apr 2008 17:45:07 +0000 (17:45 +0000)]
Fix wiki link in API docs

17 years agoSplit website out into one file per page. APply new layout and styling
Daniel P. Berrange [Wed, 23 Apr 2008 17:08:31 +0000 (17:08 +0000)]
Split website out into one file per page. APply new layout and styling

17 years agoEnable 'make syntax-check's sc_changelog rule.
Jim Meyering [Mon, 21 Apr 2008 10:09:07 +0000 (10:09 +0000)]
Enable 'make syntax-check's sc_changelog rule.

* Makefile.maint (sc_changelog): Adapt to work with legacy
ChangeLog entry header lines.
* Makefile.cfg (local-checks-to-skip): Remove sc_changelog.

17 years agoPython header workaround
Daniel P. Berrange [Fri, 18 Apr 2008 18:31:32 +0000 (18:31 +0000)]
Python header workaround

17 years agoWork around Python.h name-space pollution.
Jim Meyering [Fri, 18 Apr 2008 18:07:40 +0000 (18:07 +0000)]
Work around Python.h name-space pollution.

* python/libvir.c (HAVE_PTHREAD_H): #undef.
Without this, we'd get a redefinition warning.

17 years agoRe-factor and pretty print differences
Daniel P. Berrange [Fri, 18 Apr 2008 15:28:33 +0000 (15:28 +0000)]
Re-factor and pretty print differences

17 years agoTest script helper for printing string differences
Daniel P. Berrange [Fri, 18 Apr 2008 15:05:29 +0000 (15:05 +0000)]
Test script helper for printing string differences

17 years agoavoid compile error when <pthread.h> is absent
Jim Meyering [Fri, 18 Apr 2008 09:26:45 +0000 (09:26 +0000)]
avoid compile error when <pthread.h> is absent

* src/internal.h (HAVE_PTHREAD_H): Test with "#ifdef", not "#if".

17 years agoFixes for MinGW.
Richard W.M. Jones [Fri, 18 Apr 2008 08:33:23 +0000 (08:33 +0000)]
Fixes for MinGW.
* configure.in: Fix pkg-config detection of libxml2,
  add -lgcrypt to gnutls lib.
* src/Makefile.am: If compiling --without-libvirtd then
  don't compile any part of the storage driver.
* configure.in, src/hash.c, src/internal.h: Detect availability
  of pthread library and compile out mutex code if not available.
* src/storage_driver.c, src/util.c: Ignore some missing
  headers on MinGW.

17 years agoRemove trailing blank
Daniel P. Berrange [Thu, 17 Apr 2008 19:25:42 +0000 (19:25 +0000)]
Remove trailing blank

17 years agoRemove a trailing blank.
Jim Meyering [Thu, 17 Apr 2008 08:40:53 +0000 (08:40 +0000)]
Remove a trailing blank.

17 years agoComplete and cleanup virsh man page
Daniel Veillard [Tue, 15 Apr 2008 15:20:43 +0000 (15:20 +0000)]
Complete and cleanup virsh man page
* virsh.1 docs/virsh.pod: fix missing entries and small cleanups
  in the man page, should fix #442429
Daniel

17 years agoAdded lxc_container.c to POTFILES.in
Daniel P. Berrange [Mon, 14 Apr 2008 17:44:51 +0000 (17:44 +0000)]
Added lxc_container.c to POTFILES.in

17 years agoRemove unused uid field in virsh control structure.
Richard W.M. Jones [Thu, 10 Apr 2008 17:37:23 +0000 (17:37 +0000)]
Remove unused uid field in virsh control structure.
        * src/virsh.c: Remove unused uid field in virsh control structure.

17 years agoHACKING: New file: begin to describe contributor/coding guidelines
Jim Meyering [Thu, 10 Apr 2008 16:56:44 +0000 (16:56 +0000)]
HACKING: New file: begin to describe contributor/coding guidelines

17 years agoensure that no C source file uses TABs for indentation
Jim Meyering [Thu, 10 Apr 2008 16:55:31 +0000 (16:55 +0000)]
ensure that no C source file uses TABs for indentation

* Makefile.maint (sc_TAB_in_indentation): New rule.

17 years agoconvert TAB-based indentation in C sources to use only spaces
Jim Meyering [Thu, 10 Apr 2008 16:54:54 +0000 (16:54 +0000)]
convert TAB-based indentation in C sources to use only spaces

Done using this command (also includes .c.in and .h.in files):
for i in $(g ls-files|grep -E '\.[ch](\.in)?$'|grep -v gnulib); do
  expand -i $i > j && mv j $i;done

17 years agoremove Vim and Emacs variable settings from C source files
Jim Meyering [Thu, 10 Apr 2008 16:53:29 +0000 (16:53 +0000)]
remove Vim and Emacs variable settings from C source files

Done with these commands:
git grep -l Local.variab|xargs \
  perl -0x3b -pi -e 's,\n+/\*\n \* vim:(.|\n)*,\n,'

git grep -l Local.variab|xargs \
  perl -0x3b -pi -e 's,\n+/\*\n \* Local variables:\n(.|\n)*,\n,'

17 years agoAUTHORS and po updates
Daniel Veillard [Thu, 10 Apr 2008 13:32:46 +0000 (13:32 +0000)]
AUTHORS and po updates
* AUTHORS: adding Dave Leskovec and Ryan Scott to the authors list
* po/*: rebuilt
daniel

17 years agoAsk xend to remove device in the config file too
Daniel Veillard [Thu, 10 Apr 2008 13:30:17 +0000 (13:30 +0000)]
Ask xend to remove device in the config file too
* src/xend_internal.c: applied a patch from Ryan Scott to ask
  xend to save the device removal change in the config file
Daniel

17 years ago* src/Makefile.am src/lxc_conf.c src/lxc_conf.h src/lxc_container.c
Daniel Veillard [Thu, 10 Apr 2008 07:30:52 +0000 (07:30 +0000)]
* src/Makefile.am src/lxc_conf.c src/lxc_conf.h src/lxc_container.c
  src/lxc_container.h src/lxc_driver.c: Applied second set of
  linux container patches from Dave Leskovec adding start/stop
  of domains
Daniel

17 years agoAdd virsh.pod to EXTRA_DIST
Richard W.M. Jones [Wed, 9 Apr 2008 15:12:13 +0000 (15:12 +0000)]
Add virsh.pod to EXTRA_DIST
        * docs/Makefile.am: Add virsh.pod to EXTRA_DIST.

17 years agoCore code contains Xen-ism UUID of dom0 = 0..0
Richard W.M. Jones [Wed, 9 Apr 2008 14:03:01 +0000 (14:03 +0000)]
Core code contains Xen-ism UUID of dom0 = 0..0
        * src/libvirt.c: Remove a Xen-ism from the core code, the
          assumption that dom0's UUID is all zeroes.

17 years agoWarn about conn, dom and net fields in virterror
Richard W.M. Jones [Wed, 9 Apr 2008 14:00:07 +0000 (14:00 +0000)]
Warn about conn, dom and net fields in virterror
        * include/libvirt/virterror.h: Warn about the use of
          conn, dom and net fields in virterror.

17 years agoRemove extraneous underscore
Richard W.M. Jones [Wed, 9 Apr 2008 13:50:27 +0000 (13:50 +0000)]
Remove extraneous underscore
        * src/openvz_conf.c: Remove extraneous underscore which stopped
          file from compiling (Anton Protopopov).

17 years agoDoc updates post release, Daniel
Daniel Veillard [Wed, 9 Apr 2008 07:13:13 +0000 (07:13 +0000)]
Doc updates post release, Daniel

17 years ago0.4.2 release
Daniel Veillard [Tue, 8 Apr 2008 16:45:57 +0000 (16:45 +0000)]
0.4.2 release
* configure.in NEWS doc/* po/*: making libvirt-0.4.2 release
daniel

17 years agoconfigure.in (ALL_LINGUAS): Fix typo: s/Latn/latin/.
Jim Meyering [Tue, 8 Apr 2008 15:53:16 +0000 (15:53 +0000)]
configure.in (ALL_LINGUAS): Fix typo: s/Latn/latin/.

17 years agoDon't fail to read a file because it's non-seekable (e.g., a pipe).
Jim Meyering [Tue, 8 Apr 2008 15:33:16 +0000 (15:33 +0000)]
Don't fail to read a file because it's non-seekable (e.g., a pipe).

* src/util.c (fread_file_lim): New function.
(__virFileReadAll): Use fread_file_lim, rather than requiring
that stat.st_size provide a usable file size.
* tests/read-non-seekable: New test, for the above.
* tests/Makefile.am (test_scripts): Add read-non-seekable.
* tests/test-lib.sh (mkfifo_or_skip_): New helper function.

17 years agosrc/qemu_driver.c: Handle errors from fork(2) and pipe(2)
Richard W.M. Jones [Tue, 8 Apr 2008 12:27:53 +0000 (12:27 +0000)]
src/qemu_driver.c: Handle errors from fork(2) and pipe(2)
          system calls when creating qemu subprocess.

17 years ago* po/sr.po po/sr@Latn.po po/sr@latin.po: fix/update serbian
Daniel Veillard [Tue, 8 Apr 2008 09:51:37 +0000 (09:51 +0000)]
* po/sr.po po/sr@Latn.po po/sr@latin.po: fix/update serbian
  translations.
daniel

17 years agoadds xen and hvm guest types to test driver capabilities
Daniel Veillard [Tue, 8 Apr 2008 09:26:24 +0000 (09:26 +0000)]
adds xen and hvm guest types to test driver capabilities
* src/test.c: patch from Cole Robinson adding xen and hvm guest types
  to the test driver's capabilities.
Daniel

17 years agoFix potential infinite loop in python generator
Daniel Veillard [Tue, 8 Apr 2008 08:26:15 +0000 (08:26 +0000)]
Fix potential infinite loop in python generator
* python/generator.py: fix an infinite loop bug
Daniel