summaryrefslogtreecommitdiffstats
path: root/images
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Fix for commands working on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-0/+4
| | | | | | | | | | | | | | | | 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.
* New APIs: base64-in and base64-out for uploading/downloading base64 content.Richard Jones2010-04-191-0/+4
|
* New API calls to upload/download txz files (RHBZ#580556).Richard Jones2010-04-082-0/+2
|
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* tests: Use ISO instead of squashfs.Richard Jones2009-08-191-7/+9
| | | | | The squashfs format changes too much. Use an ISO file for the tests instead.
* tests: Use squashfs for static data where possible.Richard Jones2009-07-291-3/+6
| | | | | | | | | 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-293-1/+8
| | | | | | | | | 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-292-4/+18
|
* Lib.pm: Add file_architecture command.Richard Jones2009-07-2912-3/+54
| | | | | This command detects the architecture of some types of binaries, libraries, kernel modules and initrd images.
* Whitespace: indent some names in images/Makefile.am correctly.Richard Jones2009-07-281-12/+12
|
* RHEL 5: $(builddir) did not exist with this old autoconf/automake, so ↵Richard Jones2009-07-071-6/+9
| | | | workaround.
* Make it possible to build in a separate directoryMatthew Booth2009-07-031-3/+17
| | | | | | | | | | | | | | | | | | | | | | This patch allows you to do: mkdir build cd build ../configure ... make This will output all generated files to the build directory. Given that autogen automatically runs configure, you can also do: BUILDDIR=./build ./autogen.sh which will do the right thing. Also: * Fix a dependency bug which means that guestfs_protocol.h isn't automatically rebuilt. * Re-running autogen.sh with no arguments won't blow away your previous configure arguments.
* Remove generated files in make clean.Richard W.M. Jones2009-06-291-2/+5
|
* Add 'initrd-list' command to list contents of initrd images.Richard W.M. Jones2009-06-291-1/+7
| | | | | | Add 'initrd-list' command to list the files inside (new-style) initrd images. Update virt-inspector to use this instead of the less efficient download/unpack locally method.
* Generated code for head/tail commands.Richard W.M. Jones2009-06-291-1/+1
|
* Add large test files with standard content for the C API test.Richard W.M. Jones2009-06-291-1/+31
| | | | | Large test files with standard content for the C API test, and add a regression test for previous hexdump failure on large files.
* Use a squashfs attached as /dev/sdd during the C API tests.Richard W.M. Jones2009-05-295-1/+41
|
* build: don't tell "make clean" to remove my '~' backup filesJim Meyering2009-04-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi Rich, automake's policy on what to remove via "make clean" is reasonable: if running build rules creates it, then "make clean" can and should remove it. However, even if build rules happen to create backup files, please remove only the specific ones they can create, not all of the ones in a directory. Just in case someone relies on those and expect them to hang around... >From 1e8be391ac17b4ddcf9671e8413d2660844e6993 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Thu, 30 Apr 2009 15:47:52 +0200 Subject: [PATCH] build: don't tell "make clean" to remove my '~' backup files * Makefile.am (CLEANFILES): Don't remove '~' backup files. * daemon/Makefile.am: Ditto. * examples/Makefile.am: Ditto. * fish/Makefile.am: Ditto. * images/Makefile.am: Ditto. * inspector/Makefile.am: Ditto. * java/Makefile.am: Ditto. * ocaml/Makefile.am: Ditto. * ocaml/examples/Makefile.am: Ditto. * perl/Makefile.am: Ditto. * python/Makefile.am: Ditto. * ruby/Makefile.am: Ditto. * src/Makefile.am: Ditto.
* Added tar-in, tar-out, tgz-in, tgz-out commands.Richard Jones2009-04-203-1/+4
|
* Remove *~ files when doing 'make clean'.Richard Jones2009-04-091-0/+2
|
* Added framework for the language bindings.Richard Jones2009-04-071-0/+18
|
* Added images/ directory for test images, and one image.Richard Jones2009-04-031-0/+0