summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* java: Add guestfs-java(3) man page.Richard W.M. Jones2011-07-191-1/+2
|
* Add missing reference to guestfs-perl(3) to guestfs(3).Richard W.M. Jones2011-07-191-0/+1
|
* Add notes on making a libguestfs stable release.Richard W.M. Jones2011-07-171-0/+50
|
* Update API support.Richard W.M. Jones2011-07-163-0/+869
|
* Update API support.Richard W.M. Jones2011-07-154-0/+1304
|
* Add user cancellation to the C API.Richard W.M. Jones2011-07-154-7/+70
| | | | | | | | | This allows long transfers (FileIn and FileOut operations) to be cancelled by calling the signal and thread safe guestfs_user_cancel function. Most of this commit consists of a multithreaded program that tests user cancellation of uploads and downloads.
* New APIs: set-pgroup, get-pgroupRichard W.M. Jones2011-07-153-6/+26
| | | | | | | | | | | If the pgroup flag is set in the handle, then the qemu and recovery subprocesses are placed in separate process groups. The default is false. The purpose for setting up a process group is that ^C will not be passed from the main process down to these processes (killing them). This allows ^C and other keyboard events to be caught and handled in the main process.
* New API: write-appendRichard W.M. Jones2011-07-141-1/+1
| | | | Append content to the end of a file.
* New API: btrfs-filesystem-resize (RHBZ#721160).Richard W.M. Jones2011-07-141-1/+1
| | | | This resizes a btrfs filesystem.
* docs: Update API support.Richard W.M. Jones2011-07-134-0/+1307
|
* New API: ntfsresize-opts (RHBZ#685009).Richard W.M. Jones2011-07-121-1/+1
| | | | | | This is a more comprehensive fix for RHBZ#685009. Add a new API which allows the --force flag to be passed, allowing multiple NTFS resize operations in a single session.
* New API: list-dm-devices (RHBZ#688062).Richard W.M. Jones2011-07-121-1/+1
| | | | List device mapper devices.
* Add caution subdirectory containing safety and liveness tests.Richard W.M. Jones2011-06-301-0/+5
| | | | | Not that I'm paranoid about qemu breaking snapshots of anything like that ...
* docs: Update API support.Richard W.M. Jones2011-06-2945-10/+18672
|
* New API: inspect-get-icon returns the guest icon.Richard W.M. Jones2011-06-283-0/+474
| | | | | | | | | | This API returns the guest's favicon if found, else an icon representing the guest operating system. Currently supported by this patch: Fedora, RHEL and derivatives, Debian (but not Ubuntu), Windows XP, Windows 7. This also updates virt-inspector to include an <icon> element containing the icon in base64 encoding.
* Change download_to_tmp so it can work with multi-root operating systems.Richard W.M. Jones2011-06-284-104/+98
| | | | | | | | | | | | | | | | The previous guestfs___download_to_tmp function did not handle multiboot correctly. In particular it used the same cache name for downloaded files from different roots, which could have caused things like applications in each root to be confused. This changes the function so that the cache filename is prefixed with the root / fs number, eg. $tmpdir/0-Name instead of $tmpdir/Name. This change also requires the function to return the new name, so all places in the code which called this function had to be updated. This updates and fixes commit 3c1f762abed92f7a358f3bc93e3396d0606b18ad.
* New API: mount-9p lets you mount 9p filesystems (RHBZ#714981).Richard W.M. Jones2011-06-221-1/+1
| | | | The updated patch makes 'options' into an optional parameter.
* New API: list-9p lists 9p filesystem mount tags (RHBZ#714981).Richard W.M. Jones2011-06-221-1/+1
|
* build: include <string.h> for src/match.c's use of strlenJim Meyering2011-06-101-0/+1
|
* protocol: Enhance "unexpected end of file when reading from daemon" error.Richard W.M. Jones2011-06-071-2/+21
| | | | | Make this error more informative, since it is a common error when the appliance fails to start up.
* New APIs: is-zero and is-zero-device, to test if file or device is all zeroes.Richard W.M. Jones2011-05-171-1/+1
|
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+1
|
* appliance: Use qemu -machine option where available (RHBZ#700369).Richard W.M. Jones2011-05-171-14/+23
|
* Rewrite virt-edit in C.Richard W.M. Jones2011-05-091-0/+4
|
* Fix guestfs___rollback_cmdline when pos == 0.Richard W.M. Jones2011-05-081-1/+1
| | | | | | | | Because of the previous change to size_t, when pos == 0 the loop would wrap around and cause a segmentation fault. This fixes a regression introduced by commit 10167cea98f93a74abe63f0a54d3a662997e7489.
* add-domain: Add allowuuid flag to allow UUIDs to be used for names.Richard W.M. Jones2011-05-061-1/+11
| | | | | | This makes a backwards-compatible change to the add-domain API. If the optional allowuuid flag is true then UUIDs can be used instead of names in the domain name parameter.
* add-domain: Suppress libvirt errors on stderr.Richard W.M. Jones2011-05-061-0/+12
| | | | | | | | | | | Install an error handler on the libvirt error connection so that errors are not printed on stderr (instead they go up through the usual libguestfs error mechanism). Unfortunately this doesn't suppress initial connection error messages to stderr. I cannot see how to do this without affecting the global libvirt error handler, which is not acceptable for a library to be doing.
* guestfs(3): Note that host file size limits affect guest disk limits.Richard W.M. Jones2011-04-301-0/+9
|
* guestfs(3): Refresh documentation for private data area keys.Richard W.M. Jones2011-04-301-5/+6
|
* guestfs(3): Document that old callback functions still work.Richard W.M. Jones2011-04-301-1/+2
|
* guestfs(3): Referenced section is above, not below.Richard W.M. Jones2011-04-301-1/+1
|
* guestfs(3): Refresh autosync gotcha documentation.Richard W.M. Jones2011-04-301-3/+3
|
* guestfs(3): Writing to a file descriptor, not just a pipe.Richard W.M. Jones2011-04-301-1/+1
|
* guestfs(3): Refresh documentation for guestfs_create, guestfs_close.Richard W.M. Jones2011-04-301-5/+12
|
* Add a trace message to guestfs_close.Richard W.M. Jones2011-04-301-0/+7
| | | | | | | | | | Only the "first half" (ie. the call) is traced, because by the time the function returns the handle has gone and there's no way to generate events. You should see: libguestfs: trace: close
* internal: Use size_t instead of int for command line size.Richard W.M. Jones2011-04-304-9/+9
|
* guestfs_close: Move local variables close to code that uses them.Richard W.M. Jones2011-04-301-3/+4
| | | | This is just code motion.
* guestfs_close: Remove unused local variable.Richard W.M. Jones2011-04-301-2/+1
|
* guestfs(3): Document limits.Richard W.M. Jones2011-04-271-23/+91
|
* inspect: Look for %systemroot%/system32 for Windows heuristic.Richard W.M. Jones2011-04-211-3/+3
| | | | | The virt-v2v transfer ISO had a /windows directory. The core inspection code thought this was a Windows root filesystem.
* list-applications: If software hive is missing, this is an error.Richard W.M. Jones2011-04-211-5/+5
| | | | | virt-inspector would exit silently if list-applications failed along this error path.
* inspect: "centos" and "scientificlinux" are now separate distros.Richard W.M. Jones2011-04-214-3/+79
| | | | Previously we returned "rhel" for these, which was not accurate.
* inspect: Get version and release of RPM packages.Richard W.M. Jones2011-04-142-12/+159
| | | | | | | | | | 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-144-81/+251
| | | | | | | | | | | 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-148-2533/+2879
| | | | | | | | | | | | | | | | | 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-133-98/+128
| | | | 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.
* Avoid warning about implicit declaration of strlen.Jim Meyering2011-04-131-0/+1
| | | | * src/events.c: Include <string.h>, for use of strlen.
* 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.