5508 Commits

Author SHA1 Message Date
Richard W.M. Jones
4bb3aa7dde Version 1.23.7. 1.23.7 2013-07-03 15:02:57 +01:00
Richard W.M. Jones
b6f01f3260 Add Go (language) bindings. 2013-07-03 15:02:57 +01:00
Richard W.M. Jones
667b303c9a java: Fix comment in test script. 2013-07-01 15:27:22 +01:00
Richard W.M. Jones
cd9f40945d configure: python: RHEL 6 doesn't have sysconfig, use distutils.sysconfig instead.
This works on recent Python as well.
2013-06-28 12:57:07 +01:00
Richard W.M. Jones
7f4048f9d5 Version 1.23.6. 1.23.6 2013-06-26 19:02:16 +01:00
Richard W.M. Jones
fb0bd82dbe daemon: Verify ext2/3/4 filesystem name before passing to mke2fs (RHBZ#978302).
Add a utility function (fstype_is_extfs) to match ext2/3/4 filesystem
names.  This is used in a couple of places.

When passing the mke2fs -t parameter, verify that the request is for
an ext2/3/4 filesystem.  Previously we did not check this, and neither
did mke2fs when the -F flag was also used.
2013-06-26 14:37:26 +01:00
Richard W.M. Jones
dd21bec400 sysprep: New operation to remove RPM database files.
See:
https://lists.fedoraproject.org/pipermail/devel/2013-June/184389.html
2013-06-24 21:06:58 +01:00
Richard W.M. Jones
a7aa47f4de virt-resize: Add notes about Windows and disk consistency (RHBZ#975753).
Also group the Windows-related notes together.
2013-06-20 09:13:41 +01:00
Richard W.M. Jones
b730bc0c46 virt-resize: Take into account large start offset of the first partition when calculating overhead (RHBZ#974904).
Since we don't usually move the first partition, if the first
partition has an unusually large offset from the start of the disk,
then the unpartitioned space in front of that partition counts as
partitioning overhead.  However the previous surplus calculation was
not taking that into account.

This was a problem for certain Ubuntu images which are partitioned
with an 8 MB gap before the first partition.

Thanks: David Hart.
2013-06-19 19:03:21 +01:00
Richard W.M. Jones
07f3e5ae5c virt-resize: Add some more debugging messages.
These are only printed when using the --debug flag and are
helpful for diagnosing problems.
2013-06-19 19:02:48 +01:00
Richard W.M. Jones
7949fd3949 virt-resize: Fix minor typo in error message. 2013-06-19 19:02:15 +01:00
Richard W.M. Jones
d8a3185823 tests: Add a regression test for iface launch hangs (RHBZ#975797). 2013-06-19 16:21:32 +01:00
Richard W.M. Jones
f7fe7e8db0 launch: direct: Calculate appliance root correctly when iface drives are added (RHBZ#975797).
This also changes guestfs___appliance_command_line to allow
appliance_dev parameter to be NULL.  Previously a bogus root=
parameter could be passed.
2013-06-19 16:21:31 +01:00
Richard W.M. Jones
e7f83f2ecc tests/regressions: Remove duplicate test skip code. 2013-06-19 13:21:10 +01:00
Richard W.M. Jones
cf0dcb6a0b Version 1.23.5. 1.23.5 2013-06-18 19:36:27 +01:00
Richard W.M. Jones
d88f6c0ba6 tests: inspection: Add example and test XML to EXTRA_DIST.
This fixes commit a86cb71fca.
2013-06-18 19:32:03 +01:00
Richard W.M. Jones
0ff0454c59 tests: inspection: Don't complain because NTFS UUID changes between test runs.
This fixes commit a86cb71fca.
2013-06-18 18:01:04 +01:00
Richard W.M. Jones
a86cb71fca inspector: Add a real test of inspection.
Verify that the output from inspection doesn't change, in order to
catch regressions such as RHBZ#975412.
2013-06-18 17:12:31 +01:00
Richard W.M. Jones
d7bc1dd922 inspection: Replace phony XML with virt-inspector output from real guests.
Also add an example from a real RHEL 6 guest.

Remove rules for building these XML files which are no longer
relevant.  These files were built by running virt-inspector on real
guests, and then edited to remove excessive <application> sections.
2013-06-18 17:01:53 +01:00
Richard W.M. Jones
2343840936 inspection: Fix hostname inspection because of faulty Augeas path expression (RHBZ#975412). 2013-06-18 15:34:01 +01:00
Richard W.M. Jones
2c4e7ad135 Augeas >= 1.0.0 is now required. 2013-06-18 15:34:01 +01:00
Richard W.M. Jones
2ee4d5e059 utils: Add utility functions guestfs___concat_strings and guestfs__join_strings.
These concatenate strings or join them with a separator in between.
2013-06-18 15:34:01 +01:00
Richard W.M. Jones
3a5b0f1787 Version 1.23.4. 1.23.4 2013-06-14 13:20:26 +01:00
Richard W.M. Jones
7f228489d0 inspection: Fix inspection of Fedora guests (RHBZ#974489).
Commit e71b2c11f5 broke inspection of
Fedora guests because guestfs_is_file returns false for
/etc/redhat-release (it's a symlink to a file, not a file).

We fix this by using the new followsymlinks flag added in the
previous commit.  Thus guestfs_is_file becomes
guestfs_is_file_opts (g, filename, GUESTFS_IS_FILE_OPTS_FOLLOWSYMLINKS, 1, -1)
which checks if it's a file or a symlink to a file.

This fixes commit e71b2c11f5.
2013-06-14 11:03:24 +01:00
Richard W.M. Jones
ef107448e8 Add followsymlinks flag to is-file, is-dir, is-blockdev, is-chardev, is-fifo and is-socket APIs.
This adds an extra optional boolean 'followsymlinks' flag to those 6
is-* APIs.  If the flag is true, then symlinks are followed, ie. we
use stat instead of lstat in the test.

For the rationale behind this change, see:
https://bugzilla.redhat.com/show_bug.cgi?id=974489
2013-06-14 10:53:17 +01:00
Richard W.M. Jones
3cf442872b FAQ: Developer questions about committing and forking. 2013-06-11 13:09:09 +01:00
Richard W.M. Jones
372217c375 FAQ: Emphasize that we don't accept github pull requests. 2013-06-11 13:08:49 +01:00
Richard W.M. Jones
d2c05c96ca FAQ: Put B<> bold section around "Note"s in the text. 2013-06-11 12:56:47 +01:00
Richard W.M. Jones
0e652c11be FAQ: RHEL 6.5 will fix the buildnet problem. 2013-06-11 12:55:46 +01:00
Richard W.M. Jones
32fe7fd853 FAQ: Indent Ubuntu releases in list. 2013-06-11 12:54:29 +01:00
Richard W.M. Jones
3b109ff207 FAQ: RHEL 7 is based on libguestfs 1.22. 2013-06-11 12:53:25 +01:00
Richard W.M. Jones
58519bbe9c FAQ: Add link to RHEL 6.5 preview repository. 2013-06-11 12:53:08 +01:00
Richard W.M. Jones
b30647cd23 Version 1.23.3. 1.23.3 2013-06-10 19:33:53 +01:00
Richard W.M. Jones
ef4969c2ce build: Fix 'make distclean' (again).
So it doesn't break after the generator has been deleted by
a previous distclean rule.
2013-06-10 18:09:43 +01:00
Richard W.M. Jones
546b3f3fce txz-out: Fix this API to produce xz files again (RHBZ#972775).
Commit 864ef706a8 (in Aug 2012) broke
the deprecated txz-out API.  Because of a thinko during this commit,
instead of producing xz files it produces bzip2 files.

Fix this API again.

Thanks: Bo Fan / Red Hat QA team.
2013-06-10 16:08:05 +01:00
Matthew Booth
21f427801c inspect: Fix bogus warning for partitions without /boot.ini
Fix a bogus warning introduced by
5abb196de8. If a non-windows partition
hasn't been detected as something else and falls through to windows
detection, inspection would display a bogus warning about missing
/boot.ini.

RWMJ: Test if guestfs_is_file > 0, in case it returns an error.
2013-06-07 12:20:35 +01:00
Richard W.M. Jones
9585077202 inspection: Reformat is_systemroot declaration.
Just code motion.
2013-06-05 17:29:43 +01:00
Matthew Booth
5abb196de8 inspect: Partial support for non-standard windows system root
Support arbitrary windows system root for pre-vista systems where
boot.ini is on the same partition as the system root.
2013-06-05 17:24:10 +01:00
Matthew Booth
83b7d0a66e inspect: Add internal match6 function 2013-06-05 17:24:10 +01:00
Matthew Booth
f1385192ad inspection: Refactor windows systemroot detection to allow re-use
This change refactors guestfs___has_windows_systemroot to
guestfs___get_windows_systemroot. The new function returns a
dynamically allocated char * which must be freed.

The new function is no less efficient than before, as it returns the
result of guestfs___case_sensitive_path_silently, which is required
anyway. The new code is slightly more efficient than before, as it
re-uses the result of this testing in guestfs___check_windows_root
rather than running it again.
2013-06-05 17:24:09 +01:00
Olaf Hering
5add9cbe78 Set DISTRO to SUSE if /etc/SuSE-release exists
Signed-off-by: Olaf Hering <olaf@aepfle.de>
2013-06-04 15:43:46 +01:00
Richard W.M. Jones
012a4a5eb5 ocaml: Build dependencies for tests too. 2013-06-04 12:41:11 +01:00
Richard W.M. Jones
49bdaabc7d build: Add common-rules.mk, common rules for all Makefiles.
This file is mainly a central place to:

 - include localenv if it exists, and

 - define the RHEL 5 backwards compatibility macros, instead of
   spreading them over every other file.
2013-06-04 12:41:11 +01:00
Richard W.M. Jones
76321709d6 build: Don't include subdir-rules.mk in top level Makefile.am.
Also there are no generated files at the top level, so no need to
mention $(generator_built) in this file.
2013-06-04 12:41:11 +01:00
Richard W.M. Jones
94dbcb107f Quote ./configure --help output (options) properly. 2013-06-04 12:41:11 +01:00
Richard W.M. Jones
44b453d6fb build: Simplify and speed up expression that generates po/POTFILES.
This has to run on every build, so:

- Use two grep commands instead of lots.

- Remove unnecessary use of sed.

- Remove some obsolete directories that haven't existed for a long time.
2013-06-04 12:41:11 +01:00
Richard W.M. Jones
074e3b5c67 generator: Don't always recurse into the generator directory.
Previously, every subdirectory that contained generated files would
cause a recursion into the ../generator directory.  This was slow and
unnecessary.  Only recurse if the generator actually needs to be
rerun.

Note this changes the semantics slightly: For example if you added a
new action and just ran `make -C ocaml' then previously the generator
would be rerun, but now it would not.  However I'm not convinced the
previous semantics were that useful, particularly considering that
with this change a simple `make' is much faster.
2013-06-04 12:41:11 +01:00
Richard W.M. Jones
edf9d3c7f0 ocamldoc: Depend directly on guestfs.mli, guestfs.ml files, not wildcards. 2013-06-04 12:41:11 +01:00
Hilko Bengen
b7cd34eb77 python: Build extension with PEP-3149 compliant suffix if defined. 2013-06-04 00:31:57 +02:00
Hilko Bengen
7912e2936b perl: Use symlink hack from hivex 2013-06-04 00:21:39 +02:00