Commit Graph

8518 Commits

Author SHA1 Message Date
Richard W.M. Jones
8a72616bf7 test-data: phony-guests: Don't use *.tmp.* temporary files. 2015-11-05 13:46:05 +00:00
Richard W.M. Jones
458d7c09b7 v2v: Check if i_type, i_distro or i_arch contains "unknown".
That indicates that inspection failed, so we should error out early.
2015-11-05 13:46:05 +00:00
Richard W.M. Jones
fff2797578 v2v: vCenter: Document additional permission needed for conversions (RHBZ#1277274).
This updates commit 4e24338625.

Thanks: Alessandro on https://bugzilla.redhat.com/show_bug.cgi?id=1277274#c6
2015-11-05 09:03:56 +00:00
Pino Toscano
b933b17a2a actions: set features for vfs_minimum_size tests
Limit the scope of two tests of vfs_minimum_size to the features they
require (btrfs and xfs).
2015-11-05 09:46:36 +01:00
Richard W.M. Jones
c12c7d0df0 Version 1.31.24. 1.31.24 2015-11-04 17:45:28 +00:00
Richard W.M. Jones
8e3920a334 sparsify: Let --in-place capture ^C and shut down gracefully (RHBZ#1277122).
When virt-sparsify receives a user quit signal (eg from ^C) it
currently kills virt-sparsify and qemu instantly, meaning any mount +
fstrim in progress is uncleanly stopped.  The (minor) side effect of
this is that the guest filesystem may require a journal replay or fsck
on boot.

Let virt-sparsify capture the user quit signal and shut down
gracefully.

It is not thought that the previous behaviour could cause guest
corruption; see
https://lists.nongnu.org/archive/html/qemu-devel/2015-11/threads.html#00402
for discussion.
2015-11-04 16:24:04 +00:00
Richard W.M. Jones
4e24338625 v2v: vCenter: Document the minimum set of permissions needed for conversions (RHBZ#1277274).
Thanks: Alessandro on https://bugzilla.redhat.com/show_bug.cgi?id=1277274#c2
2015-11-04 16:24:04 +00:00
Pino Toscano
9d8ffd966a lib: include few more headers
- include <sys/un.h> for sockaddr_un, on any OS (removing the Mac OS X
  blocks)
- include <fcntl.h> for O_* flags

This commits reverts a couple of changes in these files done in
commit 3b17152ec3.
2015-11-04 14:52:29 +01:00
Pino Toscano
a13e95783d Revert "launch: add missing headers on Darwin"
This reverts commit 3ce4e95c5a.
2015-11-04 14:50:58 +01:00
Richard W.M. Jones
226848762b builder: Add fedora-23 image. 2015-11-04 13:06:11 +00:00
Margaret Lewicka
3ce4e95c5a launch: add missing headers on Darwin
Including sys/un.h for sockaddr_un and sys/fcntl.h for
O_CLOEXEC/O_NONBLOCK.
2015-11-04 12:22:28 +00:00
Richard W.M. Jones
0c879fcd15 sparsify: Don't mark virt-sparsify --in-place as "experimental".
Thanks: Gil Klein.
2015-11-04 09:47:52 +00:00
Richard W.M. Jones
9f70d71d4a builder: Document using 'qemu-img amend' for RHEL 6 compat (RHBZ#1204131). 2015-11-03 21:14:40 +00:00
Richard W.M. Jones
a2edda266e build: Make 'make clean' remove more files.
Remove man pages and other pages which 'make clean' did not remove
before.

To evaluate which pages could be removed, I did a full build and
check, and then ran 'make clean' followed by 'git clean -xdf'.  By
examining the output of the git clean command I could see which files
were being missed.

Files that are _not_ removed by make clean or make distclean:

 - generator-built files

 - Makefile, Makefile.in, .deps, .depend

 - any ./configure output files (maybe they should be?)
2015-11-03 13:53:37 +00:00
Richard W.M. Jones
6221d54445 build: Remove unused intltool-* files.
None of these files have been touched since the initial intltoolize
command (commit 29204fe10d, May 2009).
2015-11-03 12:14:10 +00:00
Richard W.M. Jones
c192d99c09 p2v: Don't present the vdsm output driver to the user (RHBZ#1277074).
Thanks: Ming Xie.
2015-11-02 23:31:32 +00:00
Richard W.M. Jones
f45c4619f5 tests: Remove fuzz testing of inspection.
It's a nice idea, but has never actually found a problem.  After using
afl to find bugs in qemu-img, it's pretty clear to me that no
successful approach could be run in the short time demanded by the
libguestfs test suite.  Afl tests run for days, weeks or even months.

A better approach may be to use a proven fuzz tester (such as afl) on
the inspection code; or to run this code for days on end on a separate
testing machine.

This reverts commit c2dcd10964.
2015-10-31 23:09:51 +00:00
Richard W.M. Jones
2c62de52b7 df: Close parenthesis in comment. 2015-10-31 22:53:14 +00:00
Richard W.M. Jones
88c506767a build: Make 'make clean' remove a few backup files. 2015-10-31 22:08:06 +00:00
Richard W.M. Jones
6190226671 website: Add guestfs-hacking, guestfs-internals, guestfs-security to website.
Also move guestfs-performance to the right place on the website.

This updates commit 2eb01004bf
and commit d07515b947
and commit 74fba6e692
and commit 15b8b6453d.
2015-10-31 17:09:29 +00:00
Richard W.M. Jones
47b095b928 website: Put website into a separate directory.
Move the random set of HTML files we build from html/ into
the website/ directory.

Also in the website/ directory, put the index.html file from
http://libguestfs.org, which was previously not under version control.
It is generated from index.html.in so we can automatically add the
current version and release date.

Also in the website/ directory, put various CSS file, images, etc.
which are required by the website and were also previously not under
version control.

Change the 'make website' rule to 'make maintainer-upload-website'.
As the name suggests, it is only useful for the maintainer, and will
fail with an error for anyone else.
2015-10-31 17:09:29 +00:00
Richard W.M. Jones
de819d17e4 Version 1.31.23. 1.31.23 2015-10-31 11:08:14 +00:00
Richard W.M. Jones
7dcfc9eb03 docs: Minor fix to description of 'test-data' subdirectory.
Fixes commit dc1d0880b0.
2015-10-30 23:02:54 +00:00
Richard W.M. Jones
2eb01004bf website: Copy guestfs-hacking, guestfs-internals, guestfs-security to website.
Make sure the three new man pages are copied over to the website.

This updates commit d07515b947
and commit 74fba6e692
and commit 15b8b6453d.
2015-10-30 22:49:50 +00:00
Richard W.M. Jones
877c69bef7 build: Reorder build sequence.
When I conceived commit dc1d0880b0, I
thought it would be a good idea to build test-data files, including
the phony guest images, during the 'make' phase.  Previously these
were built early in the 'make check' phase.

However this has two disadvantages: (a) We run the appliance
unnecessarily during builds.  For example, it is not necessary to
build the phony guests if we are going to do an 'installcheck'.
(b) Even if we are testing, the critical first time we run the
appliance is not in 'quickcheck' or 'tests/qemu', but some random
guest build.

Reorder the build sequence to fix this, and also a few other things.

This updates commit dc1d0880b0.
2015-10-30 22:06:18 +00:00
Richard W.M. Jones
dd5f5ffb48 test-data: Remove bogus comment.
The way we now build the blank guest images is safe to be run in
parallel.
2015-10-30 21:39:54 +00:00
Richard W.M. Jones
cd6f7f6ee0 tests/regressions: Fix rhbz1174551.sh so it works when debugging is enabled.
This test failed during release testing.  It turned out to be because
the tests are run with LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 which
causes other messages to be printed.

Updates commit b5a6f899cd.
2015-10-30 18:51:30 +00:00
Richard W.M. Jones
c078486041 Version 1.31.22. 1.31.22 2015-10-30 16:28:28 +00:00
Richard W.M. Jones
dc1d0880b0 tests: Move the tests/data and tests/guests directories to test-data.
Create a new top-level directory called test-data, which will carry
all the test data which is large and/or shared between multiple tests.

There are actually several new subdirectories created:

test-data/binaries: The pre-built binary and library files for random
architectures that we use to test various architecture detection
features (was part of tests/data).

test-data/blank-disks: The blank disks which are used for disk format
detection (was part of tests/data).

test-data/files: Other miscellaneous test files from tests/data that
are not included in the above.

test-data/phony-guests: The phony guests (was tests/guests).

test-data: The top-level directory builds the 'test.iso' image file
that is used for testing the C API and in miscellaneous other tests.
2015-10-30 16:07:32 +00:00
Richard W.M. Jones
7efde6589c tests/regressions: Display errors in rhbz1174551.sh.
Updates commit b5a6f899cd.
2015-10-30 15:09:37 +00:00
Richard W.M. Jones
93214205cc Version 1.31.21. 1.31.21 2015-10-30 10:52:30 +00:00
Richard W.M. Jones
6b2ff3377c v2v: windows: Create Windows module, and move functions around.
Create a Windows module, analogous to the Linux module we already
have.  Move utility functions related to Windows into this module.

In particular:

 - detect_antivirus function moves here, and the Detect_antivirus
   module goes away entirely

 - copy_virtio_drivers / virtio_iso_path_matches_guest_os moves here,
   and the virtio_iso_path_matches_guest_os can now be hidden

This is just refactoring, but allows us to make deeper changes to
copy_virtio_drivers.
2015-10-30 10:32:43 +00:00
Richard W.M. Jones
b00a2151ab v2v: utils: Refactor xpath_* functions.
No change, just refactoring.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
bd65e346d8 v2v: utils: Add a utils.mli file defining the interface. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
6a688c5119 v2v: utils: Remove unused function compare_app2_version_min. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
e9bd10897d v2v: utils: Comment fix. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
7f19420cfe v2v: utils: Move three utility functions to where they are used.
The three utility functions xml_quote_attr, xml_quote_pcdata and
uri_escape were only used in a single module.  Move them close to
where they are used.

This is just code refactoring.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
e7f8c064cf v2v: utils: Don't open Types module. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
0dffbb7d94 v2v: Move the open_guestfs function into Common_utils.
Removes the somewhat ugly inclusion of this function in Types.  Also
means we can use this function elsewhere.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
63952d9666 ocaml: Rename Config module as Guestfs_config.
Unfortunately Coccinelle places a Config module in the ocaml libdir,
and this confuses ocamlfind (only when Coccinelle is installed).
Since this is a private module that only libguestfs tools use
internally, just rename it from Config -> Guestfs_config.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
f4783fcc0d docs: Group guestfs(3) 'SEE ALSO' into sections. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
15b8b6453d docs: Move security documentation to guestfs-security(1). 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
74fba6e692 docs: Move architecture and internals documentation to guestfs-internals(1). 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
d07515b947 docs: Move 'extending libguestfs' documentation to guestfs-hacking(1).
Start to split the huge, monolithic guestfs(3) manual page.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
a87218c271 configure: Move FUSE checks to separate file.
This is moved earlier because it's now part of the C library.
2015-10-30 09:45:02 +00:00
Richard W.M. Jones
cdcd1e7c98 configure: Move misc. library checks to separate file. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
34304f5e3d configure: Move appliance checks to separate file. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
dfa9dee775 configure: Move daemon checks to separate file. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
56884b6543 configure: Move C library checks to separate file. 2015-10-30 09:45:02 +00:00
Richard W.M. Jones
4a67b4be93 configure: Move basic C compiler environment checks to separate file.
Also gnulib stuff.
2015-10-30 09:45:02 +00:00