summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* allow use of #if HAVE_CONFIG_H, for example codeJim Meyering2009-08-031-0/+2
| | | | * .x-sc_prohibit_have_config_h: New file, to exempt examples.
* guestfs: fix typo in my recent changeJim Meyering2009-08-031-3/+3
| | | | | * src/guestfs.c (guestfs_perrorf): Rename former err to errnum, to avoid compilation error.
* Guard #inclusion of config.h in examples.Jim Meyering2009-08-032-2/+6
| | | | | * examples/hello.c [HAVE_CONFIG_H]: Include <config.h> conditionally. * examples/to-xml.c: Likewise.
* build: reenable "syntax-check" rule: sc_const_long_optionJim Meyering2009-08-034-4/+3
| | | | | | | * cfg.mk (disable_temporarily): Remove sc_const_long_option. * daemon/guestfsd.c (main): Declare long_options to be "const". * fish/fish.c (main): Likewise. * test-tool/test-tool.c (main): Likewise.
* build: temporarily disable failing "syntax-check" rulesJim Meyering2009-08-031-0/+14
| | | | * cfg.mk (disable_temporarily): Define.
* maint: use a git submodule for gnulibJim Meyering2009-08-0311-839/+263
| | | | | | | | | | | | | | * .gitmodules: New file, to track gnulib. * .gnulib: Submodule directory. * Makefile.am (EXTRA_DIST): Don't list config.rpath or gitlog-to-changelog. * autogen.sh: Adapt to use the new submodule. * cfg.mk: New file. (SUBDIRS): Add gnulib/lib and gnulib/tests. (dist-hook): Reflect new location of getlog-to-changelog. * configure.ac: Set build-aux/ as AUX_DIR. Invoke gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
* always include <config.h>Jim Meyering2009-08-034-0/+4
| | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise.
* build: add -I option to get config.h.Jim Meyering2009-08-031-2/+5
| | | | | * ocaml/Makefile.am (AM_CPPFLAGS): Define. (guestfs_c.o, guestfs_c_actions.o): Use it.
* guestfs: don't fault upon failed vasprintfJim Meyering2009-08-031-1/+3
| | | | * src/guestfs.c (guestfs_perrorf): Handle failed vasprintf.
* Cleanup whitespace warnings in Lib.pmMatthew Booth2009-08-031-4/+4
|
* Use grub entries to find Linux kernelsMatthew Booth2009-08-032-89/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds grub parsing to Lib.pm. It adds the following structure to $os: {boot} ->{configs} ->[0] ->{title} = "Fedora (2.6.29.6-213.fc11.i686.PAE)" ->{kernel} = \kernel ->{cmdline} = "ro root=/dev/mapper/vg_mbooth-lv_root rhgb" ->{initrd} = \initrd ->{default} = 0 The kernel and initrd entries are just references to their top level entries under kernels and initrd_modules respectively. It also changes the way Linux kernels and initrd are discovered. Instead of searching /lib/modules and /boot for files with matching names, kernels and initrds are scanned as they are discovered in grub.conf. Additionally, the following attributes are added to the kernels top level entry: * path The path to the kernel's vmlinuz file. * package The name of the package which installed the kernel. The xml output of virt-inspector is updated to reflect all of the above changes.
* guestfish: Display RStructList results more pleasantly.Richard W.M. Jones2009-07-311-15/+28
|
* Add interface to Linux 'inotify' API.Richard W.M. Jones2009-07-317-3/+433
|
* lib: Add selinux=0 to default kernel command line.Richard W.M. Jones2009-07-311-1/+2
| | | | | | | | | | | SELinux exists in a very disturbed state if it is enabled at boot time, but no policy is loaded. In particular, it messes up the security.selinux extended attributes on files in a not-very-useful way. We can't enable SELinux because we don't know what policy can or should be loaded. Therefore it's best to disable it completely.
* 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
|