2890 Commits

Author SHA1 Message Date
Richard W.M. Jones
ebe3d8f43a Version 1.11.14. 1.11.14 2011-07-06 17:25:00 +01:00
Richard W.M. Jones
407d8fe1db mkfs-opts: Don't test optional arguments in this test. 2011-07-06 10:53:04 +01:00
Nikita A Menkovich
39d5c63be6 mkfs-opts: Add optional sectorsize parameter. 2011-07-06 10:52:04 +01:00
Richard W.M. Jones
f7a11c6043 capitests: Allow tests to properly test optional arguments.
For optional arguments, you can now specify empty string to mean no
argument, except for String optional arguments where you must use
"NOARG" (empty string meaning a supplied empty string argument).
2011-07-06 10:52:04 +01:00
Nikita A Menkovich
24fb2c1255 Implement inode option to mkfs_opts command.
This is needed because older versions of grub(for example in centos)
do not understand filesystems created with newer version of e2fsprogs.
By default in e2fsprogs 1.4+ creates partitions with 256 bit inode
size, and grub expect 128 bit size.
2011-07-04 10:35:56 +01:00
Richard W.M. Jones
436f8df147 Version 1.11.13. 1.11.13 2011-06-30 16:06:07 +01:00
Richard W.M. Jones
f3ada2c765 Add caution subdirectory containing safety and liveness tests.
Not that I'm paranoid about qemu breaking snapshots of anything like
that ...
2011-06-30 14:36:02 +01:00
Richard W.M. Jones
1acb82e9f7 Update release notes. 2011-06-30 12:06:09 +01:00
Richard W.M. Jones
76bd81820f inspector: Update documentation to cover <icon> element.
This updates commit 7f16c346bb.
2011-06-30 11:36:38 +01:00
Richard W.M. Jones
8c5bdc3e12 python: Add explicit g.close() method (RHBZ#717786). 2011-06-30 10:14:33 +01:00
Richard W.M. Jones
81fbdee6cc docs: Update API support. 2011-06-29 13:41:50 +01:00
Richard W.M. Jones
21c118a20e Version 1.11.12. 1.11.12 2011-06-28 19:52:11 +01:00
Richard W.M. Jones
dfb89e3556 fish: Add 'display' command for displaying graphical files. 2011-06-28 18:58:54 +01:00
Richard W.M. Jones
7f16c346bb New API: inspect-get-icon returns the guest icon.
This API returns the guest's favicon if found, else an icon
representing the guest operating system.  Currently supported by this
patch: Fedora, RHEL and derivatives, Debian (but not Ubuntu),
Windows XP, Windows 7.

This also updates virt-inspector to include an <icon> element
containing the icon in base64 encoding.
2011-06-28 18:41:54 +01:00
Richard W.M. Jones
5f26270c34 Change download_to_tmp so it can work with multi-root operating systems.
The previous guestfs___download_to_tmp function did not handle
multiboot correctly.  In particular it used the same cache name
for downloaded files from different roots, which could have caused
things like applications in each root to be confused.

This changes the function so that the cache filename is prefixed
with the root / fs number, eg. $tmpdir/0-Name instead of $tmpdir/Name.

This change also requires the function to return the new name, so
all places in the code which called this function had to be
updated.

This updates and fixes commit 3c1f762abe.
2011-06-28 17:03:08 +01:00
Richard W.M. Jones
adb5db58d8 generator: Fix functions with both RBufferOut and optional args.
No current function returns RBufferOut and has optional args.  Such
functions would be generated incorrectly.

RBufferOut implies a silent "size_t *size_r" argument is added after
the regular arguments and before the optional arguments.  Various
changes to the code generator need to be made to take this into
account.
2011-06-28 17:03:08 +01:00
Richard W.M. Jones
ea96c7acf7 inspector: Fix comment in virt-inspector.rng.
The comment referred to the command line syntax of the old
virt-inspector.
2011-06-28 17:03:08 +01:00
Richard W.M. Jones
b3c1dcfaee inspection: Remove note about root device string.
This is a fairly pointless note/warning since (a) you can't use the
API if you don't pass a root device string and (b) the code gives you
a good error message if you pass something that is not a root device
string.
2011-06-28 10:48:58 +01:00
Richard W.M. Jones
478f6c5bdb guestfs.h: Tidy up *_argv structs and other #defines. 2011-06-28 10:48:58 +01:00
Richard W.M. Jones
123610f1b5 Revert "Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)"
This reverts commit 5cab0d6c80.
2011-06-28 09:48:46 +01:00
Richard W.M. Jones
14bb3b5ae7 New API: mount-9p lets you mount 9p filesystems (RHBZ#714981).
The updated patch makes 'options' into an optional parameter.
2011-06-22 15:24:05 +01:00
Richard W.M. Jones
5f10c33503 New API: list-9p lists 9p filesystem mount tags (RHBZ#714981). 2011-06-22 13:22:52 +01:00
Richard W.M. Jones
56b94f5f6a trace: Print empty list correctly.
Empty lists returned by RStringList and RHashtable functions
were incorrectly printed as [""].

Fix this so they are printed as [] instead.
2011-06-22 10:37:42 +01:00
Richard W.M. Jones
e1e78bcef5 Version 1.11.11. 1.11.11 2011-06-21 13:22:16 +01:00
Richard W.M. Jones
9287197a85 Enable deprecated option only with gcc >= 4.5.
Before gcc 4.5, the deprecated option did not take the optional string
argument (see [1]).  This caused compilation to fail with gcc < 4.5.

[1] http://gcc.gnu.org/gcc-4.5/changes.html
2011-06-20 10:35:02 +01:00
Richard W.M. Jones
cabfaa857f perl: Ignore MYMETA.yml.
This file is created by one of the build tools used by Perl 5.14.
2011-06-18 13:04:18 +01:00
Richard W.M. Jones
ba9343b52d todo: Idea for interactive disk creator program. 2011-06-18 13:01:12 +01:00
Richard W.M. Jones
5c3c7e8825 perl: Don't use qw() as parentheses.
In Perl 5.14:

Use of qw(...) as parentheses is deprecated at perl/blib/lib/Sys/Guestfs/Lib.pm line 1111.
2011-06-18 13:00:00 +01:00
Richard W.M. Jones
4ee190628b generator: Rewrite UUIDs that begin with zero byte.
In util-linux <= 2.19, mkswap -U cannot handle the first byte of the
UUID being zero, so we artificially rewrite such UUIDs.

See: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/4273
2011-06-13 18:58:53 +01:00
Richard W.M. Jones
1f59849a4a Version 1.11.10. 1.11.10 2011-06-10 16:03:55 +01:00
Jim Meyering
daf55c0797 build: include <string.h> for src/match.c's use of strlen 2011-06-10 12:32:21 +01:00
Jim Meyering
343ba6d482 bootstrap: use --libtool 2011-06-10 12:29:49 +01:00
Jim Meyering
92a7d592df build: update to latest gnulib
* .gnulib: Update submodule to latest.
* daemon/m4/gnulib-cache.m4: Regenerate.
2011-06-10 12:29:38 +01:00
Richard W.M. Jones
f5096dd546 daemon: Keep Coverity happy by ignoring some return values. 2011-06-09 10:53:52 +01:00
Richard W.M. Jones
29453a58d8 Coverity: Don't return freed pointers from command* along error path.
If the external command failed to run, we could free up the allocated
*stdoutput and *stderror pointers, but then return those freed
pointers to the caller.  The caller usually tries to print and free
*stderror, so this is a serious error.

Instead, return *stdoutput as NULL, and *stderror pointing to a
generic error message.
2011-06-09 10:53:51 +01:00
Richard W.M. Jones
7a091a11d7 Coverity: Missing return on error path. 2011-06-09 10:53:51 +01:00
Richard W.M. Jones
346c5b0ebf Coverity: Ensure fp is closed along all error paths. 2011-06-09 10:53:51 +01:00
Richard W.M. Jones
7c020a1480 Coverity: Close directory handle along error paths. 2011-06-09 10:53:46 +01:00
Richard W.M. Jones
869c11b30c Coverity: Don't leak argv arrays. 2011-06-09 10:53:38 +01:00
Richard W.M. Jones
3135b8c378 Coverity: Don't leak error strings. 2011-06-09 10:53:23 +01:00
Richard W.M. Jones
7fae594df7 Coverity: Check return value of sysroot_path.
For some reason we were checking the parameter!
2011-06-09 10:53:22 +01:00
Richard W.M. Jones
3a5bd5aba2 Coverity: Check return value of malloc. 2011-06-09 10:53:22 +01:00
Richard W.M. Jones
76dfb74324 Coverity: Don't close fd_cwd if fd_cwd == -1. 2011-06-09 10:53:22 +01:00
Richard W.M. Jones
3ed8d51220 Coverity: Avoid calling sort_strings (NULL, 0) on empty list. 2011-06-09 10:53:22 +01:00
Richard W.M. Jones
48ebf50f31 Coverity: Don't call free_strings (NULL). 2011-06-09 10:53:22 +01:00
Richard W.M. Jones
9160eec4fb Coverity: Remove unreachable code. 2011-06-09 10:53:12 +01:00
Richard W.M. Jones
bfc02f78f3 init: Remove timeout in udevadm settle command.
The given timeout (10s) was too low if the appliance was
running slowly, which caused a cascade of other failures
during tests.

Note that in udev-171 and above on Fedora, /sbin/start_udev
no longer exists, so now we are using this manual method to
start udevd.
2011-06-08 13:12:01 +01:00
Richard W.M. Jones
2f73ea343c protocol: Enhance "unexpected end of file when reading from daemon" error.
Make this error more informative, since it is a common error when the
appliance fails to start up.
2011-06-07 12:36:02 +01:00
Richard W.M. Jones
9ce239a836 Version 1.11.9. 1.11.9 2011-06-04 22:48:13 +01:00
Richard W.M. Jones
cdd11b758f Only include date, not time, in BUGS file.
This is so the file does not change so often when using 'make dist'.
2011-06-04 22:48:13 +01:00