Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Pass cgroup_disable=memory, saves ~ 5MB of RAM. | Richard Jones | 2009-07-24 | 1 | -1/+2 |
| | |||||
* | Revert "Add 'set-kernel'/'get-kernel'/LIBGUESTFS_KERNEL to override ↵ | Richard Jones | 2009-07-22 | 1 | -24/+1 |
| | | | | | | appliance kernel." This reverts commit 34d2df41626f1ee4172a6d40b06d72d6ed9d6348. | ||||
* | Add 'set-kernel'/'get-kernel'/LIBGUESTFS_KERNEL to override appliance kernel. | Richard Jones | 2009-07-22 | 1 | -1/+24 |
| | | | | | This allows you to override the appliance kernel with an easy command or environment variable. | ||||
* | Add commented-out support for alternate guestfwd syntax. | Richard W.M. Jones | 2009-07-21 | 1 | -9/+32 |
| | | | | | | This commit just moves code around. The new support is not enabled because it doesn't work. See qemu-devel, subject "guestfwd option doesn't allow supplementary ,server,nowait" | ||||
* | Library: Pass more options on the Linux kernel command line. | Richard W.M. Jones | 2009-07-21 | 1 | -1/+8 |
| | | | | | | | Always pass: noapic (APIC causes problems for lots of people) udevtimeout=300 (for very slow qemu using softemu) acpi=off (ACPI is troublesome and unnecessary, so turn it off) | ||||
* | Allow TMPDIR to override directory used for temporary files (RHBZ#512905). | Richard W.M. Jones | 2009-07-21 | 1 | -1/+11 |
| | |||||
* | Add 'version' call to get true library version number. | Richard Jones | 2009-07-10 | 1 | -0/+13 |
| | | | | | | This patch also changes the way that the version is specified in configure.ac. It is now made out of four parts (major, minor, release and extra) and constructed for AC_INIT. | ||||
* | Properly close fds and unregister handlers in guestfs_close. | Richard Jones | 2009-07-10 | 1 | -0/+19 |
| | | | | | | | | | This caused a segfault if you tried to repeatedly open and close a guestfs handle in the same program. The reason is that the old handler remained registered (not always - it was racey). This adds proper cleanup to the guestfs_close path, also for file descriptors. | ||||
* | Generate structs and struct lists generically. | Richard Jones | 2009-07-07 | 1 | -38/+0 |
| | | | | | | | | | | | This modifies the way that struct and struct lists are generated (for return values) so that there is no need to add an explicit new type when adding a new structure. All tests pass, and the C API should be compatible. I have also inspected the changes that are made to the generated code by hand. | ||||
* | Add a debug message to the library cancellation path. | Richard Jones | 2009-07-06 | 1 | -0/+4 |
| | |||||
* | Add 'get-pid' command. | Richard Jones | 2009-07-06 | 1 | -0/+11 |
| | | | | | This is used to get the PID of the qemu subprocess, mainly for debugging and testing purposes. | ||||
* | use safe_malloc and safe_calloc in generated code | Jim Meyering | 2009-07-03 | 1 | -1/+38 |
| | | | | | | | | | | * src/generator.ml (safe_malloc): Define to guestfs_safe_malloc. (safe_calloc): Define to guestfs_safe_calloc. [most generated code]: Fail immediately upon failure of otherwise- unchecked malloc and calloc calls. * src/guestfs.c: Include <stddef.h>. (xalloc_oversized): Define. * src/guestfs.h (guestfs_safe_calloc): Declare. | ||||
* | Add ./configure --with-drive-if=(ide|scsi|virtio) | Richard W.M. Jones | 2009-07-02 | 1 | -2/+2 |
| | | | | | | | | With this flag the packager can decide to default to a particular qemu drive model. The current default is 'ide', however note that we intend to change this in future to 'virtio' once some upstream regressions are fixed. Packagers can force a particular drive model if they wish. | ||||
* | Add 'readdir' call. | Richard W.M. Jones | 2009-07-02 | 1 | -0/+7 |
| | | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this. | ||||
* | Change to use virtio_blk (virtio block device) by default. | Richard W.M. Jones | 2009-07-01 | 1 | -2/+2 |
| | | | | | | | | | | | | | virtio_blk is the fast, virt-native block device driver supported by qemu and KVM. Note that virtio_blk device names are called /dev/vd*. Existing scripts should continue working because device name translation will silently change device names of the form /dev/sd* to /dev/vd* as required. See also: http://libguestfs.org/guestfs.3.html#block_device_naming | ||||
* | Don't dereference or free undefined "msg" upon OOM. | Jim Meyering | 2009-07-01 | 1 | -1/+3 |
| | | | | * src/guestfs.c (guestfs_error): Handle failing vasprintf. | ||||
* | Add 'set_memsize'/'get_memsize' calls. | Richard W.M. Jones | 2009-06-30 | 1 | -11/+33 |
| | | | | | | Allow the qemu memory size to be specified either by API calls or by setting the LIBGUESTFS_MEMSIZE environment variable. | ||||
* | Fix for 'broken pipe' error when qemu dies (RHBZ#508713). | Richard W.M. Jones | 2009-06-29 | 1 | -2/+5 |
| | |||||
* | Bump up default guest size to 500M. | Richard W.M. Jones | 2009-06-23 | 1 | -1/+1 |
| | |||||
* | Command line argument handling. | Richard W.M. Jones | 2009-06-23 | 1 | -3/+106 |
| | |||||
* | '-no-kqemu' option is no longer necessary to avoid a warning. | Richard W.M. Jones | 2009-06-23 | 1 | -3/+0 |
| | |||||
* | Rename guestfs-supermin-helper -> libguestfs-supermin-helper. | Richard Jones | 2009-06-18 | 1 | -1/+1 |
| | |||||
* | Fix build_supermin_appliance to return kernel / initrd names. | Richard Jones | 2009-06-16 | 1 | -3/+12 |
| | |||||
* | Experimental implementation of the supermin appliance (passes most tests). | Richard Jones | 2009-06-15 | 1 | -28/+145 |
| | |||||
* | Add 'add_drive_ro' call. Fix up documentation. Plus a couple of minor code ↵ | Richard Jones | 2009-06-02 | 1 | -0/+21 |
| | | | | improvements in the tests. | ||||
* | Correctly handle malloc/realloc(0) | Richard W.M. Jones | 2009-05-29 | 1 | -2/+2 |
| | | | | | - malloc and realloc(0) are valid requests. Some implementations may return NULL for these, which would not indicate an error. | ||||
* | Gettextize the source, make library strings translatable. | Richard Jones | 2009-05-21 | 1 | -58/+70 |
| | |||||
* | Don't stash strings in the handle. | Richard W.M. Jones | 2009-05-13 | 1 | -17/+36 |
| | | | | | - makes it impossible to write bindings for set_{path,qemu,append} functions | ||||
* | Add 'append', LIBGUESTFS_APPEND to set additional kernel options. | Richard W.M. Jones | 2009-05-13 | 1 | -2/+21 |
| | |||||
* | Increase the wait time for vmchannel socket to appear (fix for slow / ↵ | Richard Jones | 2009-05-13 | 1 | -3/+3 |
| | | | | heavily-loaded) machines. | ||||
* | Handle EINTR, EAGAIN in select main loop. | Richard Jones | 2009-05-10 | 1 | -0/+2 |
| | |||||
* | Fix four memory leaks in guestfs.c revealed by valgrind. | Richard Jones | 2009-05-09 | 1 | -0/+7 |
| | |||||
* | Allow recovery from guest failure. | Richard Jones | 2009-05-08 | 1 | -28/+57 |
| | |||||
* | Change memory calculation to choose a generous amount of memory. | Richard Jones | 2009-05-08 | 1 | -33/+7 |
| | |||||
* | Force qemu quit when kernel panics (Charles Duffy). | Richard Jones | 2009-05-08 | 1 | -1/+2 |
| | |||||
* | Use unsigned type for lengths. | Richard Jones | 2009-05-07 | 1 | -9/+12 |
| | |||||
* | Handle EINTR and EAGAIN in reads. | Richard Jones | 2009-05-07 | 1 | -4/+11 |
| | |||||
* | Replace rtl8139 network card with virtio-net. | Richard Jones | 2009-04-30 | 1 | -1/+1 |
| | |||||
* | Autosync now runs umount-all; sync | Richard Jones | 2009-04-30 | 1 | -1/+3 |
| | |||||
* | Multiple callbacks during file transfers could cause data corruption - FIXED. | Richard Jones | 2009-04-26 | 1 | -34/+84 |
| | |||||
* | More checks. | Richard Jones | 2009-04-26 | 1 | -0/+5 |
| | |||||
* | Experimental recovery process should help with not cleaning up qemu. | Richard Jones | 2009-04-24 | 1 | -1/+43 |
| | |||||
* | Don't allocate file chunks on the stack. | Richard W.M. Jones | 2009-04-24 | 1 | -19/+25 |
| | |||||
* | Don't use large message buffer on the stack (fixes Java/i386 segfault). | Richard W.M. Jones | 2009-04-24 | 1 | -9/+23 |
| | |||||
* | Fix 64 bit memsize overhead.1.0.11 | Richard Jones | 2009-04-23 | 1 | -2/+2 |
| | |||||
* | Reduce the amount of memory allocated to guests based on some testing. | Richard W.M. Jones | 2009-04-23 | 1 | -2/+42 |
| | |||||
* | Force a specific network NIC model (allows to work with latest qemu from SVN). | Richard Jones | 2009-04-22 | 1 | -1/+1 |
| | |||||
* | Allow qemu binary to be overridden at runtime. | Richard Jones | 2009-04-22 | 1 | -5/+24 |
| | |||||
* | Allow selection of qemu using --with-qemu | Richard Jones | 2009-04-22 | 1 | -1/+1 |
| | |||||
* | Various fixes to build and test in Koji.1.0.4 | Richard Jones | 2009-04-20 | 1 | -0/+2 |
| |