summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Version 1.11.2.1.11.2Richard W.M. Jones2011-04-1819-31/+30
|
* python: Release Python GIL while running libguestfs calls.Richard W.M. Jones2011-04-181-0/+19
| | | | | | | | | | | | | | | | | | Release the Python global interpreter lock while running libguestfs calls. We don't release it around guestfs_create() because that is a short call that just allocates memory. We do release it around guestfs_close() since that is a potentially long-running (it can call wait(2) amongst other things). We also release it around all the other generated Python calls. We don't yet support callbacks into Python code (ie. the new event API). But when we do in future, we will need to also handle the GIL around those callbacks. This code is adapted from libvirt's python/typewrappers.h. Thanks to Dan Berrange for showing us how to do this properly.
* fish: --rw option will be mandatory in 1.12 not 1.10.Richard W.M. Jones2011-04-161-2/+2
|
* fish: Fix typo in guestfish man page (--format option).Richard W.M. Jones2011-04-161-1/+1
|
* inspector: Refresh the virt-inspector(1) manpage.Richard W.M. Jones2011-04-161-4/+56
|
* run script: Don't depend on libtool being installed.Richard W.M. Jones2011-04-161-1/+7
| | | | Also use 'exec' to run the program.
* Version 1.11.1.1.11.1Richard W.M. Jones2011-04-1617-1470/+1773
|
* Add images/guestfs-aux/fedora-packages.db{,.txt} to EXTRA_DIST.Richard W.M. Jones2011-04-161-0/+2
| | | | This updates commit d95874db3dc6c415061b86275d03770b4f28ffbb.
* Remove local LIBGUESTFS_PATH detection from guestfish and guestmount.Richard W.M. Jones2011-04-168-41/+13
| | | | | | | | | | | Remove the hack that let you run ./fish/guestfish or ./fuse/guestmount. You now have to do: ./run ./fish/guestfish or ./run ./fuse/guestmount to run these programs without installing.
* Remove ad-hoc run*locally scripts, replace with './run'Richard W.M. Jones2011-04-1619-490/+79
| | | | | Remove all the run*locally scripts and replace with a single top level ./run shell script.
* inspector: Handle write failures when creating example-*.xml.Richard W.M. Jones2011-04-141-4/+12
|
* Delete file so db_load doesn't run incrementally.Richard W.M. Jones2011-04-141-2/+6
| | | | | | | | It turns out that db_load incrementally updates the database (instead of writing a new one). Remove the old database to force db_load to write a new one. This also ensures that we handle write failure gracefully.
* inspector: Include <hostname> in output.Richard W.M. Jones2011-04-146-0/+13
|
* inspect: Get version and release of RPM packages.Richard W.M. Jones2011-04-147-14/+187
| | | | | | | | | | This commit downloads the Packages RPM database allowing us to find other details about installed RPM packages (via inspect-list-applications). This adds version and release. Epoch cannot yet be found. This commit also updates the Fedora example image so that it contains a dummy RPM Packages database with some data.
* inspect: Abstract out db_dump code for listing RPM applications.Richard W.M. Jones2011-04-145-81/+252
| | | | | | | | | | | There are two changes here: (1) The code for listing RPM applications ran db_dump and parsed the output. We abstract out that parsing code into a separate reusable module (src/dbdump.c). (2) The old db_dump parsing code used db_dump -p (printable) format. Instead use db_dump -k (hex) format so we can read binary fields.
* inspect: Split code into separate files.Richard W.M. Jones2011-04-1412-2533/+2887
| | | | | | | | | | | | | | | | | The src/inspect.c file had grown rather large -- 3,500 lines. Split it across several files according to function. This is just moving code. After the split the files are more evenly divided: 536 src/inspect_apps.c 766 src/inspect.c 537 src/inspect_fs.c 404 src/inspect_fs_cd.c 785 src/inspect_fs_unix.c 535 src/inspect_fs_windows.c 3563 total
* inspect: Move shared PCRE match functions to separate file.Richard W.M. Jones2011-04-134-98/+129
| | | | This is just moving code around.
* inspect: Cache downloaded files in the handle g->tmpdir.Richard W.M. Jones2011-04-131-56/+72
| | | | | | | | | | | | | | | | | | During inspection we download various files such as the Windows 'software' and 'system' registries. Previously these were downloaded as temporary files and discarded immediately after use. This meant that the 'software' registry was being downloaded twice by virt-inspector (it's required once for basic OS inspection, and a second time to list Windows applications). This commit changes this so that these files are cached in g->tmpdir, and thus the second time we just reuse the file we've already downloaded. Callers shouldn't be relying on inspect-list-applications to reread the actual registry from the VM (unless you close and reopen the handle). It says in the documentation that the results of inspection may be cached in the handle.
* Remove temporary directory containing arbitrary files.Richard W.M. Jones2011-04-131-9/+40
| | | | | | | | In preparation for caching inspection information in the temporary directory (g->tmpdir), allow the temporary directory to contain arbitrary files, and remove all of them when the handle is closed. This just generalizes the previous method of cleaning up the tmpdir.
* Include string.h and libintl.h, as needed.Jim Meyering2011-04-136-4/+13
| | | | | | | | | * df/df.c: As above. * df/main.c: As above. * df/output.c: As above. * fuse/guestmount.c: As above. * inspector/virt-inspector.c: As above. * rescue/virt-rescue.c: As above.
* Add more missing include directives.Jim Meyering2011-04-133-3/+9
| | | | | | * cat/virt-cat.c: Include string.h and libintl.h. * cat/virt-filesystems.c: Likewise. * cat/virt-ls.c: Likewise.
* debian: Add dependency on libpcre-ocaml-dev.Nikita A Menkovich2011-04-131-1/+3
|
* Add missing include directives.Jim Meyering2011-04-133-2/+5
| | | | | | * fish/config.c: Include string.h, for use of strlen. * fish/keys.c: Likewise, but for use of memcpy. * fish/man.c: Likewise, but for use of memset.
* Avoid warning about implicit declaration of strlen.Jim Meyering2011-04-131-0/+1
| | | | * src/events.c: Include <string.h>, for use of strlen.
* debian: libguestfs-test-tool-helper no longer exists.Richard W.M. Jones2011-04-121-1/+0
|
* resize: Include stamp file for manpage in CLEANFILES.Richard W.M. Jones2011-04-121-0/+2
|
* Version 1.11.0.1.11.0Richard W.M. Jones2011-04-1219-2467/+2460
|
* Update RELEASE-NOTES for 1.10 release.stable-1.10Richard W.M. Jones2011-04-121-14/+21
|
* Update ROADMAP for 1.12 and beyond.Richard W.M. Jones2011-04-121-16/+14
|
* README: virtio-serial is required.Richard W.M. Jones2011-04-121-2/+2
|
* guestfs(3): Fix documentation for drive letters.Richard W.M. Jones2011-04-121-8/+7
| | | | We can now get drive letter mappings through the inspection API.
* inspect: Fix some small memory leaks in Windows inspection.Richard W.M. Jones2011-04-121-0/+3
| | | | Found using valgrind.
* fish: Allows win:... paths to work with drives mounted anywhere.Richard W.M. Jones2011-04-123-86/+106
| | | | | | This allows you to mount disks on (eg) /c and /e and have the guestfish win:... path mechanism map drive letters to the right places.
* todo: guestfish drive letters.Richard W.M. Jones2011-04-111-0/+10
|
* resize: Update dependencies.Richard W.M. Jones2011-04-101-6/+6
|
* resize: Don't build this directory in parallel.Richard W.M. Jones2011-04-101-0/+4
|
* resize: Consistent use of 'part' in help output.Richard W.M. Jones2011-04-101-4/+4
|
* resize: Missing \n after version.Richard W.M. Jones2011-04-101-1/+1
|
* resize: Link with local copy of guestfs.Richard W.M. Jones2011-04-091-2/+2
|
* Version 1.9.18.1.9.18Richard W.M. Jones2011-04-0916-3620/+1660
|
* Update POT file.Richard W.M. Jones2011-04-093-3499/+176
|
* Include po/Makefile.in.in in git, to avoid needing to rerun gettextize.Richard W.M. Jones2011-04-092-1/+444
|
* build: virt-resize manpage.Richard W.M. Jones2011-04-092-6/+6
|
* Rewrite virt-resize in OCaml.Richard W.M. Jones2011-04-0915-1543/+1930
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fairly straightforward translation of Perl virt-resize into OCaml. It is bug-for-bug and feature-for-feature identical to the Perl version, except as noted below. The motivation is to have a more solid, high-level, statically safe compiled language to go forwards with fixing some of the harder bugs in virt-resize. In particular contracts between different parts of the program are now handled by statically typed structures checked at compile time, instead of the very ad-hoc unchecked hash tables used by the Perl version. OCaml and the ocaml-pcre library (Perl-Compatible Regular Expressions bindings for OCaml) are required. Extra features in this version: - 32 bit hosts are now supported. - We try hard to handle the case where the target disk is not "clean" (ie. all zeroes). It usually works for this case, whereas the previous version would usually fail. However it is still recommended that the system administrator creates a fresh blank disk for the target before running the program. - User messages are a bit more verbose and helpful. You can turn these off with the -q (--quiet) option. There is one lost feature: - Ability to specify >= T (terabytes) sizes in command line size expressions has been removed. This probably didn't work in the Perl version. Other differences: - The first partition on the target is no longer aligned; instead we place it at the same sector as on the source. I suspect that aligning it was causing the bootloader failures. - Because it's easier, we do more sanity checking on the source disk. This might lead to more failures, but they'd be failures you'd want to know about. - The order in which operations are performed has been changed to make it more logical. The user should not notice any functional difference, but debug messages will be quite a bit different. - virt-resize is a compiled binary, not a script.
* Compile rpcgen-generated files with -fno-strict-aliasingMatthew Booth2011-04-073-17/+13
| | | | | rpcgen generates source which can't be safely compiled with strict-aliasing enabled.
* test-tool: Don't use static binary helper program, nor ISO.Richard W.M. Jones2011-04-066-233/+37
| | | | | | | | | | | | | | This simplifies the libguestfs-test-tool program down to essentials. Bugs most commonly occur when starting the appliance, so what we should concentrate on test is just that. Previously the test tool built a special static binary helper program, packaged it up in an ISO, then ran this inside the appliance. None of this really tested useful failure modes, but they did make the test tool itself harder to build, harder for users to run, and more brittle. This change also adds some more debugging of libguestfs state.
* Update RELEASE-NOTES file.Richard W.M. Jones2011-04-061-3/+39
|
* Version 1.9.17.1.9.17Richard W.M. Jones2011-04-0519-14391/+16217
|
* fish: copy-in, copy-out, edit, more commands can use win:... prefix.Richard W.M. Jones2011-04-053-23/+97
|
* fish: Enhance guestfish win:... parsing to understand drive letters.Richard W.M. Jones2011-04-053-8/+76
|