summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.3.12, update PO files.1.3.12Richard Jones2010-05-1413-6917/+7512
|
* Unify supermin appliance building using febootstrap 2.7Richard Jones2010-05-1310-1178/+41
|
* Improve errors from tar-in/tgz-in commands (RHBZ#591155 RHBZ#591250).Richard Jones2010-05-133-7/+46
| | | | | | | | | | | | | | | | | | | | This commit improves the error messages from the tar-in, tgz-in (etc) commands by capturing the stderr from the tar command in a file and sending that back in the error message. The method used for the error file is primitive, and there is a case for a more generic error file mechanism, but this will do for now. Sample error messages after this change: $ virt-tar -u /tmp/test1.img /tmp/not.tar / tar_in: tar subcommand failed on directory: /: tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors at /home/rjones/d/libguestfs/tools/virt-tar line 247. $ virt-tar -u /tmp/test1.img /tmp/test.tar / tar_in: tar subcommand failed on directory: /: tar: access.log: Cannot open: Read-only file system tar: Exiting with failure status due to previous errors at /home/rjones/d/libguestfs/tools/virt-tar line 247.
* Combine common code in daemon/tar.c.Richard Jones2010-05-131-120/+20
| | | | | This commit shouldn't result in any change in the semantics of the code.
* Fix FileIn cmds losing synch if both ends send cancel messages (RHBZ#576879).Richard Jones2010-05-1310-54/+71
| | | | | | | | | | | | | | | | | | | | | | | During a FileIn command (eg. upload, tar-in) if both sides experience errors, then both sides could send cancel messages, the result being lost synchronization. The reason for the lost synch was because the daemon was ignoring this case and sending an error message back which the library side (which had cancelled) was not expecting. Fix this by checking in the daemon for the case where the library also cancels during daemon cancellation, and not sending an error messages. This also includes an enhanced regression test which checks for this case. This extends the original fix in commit 5922d7084d6b43f0a1a15b664c7082dfeaf584d0. More details can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=576879#c5
* guestfish: Fix build error in 'print_shell_quote' function.Richard Jones2010-05-131-1/+1
| | | | | Amend commit 1c6ed48bd3cd471dc so the prototype of 'print_shell_quote' function is correct.
* fish: Fix guestfish -N option when called with unknown image type.Richard Jones2010-05-131-3/+5
| | | | | Previously it was falling off the end of the loop if you called it with an unknown image type.
* Improved error if virt-inspector cannot find OSes in image (RHBZ#591142).Richard Jones2010-05-136-7/+8
|
* Fix error message in string-e command (RHBZ#588651).Richard Jones2010-05-132-4/+39
|
* guestfish -i and virt-inspector work on filenames containing spaces ↵Richard Jones2010-05-132-26/+88
| | | | | | | | | | | | | | (RHBZ#507810). This commit fixes a long-standing bug which prevented guestfish -i and virt-inspector from working on disk images which had a space in the filename (or other unsafe characters). It works by ensuring that the strings passed between guestfish -i and virt-inspector are quoted correctly in both directions. Note that this commit adds a dependency from virt-inspector to the perl module String::ShellQuote. We have previously used this module in virt-make-fs.
* Add version numbers to Perl modules (RHBZ#521674).Richard Jones2010-05-123-14/+27
| | | | | | | | | | Sys::Guestfs now contains a version number which reflects the ABI that we are compiled against, ie. '0.<MAX_PROC_NR>'. This has the beneficial side effect of causing an error if the user tries to mix versions of the Perl module and the XS code. Sys::Guestfs::Lib now contains a synthetic version number which will reflect future changes in that module.
* Update PO files, including extra strings from Perl files.Richard Jones2010-05-1212-25/+6098
|
* po: Include strings from Perl programs in the PO files (RHBZ#559963).Richard Jones2010-05-127-29/+39
| | | | | | | | | xgettext will only recognize '*.pl' as being a Perl file (otherwise it treats it as a C file and does not correctly find any strings in it). This commit also fixes two actual bugs that xgettext found in the strings in our Perl programs.
* po: Don't generate po/Makevars file and include Perl keywords (RHBZ#559963).Richard Jones2010-05-123-14/+43
| | | | | | | | | I don't see a reason to autogenerate po/Makevars, and in the earlier commit which changed this file to being autogenerated we accidentally lost the special Perl keywords, copyright notice and bug reporting address. Fix all of that. This partially reverts commit febff9d2a35c4f40abbaf8943146476bdeac671e.
* Reduce imported functions in virt-df to ones which are actually used.Richard Jones2010-05-121-3/+1
|
* New API: fill-pattern for creating files with predefined patterns.Richard Jones2010-05-123-2/+61
|
* Run udev_settle() after swapon/swapoff (RHBZ#516096).Richard Jones2010-05-121-0/+5
|
* fish: With both '-x' and '-i', pass through '-x' to inferior process.Richard Jones2010-05-121-0/+2
|
* Version 1.3.11.1.3.11Richard Jones2010-05-0813-915/+871
|
* virt-rescue: Add extra options.Richard Jones2010-05-081-1/+44
| | | | This commit adds the extra options '--append', '--memsize' and '--selinux'.
* virt-rescue: Refresh documentation.Richard Jones2010-05-081-12/+45
|
* Revert "fish: Add 'please wait' message when launching (and interactive)."Richard Jones2010-05-081-2/+0
| | | | This reverts commit 01fedcde05c930c1413e9fe0909fa1da1f360cdf.
* fish: Add 'please wait' message when launching (and interactive).Richard Jones2010-05-081-0/+2
|
* launch: Rearrange the code so config check is first.Richard Jones2010-05-081-12/+12
| | | | | | | Move the config state check first in the guestfs_launch function, so that we don't reset g->launch_t or calculate the temporary directory in the case where the launch function will immediately return with an error.
* generator: FishAction is no longer used, remove this feature.Richard Jones2010-05-081-5/+1
|
* fish: Make 'launch' function static.Richard Jones2010-05-083-15/+13
| | | | | | This commit makes the launch function static and private to 'fish.c', and changes the generator so the function is no longer called for the 'run/launch' command.
* fish: In 'reopen' copy trace setting to new handle.Richard Jones2010-05-081-0/+4
|
* Ignore test1.img file in directory.Richard Jones2010-05-081-0/+1
|
* fish -N option unconditionally overwrites test*.img files.Richard Jones2010-05-082-7/+1
| | | | | This is more convenient and makes it consistent with the 'alloc' and 'sparse' commands.
* fish: Make '-x' option enable traces instead of using separate echo path.Richard Jones2010-05-081-9/+1
| | | | | | Previously we had separate code paths for echoing commands (-x) and tracing (guestfs_set_trace). This just unifies that so that the guestfish -x option enables tracing.
* inspector: Support filesystem-on-image VMs (RHBZ#590167).Richard Jones2010-05-071-4/+15
| | | | | | $ virt-df /tmp/dbroot.img Filesystem 1K-blocks Used Available Use% /tmp/dbroot.img:/dev/vda 3096336 593628 2345424 20%
* daemon: Use 'error' instead of 'perror' before calling 'abort'.Richard Jones2010-05-071-4/+5
|
* daemon: gnulib module 'error' is used directly by the daemon.Richard Jones2010-05-071-0/+1
|
* daemon: Use parens around code section for safety.Richard Jones2010-05-071-1/+2
|
* If qemu dies during launch, set an error message (RHBZ#588851).Richard Jones2010-05-071-4/+11
|
* Version 1.3.10.1.3.10Richard Jones2010-05-0713-1747/+999
|
* daemon: Fix read-file so it fails gracefully for large files (RHBZ#589039).Richard Jones2010-05-073-9/+32
| | | | | | | | | | | | | | | | Pengzhen Cao noticed that read-file would fail for files larger than the protocol size; this is *not* the bug. However it would also lose protocol synchronization after this. The reason was that functions which return RBufferOut in the generator must not 'touch' the *size_r parameter along error return paths. I fixed read-file and initrd-cat, and I checked that pread was doing the right thing. This also adds regression tests for read-file with various categories of large file.
* daemon: Fix wc* commands to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-072-9/+14
|
* daemon: Fix strings to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-072-8/+15
|
* daemon: Fix head and tail commands to work on absolute symbolic links ↵Richard Jones2010-05-072-9/+14
| | | | (RHBZ#579608).
* daemon: Fix grep and related to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-072-9/+14
|
* daemon: Fix checksum to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-072-12/+27
|
* daemon: Fix hexdump to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-072-8/+15
|
* daemon: Fix for commands working on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-074-5/+107
| | | | | | | | | | | | | | | | The original idea (suggested by Al Viro) was to fork and chroot into the sysroot and read the file from there. Because of the separate process being chrooted, absolute links would be resolved correctly. The slightly modified idea is to open the file in the daemon process (but temporarily chrooted, so symlinks resolve correctly), fork, and have the subprocess just be responsible for copying the file. (Strictly speaking we don't need to fork, but this implementation is simpler). This commit just includes the changes needed to the command*() functions in daemon/guestfsd.c and adds an absolute symlink to the test ISO for testing it. Later commits will fix the broken daemon commands themselves.
* daemon: Change command to abort() on resource problems.Richard Jones2010-05-071-7/+12
| | | | | | | | | | | | | The comment in the code describes it thus: /* Note: abort is used in a few places along the error paths early * in this function. This is because (a) cleaning up correctly is * very complex at these places and (b) abort is used when a * resource problem is indicated which would be due to much more * serious issues - eg. memory or file descriptor leaks. We * wouldn't expect fork(2) or pipe(2) to fail in normal * circumstances. */
* Warn instead of dying if grub refers to non-existent kernelMatthew Booth2010-05-071-2/+8
|
* Update to latest gnulib.Richard Jones2010-05-063-0/+6
|
* Use link-local addresses between appliance and host (RHBZ#588763).Richard Jones2010-05-042-5/+5
|
* Change network configuration to use macros.Richard Jones2010-05-042-9/+34
| | | | | | | | | | | | | Change the network configuration so everything is set using some macros at the top of src/guestfs.c. Also, rename the macros used in the daemon so they are not the same. It was a very long time since these sets of macros had to match the ones defined in src/guestfs.c, despite what the comment said. Note that this commit should not change the semantics of the program at all.
* Update Spanish translations (RHBZ#588733).Daniel Cabrera2010-05-041-585/+1338
|