summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* define ATTRIBUTE_UNUSEDJim Meyering2009-08-101-0/+10
| | | | * daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define.
* daemon/file.c: remove duplicate absolute-path checkJim Meyering2009-08-101-1/+0
| | | | | | * daemon/file.c (do_file): Remove redundant use of ABS_PATH. It's redundant because the preceding line invokes NEED_ROOT_OR_IS_DEVICE, which also invokes ABS_PATH.
* Tidy up generation of java/Makefile.inc.Richard Jones2009-08-072-7/+43
| | | | | (Just whitespace and comment changes, and small restructuring of the code).
* Debug: Improve the way the qemu command line is printed.Richard Jones2009-08-071-7/+31
| | | | | | | | | | | | | | | | Change the way the qemu command is displayed to look like this: /usr/bin/qemu-kvm \ -drive file=/tmp/test.img,cache=off,if=virtio \ -m 500 \ -no-reboot \ -kernel /tmp/libguestfsHBJHRh/kernel \ -initrd /tmp/libguestfsHBJHRh/initrd \ [...] This allows the command line to be copied and pasted directly into the shell, and also makes it simpler to read.
* Allow network interface to be configured.Richard Jones2009-08-072-1/+12
| | | | | | | | Add ./configure --with-net-if=(virtio|ne2k_pci) option. This lets you workaround the following virtio_net bug: https://bugzilla.redhat.com/show_bug.cgi?id=516022
* Tests: swapon_device test mkswap /dev/sda1 instead of /dev/sdb.Richard Jones2009-08-071-4/+17
| | | | | | | | On RHEL 5, mkswap /dev/sdb fails, even with the '-f' option (contradictory to what the manual page says). This commit adds a new 'InitPartition' initialization which just creates /dev/sda1, and then does the swap test on that.
* Always pass mkswap -f parameter.Richard Jones2009-08-061-2/+2
| | | | | Otherwise mkswap will give a silly error if you ask it to swap on a whole device.
* Tests: Don't test block size in statvfs test.Richard Jones2009-08-061-2/+1
| | | | | | | The block size changes between kernel releases, causing a false failure in the tests. The error was: test_statvfs_0: bsize was 65536, expected 131072
* Version 1.0.661.0.66Richard Jones2009-08-063-1052/+972
|
* RHEL 5: inotify_init1 call did not exist on RHEL 5.Richard Jones2009-08-062-1/+23
|
* Fix: segfault in tab completion (RHBZ#516024).Richard Jones2009-08-061-2/+2
| | | | | Actually this fixes two bugs: 'strs' was not being freed on every path, and the tab completion segfault described in the bug report.
* Fix errno check in readdir in devsparts.cMatthew Booth2009-08-061-3/+5
|
* Add ne2k-pci driver to the appliance.Richard Jones2009-08-062-1/+5
| | | | | This allows people to use the ne2k-pci network driver, for those situations where the virtio_net driver is broken (cough 516022 cough).
* Make user network numbering explicit.Richard Jones2009-08-061-2/+2
| | | | | | Use: -net user,vlan=0,net=10.0.2.0/8 just to make the (already implicit) 10.0.2.x network explicit.
* appliance: More debug added to /init.Richard Jones2009-08-061-0/+2
|
* Exclude daemon/lib and daemon/tests from being added to po/POTFILES.inMatthew Booth2009-08-061-0/+2
|
* build: remove bootstrap's --gnulib-srcdir optionJim Meyering2009-08-061-39/+5
| | | | | | | ...because it probably didn't work, and even if it did, we've discovered that using a separate git repo like that can lead to subtle mix-ups. Also, fix invocation of gnulib-tool in daemon/.
* build: fix build failureJim Meyering2009-08-061-1/+1
| | | | | * bootstrap (gnulib_tool): Create lib and tests directories under daemon/ before running gnulib-tool there.
* daemon: use gnulibJim Meyering2009-08-065-1/+75
| | | | | | | | | | | | | | | | | * daemon/Makefile.am (SUBDIRS): Define. (AM_CPPFLAGS): Define, to include from gnulib's lib/ (LDADD): Define, to link with gnulib's libgnu.a. * daemon/configure.ac: Use AC_CONFIG_AUX_DIR([build-aux]), gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add lib/Makefile and tests/Makefile * daemon/m4/gnulib-cache.m4: New file, generated by running ../.gnulib/gnulib-tool --import --with-tests hash * daemon/.gitignore: Ignore all of the imported files. build: tell bootstrap about daemon/ * bootstrap: Run gnulib-tool --update in daemon/. Remove bootstrap's --gnulib-srcdir option, because it probably didn't work, and even if it did, we've discovered that using a separate git repo like that can lead to subtle mix-ups.
* appliance: Include more debug output in the /init script.Richard Jones2009-08-061-5/+12
| | | | | Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output.
* Recognise cd-rom devices in devsparts.cMatthew Booth2009-08-061-72/+96
| | | | | | Also: * Un-duplicate device detection code by creating a common mapping function. * Add some more comments.
* Fix test failures in upload and download (RHBZ#515764)Matthew Booth2009-08-061-2/+4
| | | | | | | The tests hardcoded an MD5 of the test file, COPYING.LIB, whose contents had change. This change causes it to compute the MD5 rather than hardcoding it. OCaml provided by rjones.
* Add copyright and license notice to regressions/test-noexec-stack.plRichard Jones2009-08-061-0/+15
|
* Add some newly-untracked files to .gitignoreMatthew Booth2009-08-051-0/+11
|
* Fix swapon_label testMatthew Booth2009-08-051-1/+3
| | | | | | | | The swapon label test has a side-effect, in that it creates a new partition. This causes the later failure of the list_partitions test. This change causes the swapon_label test to zero /dev/sdb after the test, and then re-read the partition table.
* Add resultant change to po/POTFILES.inMatthew Booth2009-08-051-0/+1
| | | | I missed this when committing 7e9cb884492aec243337ffc8e4432a9ff2690956
* Add a test for an executable stack in resultant binariesMatthew Booth2009-08-052-3/+69
|
* build: generate some just-removed files in po/Jim Meyering2009-08-051-0/+15
| | | | * bootstrap: Generate po/Makevars and po/LINGUAS.
* build: remove trailing blank lines; enable the syntax-check ruleJim Meyering2009-08-0411-11/+0
| | | | | | | | | | | | | | * cfg.mk (disable_temporarily): Remove sc_prohibit_trailing_blank_lines. * appliance/Makefile.am: Remove trailing blank line(s). * appliance/debian/modules/y0_install-guestfsd: Likewise. * appliance/make.sh.in: Likewise. * appliance/packagelist.in: Likewise. * appliance/update.sh.in: Likewise. * haskell/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * python/run-python-tests: Likewise. * recipes/squashfs.example: Likewise. * ruby/run-ruby-tests: Likewise.
* build: exempt symlinks from trailing-blank-line prohibitionJim Meyering2009-08-041-2/+3
| | | | * cfg.mk (sc_prohibit_trailing_blank_lines): Exempt symlinks.
* build: enable syntax-check: TAB-only indentation in MakefilesJim Meyering2009-08-041-1/+0
| | | | * cfg.mk (disable_temporarily): Remove sc_makefile_TAB_only_indentation.
* build: tweak HACKING so we pass "make syntax-check"Jim Meyering2009-08-041-2/+2
| | | | * HACKING: Convert leading TABs.
* build: remove trailing blanks, enable syntax-checkJim Meyering2009-08-044-4/+4
| | | | | | | * regressions/test-cancellation-download-librarycancels.sh: * src/generator.ml: * cfg.mk (disable_temporarily): Remove sc_trailing_blank. * .x-sc_trailing_blank: New file.
* maint: use COPYING.LIB version 2.1Jim Meyering2009-08-042-158/+125
| | | | | * COPYING.LIB: Update to 2.1. * .x-sc_TAB_in_indentation: Also exempt COPYING.LIB.
* build: don't emit trailing blanks, remove generated fileJim Meyering2009-08-042-7/+8
| | | | | | * ocaml/Makefile.am (.depend): Don't redirect directly to $@. Filter out trailing blanks. * ocaml/.depend: Regenerate.
* build: remove more files added by ./autogen.shJim Meyering2009-08-0410-561/+0
| | | | | | | | | | | | | * po/LINGUAS: Remove file. * po/Makefile.in.in: Likewise. * po/Makevars: Likewise. * po/Rules-quot: Likewise. * po/boldquot.sed: Likewise. * po/en@boldquot.header: Likewise. * po/en@quot.header: Likewise. * po/insert-header.sin: Likewise. * po/quot.sed: Likewise. * po/remove-potcdate.sin: Likewise.
* build: tell aclocal to search gnulib/m4, tooJim Meyering2009-08-041-1/+1
| | | | * Makefile.am (ACLOCAL_AMFLAGS): Append "-I gnulib/m4".
* Document and enforce the new spaces-only indentation policy.Jim Meyering2009-08-033-3/+33
| | | | | | | * cfg.mk (disable_temporarily): Remove sc_TAB_in_indentation, to enable the "make syntax-check" that enforces this. * .x-sc_TAB_in_indentation: New file. Exceptions. * HACKING: Document the policy, with tips on how to conform.
* Convert all TABs-as-indentation to spaces.Jim Meyering2009-08-0350-3485/+3485
| | | | | | | | | | | Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
* Remove files imported via autogen.sh.Jim Meyering2009-08-0335-3539/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/.gitignore: Ignore these files. * m4/codeset.m4: Remove file. * m4/gettext.m4: Likewise. * m4/glibc2.m4: Likewise. * m4/glibc21.m4: Likewise. * m4/iconv.m4: Likewise. * m4/intdiv0.m4: Likewise. * m4/intl.m4: Likewise. * m4/intldir.m4: Likewise. * m4/intlmacosx.m4: Likewise. * m4/intltool.m4: Likewise. * m4/inttypes-pri.m4: Likewise. * m4/inttypes.m4: Likewise. * m4/inttypes_h.m4: Likewise. * m4/isc-posix.m4: Likewise. * m4/lcmessage.m4: Likewise. * m4/lib-ld.m4: Likewise. * m4/lib-link.m4: Likewise. * m4/lib-prefix.m4: Likewise. * m4/lock.m4: Likewise. * m4/longdouble.m4: Likewise. * m4/longlong.m4: Likewise. * m4/nls.m4: Likewise. * m4/po.m4: Likewise. * m4/printf-posix.m4: Likewise. * m4/progtest.m4: Likewise. * m4/signed.m4: Likewise. * m4/size_max.m4: Likewise. * m4/stdint_h.m4: Likewise. * m4/uintmax_t.m4: Likewise. * m4/ulonglong.m4: Likewise. * m4/visibility.m4: Likewise. * m4/wchar_t.m4: Likewise. * m4/wint_t.m4: Likewise. * m4/xsize.m4: Likewise.
* allow use of #if HAVE_CONFIG_H, for example codeJim Meyering2009-08-031-0/+2
| | | | * .x-sc_prohibit_have_config_h: New file, to exempt examples.
* guestfs: fix typo in my recent changeJim Meyering2009-08-031-3/+3
| | | | | * src/guestfs.c (guestfs_perrorf): Rename former err to errnum, to avoid compilation error.
* Guard #inclusion of config.h in examples.Jim Meyering2009-08-032-2/+6
| | | | | * examples/hello.c [HAVE_CONFIG_H]: Include <config.h> conditionally. * examples/to-xml.c: Likewise.
* build: reenable "syntax-check" rule: sc_const_long_optionJim Meyering2009-08-034-4/+3
| | | | | | | * cfg.mk (disable_temporarily): Remove sc_const_long_option. * daemon/guestfsd.c (main): Declare long_options to be "const". * fish/fish.c (main): Likewise. * test-tool/test-tool.c (main): Likewise.
* build: temporarily disable failing "syntax-check" rulesJim Meyering2009-08-031-0/+14
| | | | * cfg.mk (disable_temporarily): Define.
* maint: use a git submodule for gnulibJim Meyering2009-08-0311-839/+263
| | | | | | | | | | | | | | * .gitmodules: New file, to track gnulib. * .gnulib: Submodule directory. * Makefile.am (EXTRA_DIST): Don't list config.rpath or gitlog-to-changelog. * autogen.sh: Adapt to use the new submodule. * cfg.mk: New file. (SUBDIRS): Add gnulib/lib and gnulib/tests. (dist-hook): Reflect new location of getlog-to-changelog. * configure.ac: Set build-aux/ as AUX_DIR. Invoke gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
* always include <config.h>Jim Meyering2009-08-034-0/+4
| | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise.
* build: add -I option to get config.h.Jim Meyering2009-08-031-2/+5
| | | | | * ocaml/Makefile.am (AM_CPPFLAGS): Define. (guestfs_c.o, guestfs_c_actions.o): Use it.
* guestfs: don't fault upon failed vasprintfJim Meyering2009-08-031-1/+3
| | | | * src/guestfs.c (guestfs_perrorf): Handle failed vasprintf.
* Cleanup whitespace warnings in Lib.pmMatthew Booth2009-08-031-4/+4
|