summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* out-of-tree build: fix make and make installHilko Bengen2011-08-171-2/+2
| | | | | $(srcdir) is not needed for guestfs_c.c. *.mli only exists in $(srcdir) and isn't found on "make install" otherwise
* out-of-tree build: fix documentation generation IIHilko Bengen2011-08-171-2/+2
|
* out-of-tree build: remove unneeded explicit pathsHilko Bengen2011-08-173-7/+7
|
* Improve zeroing and detection of zeroes.Richard W.M. Jones2011-08-162-21/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code modifies zero, zero-device, is-zero, is-zero-device. zero and zero-device are modified so that if the blocks of the device already contain zeroes, then we don't write zeroes. The reason for this is to avoid unnecessarily making the underlying storage non-sparse or (in the qcow2 case) growing it. is-zero and is-zero-device are modified so that zero detection is faster. This is a nice side effect of making the first change. Since avoiding unnecessary zeroing involves reading the blocks before writing them, whereas before we just blindly wrote, this can be slower. As you can see from the tests below, in the case where the disk is sparse, it actually turns out to be faster, because we avoid allocating the underlying blocks. However in the case where the disk is non-sparse and full of existing data, it is much slower. There might be a case for an API flag to adjust whether or not we perform the zero check. I did not add this flag because it is unlikely that the caller would have enough information to be able to set the flag correctly. (Elapsed time in seconds) Format Test case Before After Raw Sparse 16.4 5.3 Preallocated zero 17.0 18.8 Preallocated random 16.0 41.3 Qcow2 preallocation=off 18.7 5.6 preallocation=metadata 17.4 5.8 The current code uses a fixed block size of 4K for reading and writing. I also tried the same tests with a block size of 64K but it didn't make any significant difference. (Thanks to Federico Simoncelli for suggesting this change)
* recipes: Remove two C file dependencies which are not actually used in the POD.Richard W.M. Jones2011-08-151-1/+1
|
* out-of-tree build: fix building libraryHilko Bengen2011-08-151-3/+3
|
* out-of-tree build: Fix up OCaml bindings and generatorHilko Bengen2011-08-152-15/+15
|
* out-of-tree build: fix applianceHilko Bengen2011-08-151-0/+1
|
* out-of-tree build: fix documentation generationHilko Bengen2011-08-1520-65/+66
|
* ruby: Fix typo in Ruby bindings file.Richard W.M. Jones2011-08-141-2/+2
|
* Note that additional memory may be required to typecheck Augeas lenses ↵Richard W.M. Jones2011-08-121-1/+6
| | | | (RHBZ#729887).
* fish: Document that remote run in cmd substitution context hangs.Richard W.M. Jones2011-08-121-0/+11
| | | | This documents bug 592910.
* Version 1.13.4.1.13.4Richard W.M. Jones2011-08-1118-434/+332
|
* Fix 'unknown filesystem' warnings in old inspection code (RHBZ#678231 ↵Richard W.M. Jones2011-08-111-14/+20
| | | | | | | | | | RHBZ#666578). This is a comprehensive fix for the warnings from the old (and obsolete) Perl inspection code. For a full description and reproducer, see: https://bugzilla.redhat.com/show_bug.cgi?id=678231#c5
* inspection: Better checking for Windows root disks (RHBZ#729075).Richard W.M. Jones2011-08-083-30/+75
| | | | | | | | | | | | | | | | | Previously any disk that had /autoexec.bat or /boot.ini or /ntldr would be picked up as a candidate for a Windows root disk. If further checking could not find any systemroot (eg. /windows) then this would result in complete failure of inspection. In particular, this got confused by Hp_recovery partitions which have /autoexec.bat, but don't have a systemroot in one of the usual places (they have /MiniNT instead). What we do now is to properly investigate all possible systemroot places before deciding this is a Windows systemroot, so the subsequent failure cannot occur. (Thanks to lorimar for reporting this bug).
* build: Set TMPDIR for local testing.Richard W.M. Jones2011-08-0818-17/+44
| | | | | | This avoids conflicts with the globally installed libguestfs appliance, or lets us build in multiple local directories at the same time without conflicts.
* Version 1.13.3.1.13.3Richard W.M. Jones2011-08-0720-10956/+11709
|
* daemon: Don't include .gitignore in EXTRA_DIST.Richard W.M. Jones2011-08-071-2/+1
| | | | This updates commit 60d5a50f4d3d9e2c2f5a7d42a6859de709bda3f6.
* fish: Add setenv and unsetenv commands.Richard W.M. Jones2011-08-074-0/+88
| | | | | These commands allow you to manipulate the environment within guestfish.
* fish: Declare run_* functions in a generated header file.Richard W.M. Jones2011-08-074-41/+24
| | | | | Calls to these functions are generated, so there is no need to declare the functions by hand.
* docs: Move deprecation notice up to the top in C man page.Richard W.M. Jones2011-08-061-4/+5
|
* docs: Emphasize deprecation notice in man pages.Richard W.M. Jones2011-08-061-1/+1
|
* docs: Fix function names in deprecation notices.Richard W.M. Jones2011-08-062-4/+4
|
* docs: guestfs_set_out_of_memory_handler returns void, not int.Richard W.M. Jones2011-08-061-2/+2
| | | | It always has done. The documentation was wrong.
* docs: Clarify error handler example.Richard W.M. Jones2011-08-061-4/+5
|
* fish: Fix regression tests for new guestfish line numbers.Richard W.M. Jones2011-08-051-1/+1
| | | | This updates commit 319e946b92e175c05cdd1fdcb85c9b86f5631011.
* fish: Print input file and line number in error messages.Richard W.M. Jones2011-08-054-0/+34
| | | | | eg: *stdin*:37: libguestfs: error: luks_close: Device lukstest is busy.
* gnulib: Add all other libs when linking libguestfs.so.Richard W.M. Jones2011-08-051-2/+9
| | | | This updates the previous two commits.
* gnulib: Add $(LIB_CLOCK_GETTIME) when linking libguestfs.so.Richard W.M. Jones2011-08-051-1/+2
| | | | | We don't use this library (it is only used in the daemon), but we need to add this to make the linker happy.
* daemon: Remove separate configure of daemon subdirectory.Richard W.M. Jones2011-08-059-531/+175
| | | | | | | | | | | | | Combine the two Gnulib instances together. Add checks from old daemon/configure.ac into configure.ac. Fix daemon/Makefile.am so it is like a normal subdirectory Makefile.am. Because we are now using the replacement strerror_r function from Gnulib (instead of the one from glibc directly), this requires a small change to src/guestfs.c.
* Update TODO.Richard W.M. Jones2011-08-051-0/+22
|
* debian: bash is required to run libtool replacement script.Richard W.M. Jones2011-08-051-1/+1
| | | | This was failing on Debian where $(SHELL) is the minimal dash shell.
* configure: Fix info about virt-resize when OCaml bindings are disabled.Richard W.M. Jones2011-08-051-1/+1
|
* python: Don't name extension with .so.0.0 and symlinks (thanks Dan Berrange).Richard W.M. Jones2011-08-051-0/+1
|
* Version 1.13.2.1.13.2Richard W.M. Jones2011-08-0217-61/+67
|
* Add regression test to catch missing libraries in the appliance.Richard W.M. Jones2011-08-022-0/+120
| | | | Related to RHBZ#727178.
* debian: Add gawk to packagelist.Richard W.M. Jones2011-08-021-0/+1
| | | | It's already included, but implicitly.
* virt-tar test: Stable ordering of test output.Richard W.M. Jones2011-08-011-1/+1
| | | | | The files could be listed in any order, resulting in the test failing for no reason. Sort the output of tar.
* Change link, since PostgreSQL switched to using git.Richard W.M. Jones2011-08-011-1/+1
|
* debian: Build libguestfs-ocaml and libguestfs-ocaml-dev subpackages.Richard W.M. Jones2011-07-317-2/+65
|
* Don't fail if HOSTNAME field is missing on Red Hat guests (RHBZ#726739).Richard W.M. Jones2011-07-291-3/+10
|
* perl: Fix another place where qw() was used as parentheses.Richard W.M. Jones2011-07-271-4/+4
| | | | | | This is a fix for Perl 5.14. See previous commit 5c3c7e8825341e18c9449976f8a321a04cc78d79.
* ocaml: Fix locking in event callbacks.Richard W.M. Jones2011-07-261-9/+27
| | | | | | | | We weren't acquiring the GC lock around some allocations, resulting in segfaults when an event callback ran at the same time as a main thread allocation or garbage collection. In particular this fixes a noticable crash in guestfs-browser.
* Version 1.13.1.1.13.1Richard W.M. Jones2011-07-2619-1078/+1146
|
* virt-df: Re-add documentation for --csv option.Richard W.M. Jones2011-07-261-0/+6
| | | | | The documentation for the --csv option disappeared between 1.6 and 1.8 when we rewrote virt-df in C. Re-add it from 1.6 sources.
* test-tool: Print FEBOOTSTRAP_* environment variables (RHBZ#671082).Richard W.M. Jones2011-07-261-0/+3
|
* test-tool: Display state of pgroup flag from the handle.Richard W.M. Jones2011-07-261-0/+1
| | | | This updates commit f173543fd207bdc254a5eb75180d82ef25eacae9.
* launch: Add qemu_supports_re function.Richard W.M. Jones2011-07-261-0/+43
| | | | | | | This function is like qemu_supports, but allows us to grep the help text using regular expressions. Note the function is not used yet.
* Require PCRE library.Richard W.M. Jones2011-07-2512-61/+29
| | | | This library is widely available in distros.
* docs: Document FEBOOTSTRAP_KERNEL, FEBOOTSTRAP_MODULES (RHBZ#671082).Richard W.M. Jones2011-07-222-1/+23
|