summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update incorrect comment in Lib.pmMatthew Booth2009-07-311-10/+8
| | | | | Related: change the name of the function the comment describes to be more accurate.
* Improve warnings about missing tests.Richard W.M. Jones2009-07-311-5/+26
| | | | | | | Don't warn where a command just has no tests. Instead check other commands' tests so we get a definitive (and much smaller) list of commands that are not tested anywhere.
* New commands: swapon-*, swapoff-*, mkswap-file.Richard W.M. Jones2009-07-315-9/+225
| | | | | | | | | | | | swapon-device swapoff-device swapon-file swapoff-file swapon-label swapoff-label swapon-uuid swapoff-uuid mkswap-file
* New command: 'fallocate' to (pre-)allocate sized files.Richard W.M. Jones2009-07-316-2/+76
|
* New commands: 'ln', 'ln-f', 'ln-s', 'ln-sf' and 'readlink'.Richard W.M. Jones2009-07-316-3/+187
| | | | | These commands can be used to make hard and symbolic links. The readlink command is used to read existing symbolic links.
* Add 'realpath' command.Richard W.M. Jones2009-07-315-2/+57
|
* Ignore failure of 'mv' commands in appliance Makefile.Richard W.M. Jones2009-07-311-2/+2
| | | | | A lot of people report these as 'errors' when they are not. Hide the error messages.
* configure.ac: more quotingJim Meyering2009-07-301-11/+18
| | | | | Also, prohibit an invalid value of $JAVA_HOME, since it must be used unquoted below.
* build: If guestfwd test fails, need to print AC_MSG_RESULT 'no'Richard Jones2009-07-301-0/+1
|
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Richard W.M. Jones wrote: > On Wed, Jul 29, 2009 at 10:50:44PM +0200, Jim Meyering wrote: >> The test for febootstrap-to-initramfs' --nocompress option >> was always failing for me on F11. Here's why: > [...] > > Ouch that's obscure. I've applied this patch and the previous > one you sent too. Thanks! Our messages crossed. Rebasing my fixed patch and adjusting the log: >From 9e7846da50ceeee57187f703835bd3975e789719 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: quote the other option test similarly * configure.ac: Quote properly.
* build: fix test for --nocompress optionJim Meyering2009-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test for febootstrap-to-initramfs' --nocompress option was always failing for me on F11. Here's why: $ bash ~/w/co/libguestfs:210-comment-fix $ t=`febootstrap-to-initramfs 2>&1` [Exit 1] $ if ! echo $t|grep -sq -- --nocompress; then echo not found; fi not found Notice: without quotes, the [--nocompress] term expands to "k", because I happen to have a temporary file named "k": $ echo $t Usage: febootstrap-to-initramfs [--files=filelist] k DIR Please read febootstrap-to-initramfs(8) man page for more information. $ echo "$t" Usage: febootstrap-to-initramfs [--files=filelist] [--nocompress] DIR Please read febootstrap-to-initramfs(8) man page for more information. a simpler example gives a clue: $ touch a b c $ echo [--z] a b c $ echo [--a] a $ echo [--b] a b it's interpreting [--nocompress] as a range: "-" through "n", plus the other characters, ocmpres. "k" falls in the --n range. Anyhow, here's the fix: >From 84855642ed41828d01d55123cfab8d8dede759c1 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 16:33:02 -0400 Subject: [PATCH] build: fix test for --nocompress option * configure.ac: Fix underquoting bug that would cause the test for febootstrap-to-initramfs' --nocompress option always to fail with certain-letter-named files in the top directory.
* fix comments; move declarationsJim Meyering2009-07-301-6/+4
| | | | | | * daemon/devsparts.c (do_list_devices, do_list_partitions): Remove stray words in comments. Move declarations down to definition.
* Whitespace and comment changes.Richard Jones2009-07-291-1/+14
|
* df: Fix alignment of columns.Richard Jones2009-07-291-1/+1
|
* guestfish: Make more strings translatable.Richard Jones2009-07-295-71/+1669
| | | | | However this doesn't yet attempt to translate the POD command documentation. We need a plan to do that.
* tests: Use squashfs for static data where possible.Richard Jones2009-07-292-87/+63
| | | | | | | | | Instead of creating a new InitBasicFS for just about every test, where a test doesn't need to write to the filesystem it is far faster to use prepared data on an InitSquashFS instead. This commit changes as many tests as possible to make this so, making the tests much faster.
* tests: Fix read_file test.Richard Jones2009-07-294-5/+33
| | | | | | | | | The test ignored the fact that this function returns a (char *, size_t) pair, and just treated the char * as a string. This of course would fail if the string didn't happen to be nul-terminated. The tests are updated to add a new TestOutputBuffer type which should be used with functions that return RBufferOut.
* Implement '*grep*' family of commands.Richard Jones2009-07-299-6/+260
|
* Updated Polish translations (Piotr Drąg).Richard Jones2009-07-291-100/+162
|
* Version 1.0.65.1.0.65Richard Jones2009-07-293-7/+7
|
* Updated PO files.Richard Jones2009-07-293-182/+223
|
* build: avoid locale-specific changes in generated, VC'd fileJim Meyering2009-07-292-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I build with LC_ALL=C in my environment, the all-local rule generates po/POTFILES.in that is sorted differently from the on that is checked in: diff --git a/po/POTFILES.in b/po/POTFILES.in index ca01b3d..154915a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -63,12 +63,11 @@ fish/tilde.c fish/time.c inspector/virt-inspector.pl java/com_redhat_et_libguestfs_GuestFS.c -ocaml/guestfs_c_actions.c ocaml/guestfs_c.c +ocaml/guestfs_c_actions.c perl/bindtests.pl -perl/Guestfs.c -perl/lib/Sys/Guestfs/Lib.pm perl/lib/Sys/Guestfs.pm +perl/lib/Sys/Guestfs/Lib.pm python/guestfs-py.c ruby/ext/guestfs/_guestfs.c src/guestfs-actions.c If we generate that file so that sort always uses the C locale, then, this type of difference will not arise. Here's the patch to fix the rule as well as to reflect the change in the generated file: >From 609e1d1840da25614a7c9e8954e5356050c9f2ad Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Wed, 29 Jul 2009 08:13:35 -0400 Subject: [PATCH] build: avoid locale-specific changes in generated, VC'd file * Makefile.am (all-local): Use LC_ALL=C to sort in C locale. * po/POTFILES.in: Regenerate.
* On RHEL 5, 'file' command prints 'AMD x86-64' for 'x86-64' arch.Richard W.M. Jones2009-07-291-0/+2
|
* Run cpio with --quiet option so it doesn't print 'xx blocks'Richard Jones2009-07-291-1/+1
|
* Lib.pm: Skip tests if perl-libintl module is not available.Richard Jones2009-07-292-2/+23
|
* Lib.pm: Use Perl backtick instead of slurp (Aron Griffis).Richard Jones2009-07-291-3/+1
|
* Don't show empty CD devices (RHBZ#514505).Richard Jones2009-07-291-0/+27
|
* ocaml: Rebuild the tests from source if the main library changes.Richard Jones2009-07-291-0/+5
|
* inspector: Determine guest architecture.Richard Jones2009-07-293-21/+113
| | | | | | | This commit adds kernel and userspace architecture detection (fully for Linux, partially for Windows). It adds an architecture for each kernel detected, and an architecture for each root (ie. userspace) found.
* Lib.pm: Add file_architecture command.Richard Jones2009-07-2916-6/+306
| | | | | This command detects the architecture of some types of binaries, libraries, kernel modules and initrd images.
* Lib: Document the $ro parameter for mount_operating_system properly.Richard Jones2009-07-291-4/+5
|
* Mention related tools in the manual page.Richard Jones2009-07-291-0/+7
|
* Whitespace: indent some names in images/Makefile.am correctly.Richard Jones2009-07-281-12/+12
|
* Lib.pm: Use 'file' as replacement for 'zfile'.Richard Jones2009-07-281-4/+4
|
* Pass '-z' parameter to 'file' command so it looks inside compressed files.Richard Jones2009-07-282-4/+8
| | | | Also we deprecate the old 'zfile' command.
* Add DeprecatedBy flag to mark functions which are deprecated.Richard Jones2009-07-281-12/+53
|
* Need to declare asprintf_nowarn as inline to avoid gcc complaining.Richard Jones2009-07-281-1/+1
|
* Replace shell_quote function with %Q and %R printf specifiers.Richard Jones2009-07-289-104/+176
| | | | | | | %Q => simple shell quoted string %R => path will be prefixed by /sysroot eg. snprintf (cmd, sizeof cmd, "cat %R", path); system (cmd);
* Add InitSquashFS test type, for tests that just use the squashfs (/dev/sdd).Richard Jones2009-07-271-45/+43
| | | | | This also speeds up those tests because we don't have to wait to create a filesystem which is never used.
* Make read-only optional in mount_operating_system()Matthew Booth2009-07-241-2/+10
|
* More ideas on a quick Perl one-liner syntax for TODO file.Richard W.M. Jones2009-07-241-0/+31
|
* guestfish -iv should print virt-inspector command (for debugging).Richard W.M. Jones2009-07-241-1/+3
|
* Reformat the TODO file.Richard W.M. Jones2009-07-241-44/+90
|
* Pass cgroup_disable=memory, saves ~ 5MB of RAM.Richard Jones2009-07-241-1/+2
|
* get_append call can return NULL, but bindings didn't handle it.Richard Jones2009-07-231-32/+125
| | | | | It's not a good idea because there is no way to return an error indication. However at least this means it won't segfault.
* RHEL 5 thinks squashfs is HFS+ filesystem, unless we specify the type ↵Richard Jones2009-07-231-1/+1
| | | | explicitly.
* Remove hard-coded qemu-kvm, replace with $QEMU.1.0.64Richard Jones2009-07-231-2/+2
|
* Version 1.0.631.0.63Richard Jones2009-07-233-133/+395
|
* Add libguestfs-test-tool.Richard Jones2009-07-2211-1/+714
| | | | | | | | | | | This is an end-user testing tool, designed to test basic functionality of libguestfs/qemu/kernel combination on the end-user's final host machine. It does not perform a thorough test, but should be enough to find most booting issues. Also this is intended to be used when reporting bugs.
* Fix typo in error message.Richard Jones2009-07-221-1/+1
|