summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement progress messages in the daemon and library.Richard Jones2010-08-318-10/+226
| | | | | | | | | | | | This implements progress notification messages in the daemon, and adds a callback in the library to handle them. No calls are changed so far, so in fact no progress messages can be generated by this commit. For more details, see: https://www.redhat.com/archives/libguestfs/2010-July/msg00003.html https://www.redhat.com/archives/libguestfs/2010-July/msg00024.html
* ocaml: Remove old entry from .gitignore file.Richard Jones2010-08-311-1/+0
|
* Version 1.5.6.1.5.6Richard Jones2010-08-2714-636/+639
|
* Requires febootstrap >= 2.9.Richard Jones2010-08-271-1/+1
|
* daemon: Set O_CLOEXEC flag on the virtio-serial file descriptor.Richard Jones2010-08-271-1/+7
|
* build: Don't add version extra string to the version number.Richard Jones2010-08-273-5/+13
| | | | | | | | | | | | If this string was non-empty, then it broke a lot of things because autoconf and other parts of the build system were expecting this string to contain a simple MAJOR.MINOR.RELEASE version number. This requires changes to guestfish and guestmount so they use the guestfs_version API to fetch the version from the library. (The Perl tools were already doing it this way). In a way this is more accurate, because it's no longer hard-coded in the binary, but fetched from the dynamically linked libguestfs.so.
* Update BUGS, PO files.1.5.5Richard Jones2010-08-263-2072/+1309
|
* Update Spanish translations (RHBZ#627556).Daniel Cabrera2010-08-261-1326/+1343
|
* Updated Spanish translations (RHBZ#626843).Daniel Cabrera2010-08-261-835/+1606
|
* Update Polish translation (RHBZ#502533).Piotr Drąg2010-08-261-626/+593
|
* Prepare for version 1.5.5.Richard Jones2010-08-2614-113/+146
|
* rescue: Fix typo in comment.Richard Jones2010-08-261-1/+1
|
* Ignore launch() error in virt-rescue. (RHBZ#618556)Matthew Booth2010-08-261-1/+6
| | | | | launch() expects guestfsd to start, which it never does in virt-rescue, so it always returns an error about the appliance shutting down unexpectedly.
* Shut down the appliance cleanlyMatthew Booth2010-08-261-1/+1
| | | | | | | | | | | | When guestfsd exits, or the user exits the virt-rescue shell, the init script exits which causes the kernel to panic. This isn't really a functional issue, as all useful work is done by this point. However, it does cause virt-rescue to display an unsightly error message. This patch causes the appliance to power off cleanly before the init script exits. Note it actually does a reboot rather than a poweroff. This is because ACPI is disabled in the appliance, meaning poweroff doesn't work, but qemu is configured not to restart on reboot.
* Call sync after guestfsd exitsMatthew Booth2010-08-261-21/+24
| | | | | | | | Core files are not reliably written to disk if guestfsd dumps core. This patch makes libguestfs do the same appliance cleanup for guestfsd and virt-rescue, which seems to fix the matter. It also removes a redundant sleep and additional sync when exiting virt-rescue.
* Add a core_pattern debug commandMatthew Booth2010-08-261-0/+53
| | | | | | This adds a new debug command, core_pattern, which writes a new pattern for coredump files to the appliance kernel, and sets the daemon's hard and soft core limits to infinity.
* Include statically linked binaries in the binary distribution.Richard Jones2010-08-256-10/+117
|
* Rename global 'xdr_str'.Richard Jones2010-08-252-7/+7
| | | | | | | Two bits of XDR both contained a definition called 'str' which means that 'xdr_str' was being exported globally twice. Because of the linker script this didn't affect us. But it's best to rename this global so that conflicts cannot arise.
* Add -nodefconfig command line option to qemu.Daniel Berrange2010-08-241-0/+3
| | | | | Without this option, qemu will read some defaults from /etc/qemu/ configuration files.
* Version 1.5.4.1.5.4Richard Jones2010-08-2413-6110/+6286
|
* New APIs: set-network and get-network to enable network support.Richard Jones2010-08-246-3/+49
| | | | guestfs_set_network (g, true) enables network support in the appliance.
* build: Add 'bindist' rule for building binary distribution.Richard Jones2010-08-241-0/+18
|
* Don't print debug messages when not in verbose mode.Richard Jones2010-08-241-15/+17
| | | | Don't print them because no one's listening ...
* Change protocol to send Linux errno from daemon to library.Richard Jones2010-08-243-5/+10
| | | | | | | This changes the protocol so that the Linux errno (if available) is sent back to the library. Note that the errno is not yet made available to callers, since it is not clear how best to present this Linux-specific number.
* Raise error message max size to 64K.Richard Jones2010-08-242-10/+5
| | | | | | | | | This commit removes one of the protocol limits, by raising the maximum error message size from 256 bytes to 64K. Although we could consider raising this further, since the error messages are currently stored in fixed sized buffers on the stack, that would require more invasive code changes.
* Use virtio-serial, remove other vmchannel methods.Richard Jones2010-08-244-410/+63
| | | | | | | | | | | | | This adds support for virtio-serial, and removes all other vmchannel methods. Virtio-serial is faster than other methods, and is now widely available. I tested this by using the guestfs_upload API on an 83 MB file: before: 6.12 seconds (14.1 MB/sec) after: 4.20 seconds (20.6 MB/sec) (note this is with the current 8K chunk size)
* Change to using ext2-based, cached supermin appliance.Richard Jones2010-08-2310-191/+529
| | | | | | | | | | | | This changes the method used to build the supermin appliance to use the new ext2-based appliance supported by latest febootstrap. The appliance can also be cached, so we avoid rebuilding it each time it is used. Mailing list discussion goes into the rationale and details: https://www.redhat.com/archives/libguestfs/2010-August/msg00028.html Requires febootstrap >= 2.8.
* Make print_timestamped_message into a cross-module function.Richard Jones2010-08-232-6/+6
| | | | This is just code movement.
* Factor out code for locating the temporary directory.Richard Jones2010-08-232-11/+22
| | | | This is just code movement.
* Whitespace change: Add blank line between structures and functions.Richard Jones2010-08-211-0/+1
|
* appliance: Remove some obsolete testing rules from Makefile.amRichard Jones2010-08-211-31/+0
| | | | This haven't been used -- and haven't worked -- for a long time.
* Version 1.5.31.5.3Richard Jones2010-08-1713-7106/+8734
|
* Remove old ocaml-inspector code.Richard Jones2010-08-173-542/+3
| | | | | Not used by anyone, didn't work well, and replaced now by the C inspection APIs.
* fish: Reimplement -i option using new C-based inspection.Richard Jones2010-08-176-137/+187
| | | | | | | | | | | | | | Don't shell out to virt-inspector. Instead, use the new C-based inspection APIs. This is much faster. The new syntax is slightly different: guestfish -a disk.img -i guestfish -d guest -i However, the old syntax still works.
* fish: Add -c/--connect and -d/--domain options.Richard Jones2010-08-178-33/+326
| | | | | | | | The -d option lets you specify libvirt domains. The disks from these domains are found and added, as if you'd named them with -a. The -c option lets you specify a libvirt URI, which is needed when we consult libvirt to implement the above.
* New APIs for guest inspection.Richard Jones2010-08-176-5/+1360
| | | | | | | | | | | | | | | | | | | | | This commit converts (some of) the Perl inspection code to C and makes it available through core APIs. The new APIs are: inspect-os - Does the inspection, returns list of OSes inspect-get-* - Get results of the inspection where '*' is one of: type - 'windows' or 'linux' distro - Linux distro arch - architecture product-name - long product name string major-version minor-version - major.minor version of OS mountpoints - get a list of the mountpoints filesystems - get all filesystems associated with the OS This works for all existing supported Linux and Windows OSes.
* New APIs: findfs-label and findfs-uuidRichard Jones2010-08-175-3/+101
| | | | | | | | | | | | | | | | | | | | | | | | | These two calls wrap up the /sbin/findfs command, allowing you to find a filesystem by only knowing its label or UUID. This is especially useful when resolving LABEL=... or UUID=... entries in /etc/fstab. Sample guestfish session: ><fs> vfs-uuid /dev/vda1 277dd61c-bf34-4253-a8dc-df500a05e7df ><fs> findfs-uuid 277dd61c-bf34-4253-a8dc-df500a05e7df /dev/vda1 ><fs> vfs-label /dev/vda1 /boot ><fs> findfs-label /boot /dev/vda1 ><fs> vfs-uuid /dev/VolGroup00/LogVol00 40ce7c36-82ce-4a12-a99d-48f5e054162c ><fs> findfs-uuid 40ce7c36-82ce-4a12-a99d-48f5e054162c /dev/mapper/VolGroup00-LogVol00 ><fs> findfs-uuid 12345678 libguestfs: error: findfs_uuid: findfs: unable to resolve 'UUID=12345678'
* New API: file-architectureRichard Jones2010-08-178-215/+437
| | | | | | This change simply converts the existing Perl-only function file_architecture into a core API call. The core API call is written in C and available in all languages and from guestfish.
* generator: No need to redefine safe_* macros.Richard Jones2010-08-171-7/+0
| | | | | These are already defined in "guestfs-internal.h" which is included in the .c file.
* Add safe_strndup call.Richard Jones2010-08-172-0/+10
|
* Send trace output to stderr.Matthew Booth2010-08-171-14/+14
| | | | | Trace output sent to stdout can be lost in the event of a crash due to buffering. This patch sends it to stderr instead.
* Python: Use new PyCapsule API where supported.Richard Jones2010-08-172-0/+18
| | | | | See: http://lists.fedoraproject.org/pipermail/devel/2010-August/141064.html
* generator: Fix typo in error message for RConstOptString.Richard Jones2010-07-311-1/+1
|
* New API: is-lv: check if a block device is a logical volume (RHBZ#619793)Richard Jones2010-07-303-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new API, guestfs_is_lv (g, device), which returns true iff the named device is an LVM2 logical volume. A sample guestfish session: ><fs> lvs /dev/vg_f13x64/lv_root /dev/vg_f13x64/lv_swap ><fs> list-devices /dev/vda ><fs> list-partitions /dev/vda1 /dev/vda2 ><fs> is-lv /dev/vg_f13x64/lv_root true ><fs> is-lv /dev/vg_f13x64/lv_swap true ><fs> is-lv /dev/vda false ><fs> is-lv /dev/vda1 false ><fs> is-lv /dev/vda2 false
* Rename internal functions.Richard Jones2010-07-283-12/+12
| | | | | | | This is an update to commit 41f25ab3df5f306ac717fa7a6efd58328d30c1ae. Internal functions should be named guestfs___* (3 underscores) to avoid clashing with the implementation of actions (2 underscores).
* Rearrange library code into separate files.Richard Jones2010-07-276-2211/+2356
| | | | | | | | | | | | We split the library code into these separate files: - guestfs.c: creating handles, closing handles, handle-related variables - actions.c: generated library-side stubs for each action - bindtests.c: generated code to test bindings - launch.c: launching the appliance - proto.c: the library side of the daemon communications protocol This is just code movement.
* Rename guestfs-{actions,bindtests}.c to {actions,bindtests}.cRichard Jones2010-07-275-11/+11
| | | | | Rename these two generated files, in preparation for splitting up the main src/guestfs.c file.
* TODO: Implement inspector code in C.Richard Jones2010-07-271-0/+11
|
* TODO: Implement recursive upload/download in guestfish.Richard Jones2010-07-271-0/+20
|
* TODO: Add link to discussion of progress bars.Richard Jones2010-07-271-0/+3
|