summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.7.1.1.7.1Richard W.M. Jones2010-11-0317-12531/+13379
|
* fish: Use a perfect hash for faster command lookups.Richard W.M. Jones2010-11-036-70/+191
| | | | | | Existing command lookups are approx O(n^2). Replace this with a perfect hash implementation which should be a lot faster.
* generator: Properly lay out and indent multi-line C function decls.Richard W.M. Jones2010-11-033-13/+44
|
* docs: Clarify no additional error available from guestfs_create.Richard W.M. Jones2010-11-031-0/+6
|
* docs: Clarify default error handler.Richard W.M. Jones2010-11-031-1/+26
|
* docs: Error strings are in fact localized, documentation was wrong.Richard W.M. Jones2010-11-031-4/+0
|
* docs: Clarify, not every function that returns int returns -1 for errors.Richard W.M. Jones2010-11-031-2/+2
|
* capitests: Test guestfs_last_errno call.Richard W.M. Jones2010-11-033-2/+154
|
* fuse: Use guestfs_last_errno instead of errno-reversal-hack.Richard W.M. Jones2010-11-031-31/+1
|
* lib: Expose errno through new API guestfs_last_errno.Richard W.M. Jones2010-11-0314-32/+213
| | | | | | | If either the daemon sends back an errno, or a system call fails in the library, save the errno in the handle and then make it available to callers through the guestfs_last_errno function.
* daemon: Send back the errno as a string.Richard W.M. Jones2010-11-0311-8/+316
| | | | | | | | This changes the protocol again so that if the errno is available, it is converted to a string (like "EIO") and sent back over the protocol to the library. In this commit the library just discards the string.
* capitests: Test guestfs_add_drive_opts with optional args from C.Richard W.M. Jones2010-11-033-2/+70
|
* capitests: Test some basic aspects of the C API.Richard W.M. Jones2010-11-034-15/+147
|
* capitests: Use ftruncate instead of seek + write to create test files.Richard W.M. Jones2010-11-031-24/+6
|
* capitests: Don't open test files with O_NONBLOCK.Richard W.M. Jones2010-11-031-3/+3
| | | | I have no idea why we were doing this.
* capitests: Set path in TESTS_ENVIRONMENT instead of in tests.cRichard W.M. Jones2010-11-032-2/+1
| | | | | By exporting LIBGUESTFS_PATH with the right path to the appliance, we no longer need to hard code the path in tests.c
* generator: Remove unnecessary macro redefinitions.Richard W.M. Jones2010-11-031-4/+0
| | | | These macros are already defined in guestfs-internals.h
* Define internal safe_calloc shorthand.Richard W.M. Jones2010-11-031-0/+1
|
* daemon: Don't use ../src path to include generator_protocol.hRichard W.M. Jones2010-11-0334-35/+35
| | | | | This file is already hard-linked into the current directory, so the relative path is not required.
* tests: Remove use of sfdisk from tests.Richard W.M. Jones2010-11-021-11/+41
| | | | | | | Some older tests used sfdisk to create partitions for the tests. sfdisk is buggy (more so than parted -- what is it with partitioning tools?) so replace these tests with equivalent part-* commands.
* daemon: Tolerate failure of blockdev --rereadpt after sfdisk.Richard W.M. Jones2010-11-021-2/+1
| | | | | See commit 840536ea5a0568296dfd3e483442c76b93c5a949 and commit 956fc5a3feacc970ea763697bf28fb686c875408.
* binary: Link guestmount static binary with -lm.Richard W.M. Jones2010-11-021-1/+1
| | | | | This is indirectly required via the new shared guestfish C inspection code by libxml2.
* website: Distribute BUGS and RELEASE-NOTES files to website.Richard W.M. Jones2010-11-021-1/+1
|
* Version 1.7.0.1.7.0Richard W.M. Jones2010-11-0217-3323/+3343
|
* Final RELEASE-NOTES file for version 1.6.0.Richard W.M. Jones2010-11-021-35/+80
|
* inspect: Add support for MeeGo.stable-1.6Richard W.M. Jones2010-11-024-1/+16
|
* Version 1.5.26.1.5.26Richard W.M. Jones2010-10-2917-3354/+3918
|
* inspect: Add support for Ubuntu.Richard Jones2010-10-295-2/+84
|
* inspect: Add detection of Gentoo.Richard Jones2010-10-294-0/+19
|
* inspect: Add detection of Arch Linux.Richard Jones2010-10-294-1/+18
|
* inspect: Add detection of Pardus.Richard Jones2010-10-294-0/+19
|
* inspect: Generic parsing of MAJOR.MINOR in product names.Richard Jones2010-10-291-16/+26
|
* inspect: Generic parsing of release files.Richard Jones2010-10-291-26/+25
|
* inspector: Sort <filesystems> section.Richard Jones2010-10-291-0/+1
|
* inspect: Ignore Pardus "/.swap" swapfile.Richard W.M. Jones2010-10-291-4/+5
|
* autogen: Touch ocaml/.dependRichard Jones2010-10-291-0/+4
|
* inspector: List Debian packages.Richard W.M. Jones2010-10-284-5/+10223
| | | | | List Debian packages by downloading and parsing the file /var/lib/dpkg/status.
* inspector: Introductory documentation for XML format.Richard W.M. Jones2010-10-281-0/+130
|
* inspector: Debian package format 'deb' instead of 'dpkg'.Richard W.M. Jones2010-10-283-3/+3
|
* inspector: Return canonical block device paths in XML.Richard W.M. Jones2010-10-287-22/+36
|
* Version 1.5.25.1.5.25Richard W.M. Jones2010-10-2817-13326/+12681
|
* Ensure atomic creation of a cached applianceMatthew Booth2010-10-284-13/+154
| | | | | | | | | | | | | | | | | | | | Cached appliances are discovered by their predictable path. Previously we were creating a cached appliance directly in this predictable path. This had at least 2 undesirable effects: * Interrupting appliance creation would leave a corrupt appliance * 2 processes could simultaneously attempt to create the same appliance, causing corruption. This patch causes the cached appliance to be created in a temporary directory, and then renamed to the predictable path. As rename is an atomic operation, this makes the whole creation atomic. This patch also changes the predictable path to have a prefix of 'guestfs.'. This will make it simpler for system administrators to clean up old cached appliances. This patch resolves RHBZ#639405
* Call febootstrap-supermin-helper using the new -u and -g optionsMatthew Booth2010-10-282-38/+35
| | | | | | | | | | | | | | Use febootstrap-supermin-helper's new -u and -g command line options to setuid, rather than doing it in libguestfs. This resolves an issue with the generation of the cached appliance checksum. The checksum was being generated by a call to febootstrap-supermin-helper through popen(). Unfortunately, a bash misfeature meant that euid would be reset to uid, and the checksum was generated for uid, not euid. When virt-v2v is writing to a RHEV target, uid == 0 and euid == 36, which resulted in a cached appliance being created for root with permissions for uid 36. Note this requires febootstrap 2.10.
* Log the febootstrap-supermin-helper command lineMatthew Booth2010-10-281-26/+29
| | | | | | A side-effect of change 17e7cb9937a63ed8f9bb0fb6ac7302758be76846 was the the febootstrap-supermin-helper was no longer logged. This change adds it back using the new guestfs___print_timestamped_argv internal function.
* New internal function guestfs___print_timestamped_argvMatthew Booth2010-10-282-24/+25
| | | | | | | This function generalises the existing print_cmdline used to output the qemu command line to output any given command line, and exports it to other modules. It also adds a timestamp to the old print_cmdline output for consistency with guestfs___print_timestamped_message.
* list-filesystems: Use core list-filesystems API (RHBZ#642933).Richard W.M. Jones2010-10-281-42/+12
| | | | | | Change virt-list-filesystems to use the core inspection API instead of the deprecated Sys::Guestfs::Lib::get_partitions function.
* Sys::Guestfs::Lib: deprecate get_partitions (RHBZ#642933).Richard W.M. Jones2010-10-281-10/+3
| | | | | However the code is left since this function is used by virt-v2v amongst others.
* inspector: Rewrite virt-inspector (RHBZ#642930).Richard W.M. Jones2010-10-289-24234/+3095
| | | | | | | | | | | | Rewrite virt-inspector: - remove old and unsupportable features - use the C inspection API - don't run programs from the guest The RNG has been updated to reflect the new XML-only output. The new example files show the new XML output.
* tools: Use C API for inspection (RHBZ#642930).Richard W.M. Jones2010-10-285-101/+87
| | | | | | | | | | | | | Update the following tools to use the C API for inspection: - virt-cat - virt-edit - virt-ls - virt-tar - virt-win-reg None of the tools in the tools/ directory now use the deprecated Perl inspection APIs.
* New API: inspect-get-windows-systemroot to get systemroot.Richard W.M. Jones2010-10-283-23/+47
| | | | | | We are already using heuristics in the C inspection code to determine the Windows %SYSTEMROOT% directory. This change just exposes this information through the API.