summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* tests: Split images -> tests/data + tests/guestsRichard W.M. Jones2011-12-222-7/+7
|
* tests: Rename capitests -> tests/c-api.Richard W.M. Jones2011-12-225-21/+21
|
* fish: Allow events to be processed in guestfish.Richard W.M. Jones2011-12-164-4/+146
| | | | | | | | Add 'event', 'list-events' and 'delete-event' commands so that event handlers can be registered, listed and deleted in guestfish. The event handler is a shell script snippet or host command. Cc: Pádraig Brady <P@draigBrady.com>
* daemon: Fix utimens so it doesn't hang on named pipes (RHBZ#761460).Richard W.M. Jones2011-12-081-3/+24
| | | | | | | | | | This also adds comprehensive tests for utimens on regular files, directories (RHBZ#761451), named pipes (RHBZ#761460), symbolic links, block and char devices. Note that there is a small change in the (previously undefined) semantics of this call: It now sets the time on a symbolic link itself, not on what the symbolic link points to.
* ruby: Use RSTRING_PTR, RSTRING_LEN for compat with Ruby 1.9 (RHBZ#760000).Richard W.M. Jones2011-12-051-2/+11
|
* NEW API: add blkid command to print the attributes of the deviceWanlong Gao2011-12-031-0/+38
| | | | | | | | | | | | A NEW API blkid. It can print the device attributes. Use it after list-devices, we can list ower devices and the attributes of each device. Use it like: blkid <device> It's should be a usefull function. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* perl: Memory leak: Free roots array along handle close path.Richard W.M. Jones2011-11-291-0/+1
|
* ruby: Memory leak: Free roots array along handle close path.Richard W.M. Jones2011-11-291-0/+1
|
* ocaml: Fix memory leak in bindings for functions that return buffers.Richard W.M. Jones2011-11-291-0/+1
| | | | | | | RBufferOut binding didn't free the buffer after copying it onto the OCaml heap. Found by valgrind.
* inspection: Add outline support for GNU/Hurd.Richard W.M. Jones2011-11-281-0/+4
|
* docs: Tidy up documentation for md-stop.Richard W.M. Jones2011-11-251-11/+1
| | | | This cleans up commit cbd1c45d95c530c8d94103dcc2c521bf5501ef59.
* New API: md-stop for stopping MD devicesWanlong Gao2011-11-241-0/+17
| | | | | | | | This API is used to stop a md device. When we want to move a device to another md array, we should stop the md device which contained this device first. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Rename mdadm_ apis to md_Matthew Booth2011-11-241-2/+2
| | | | | | | | | This change renames the following 2 apis: * mdadm_create -> md_create * mdadm_detail -> md_detail This is more consistent with list_md_devices, and removes a reference to an implementation detail from the api.
* Don't rely on implicit promotion of float to double in printf args.Richard W.M. Jones2011-11-221-3/+5
|
* fish: In generated code, put function names on a new line.Richard W.M. Jones2011-11-221-5/+10
| | | | | | | | | eg: static void run_foo () { }
* New API: mdadm-detail.Matthew Booth2011-11-171-0/+31
|
* New API: list-md-devices.Matthew Booth2011-11-111-0/+6
| | | | | | | Return a list of Linux MD devices detected in the guest. This API complements list_devices, list_partitions, list_lvs and list_dm_devices.
* New API: mdadm-create for creating MD devices.Richard W.M. Jones2011-11-111-0/+58
|
* New API: Bind the tune2fs command.Richard W.M. Jones2011-11-111-0/+97
| | | | | | | | | | | | | Previously we bound the 'tune2fs -l' command so that we could list out the tunables of an ext2/3/4 filesystem. Also commands like set_e2label and set_e2uuid used tune2fs. This commit binds many of the tunables that can be set using tune2fs. The coverage is not complete, but we can add more later because this uses optional parameters so the call is extensible without breaking ABI. The current change gives us enough for using libguestfs within OpenStack.
* tune2fs-l: Add a test.Richard W.M. Jones2011-11-111-1/+4
|
* generator: Support testing the output of RHashtable functions.Richard W.M. Jones2011-11-113-0/+45
| | | | | You can use TestOutputHashtable to test the output of RHashtable functions.
* ocaml: Fix bindings when a function takes more than 10 parameters.Richard W.M. Jones2011-11-091-4/+14
| | | | | | If any function had more than 10 required + optional parameters, OCaml bindings could not be generated. Currently there are no such functions.
* tests: Fix bitmask parameter when testing optional arguments.Richard W.M. Jones2011-11-091-6/+7
| | | | | | | | The bitmask was being constructed backwards(!) As a result, any test which tested optional arguments didn't work. There are very few such tests and they happened not to be affected by this.
* fish: More informative documentation of optargs.Richard W.M. Jones2011-11-091-2/+12
|
* Update FSF address.Matthew Booth2011-11-081-1/+1
|
* python: Fixes for Python 3 (RHBZ#750889).Richard W.M. Jones2011-11-022-21/+109
| | | | | | | | | | | | | These fixes allow libguestfs bindings to work with Python 3 (tested with Python 3.2) You can select which Python you compile against by doing: PYTHON=python ./configure && make && make check or: PYTHON=python3 ./configure && make && make check
* python: Include <config.h>.Richard W.M. Jones2011-11-021-0/+2
| | | | Ooops ...
* perl: Add %guestfs_introspection hash with introspection information.Richard W.M. Jones2011-10-281-2/+90
| | | | | Because this is a useful introspection API, it is a candidate for being backported into older stable branches.
* generator: Remove DangerWillRobinson.Richard W.M. Jones2011-10-2710-44/+9
| | | | | This warning was applied unevenly. Potentially any command can be dangerous or safe, so it was a needless warning.
* add-domain: Add readonlydisk optional argument (RHBZ#747290).Richard W.M. Jones2011-10-261-2/+52
| | | | | | | | | | | | | | | This optional argument controls how <readonly/> disks in the libvirt XML are handled. It can be set to one of: "write" (default) - add them R/W "read" - add them R/O "error" - throw an error if asked to add them R/W "ignore" - ignore these disks I have added limited regression tests for this feature. However libvirt's test:/// XML does not allow you to specify that a domain starts off shut down, so we cannot fully test this. Instead I tested it by hand.
* libvirt: Detect if a disk has the <readonly/> flag.Richard W.M. Jones2011-10-261-1/+1
| | | | | | This changes the private function guestfs___for_each_disk so that the <readonly/> flag on libvirt disks is detected and passed through to the callback function.
* New APIs: copy-{file,device}-to-{file,device}.Richard W.M. Jones2011-10-261-3/+58
| | | | | | | | | | | The four new APIs: guestfs_copy_device_to_device, guestfs_copy_device_to_file, guestfs_copy_file_to_device, and guestfs_copy_file_to_file let you copy from a source to a destination, between files and devices, optionally allowing source and destination offsets and size to be specified.
* New API: part-to-partnumRichard W.M. Jones2011-10-251-1/+17
| | | | | | This converts a partition device name (eg. /dev/sda1) to a partition number (eg. 1). This is useful in conjunction with the parted APIs that mostly take a disk device + partnum.
* out-of-tree build: fix HAVE_OCAML=false caseHilko Bengen2011-10-211-1/+1
|
* inspect: Add drive naming hintsMatthew Booth2011-10-191-1/+6
| | | | | | | | | | | We currently use a heuristic to guess how drive names we find referenced in the guest map to drive names in the appliance. If this heuristic fails it can cause inspection to fail. This change adds a new 'name' option to add_drive_opts, which allows the user to explicitly pass the name of a drive to libguestfs if it is known. This change also updates the fstab-parsing inspection code to use this information if it is available.
* launch: Store drive information in guestfs_hMatthew Booth2011-10-191-0/+7
| | | | | | | | | | | | | | | | | | This is a NFC on its own, but provides a place-holder for drive metadata which can be used after launch. Fixes by RWMJ: - Fix the tests: this requires a new internal function 'debug-drives' that dumps out the g->drives information so it can be checked in two of the tests. Previously these tests used 'debug-cmdline'. - Test file existence / use_cache_off in the add_drive_opts function, not when launching qemu in the child process. - Call free along error paths. - Add comments.
* Add basic support for netbsd detection.Michael Scherer2011-10-141-0/+4
|
* Add support for pkgsrc, default NetBSD package manager.Michael Scherer2011-10-141-1/+2
| | | | | | For now, only detect the tool, but support from reading installed package could be added later ( may require either a package of pkgsrc, or a smaller tool to read the db ).
* Add Opensuse and zypper detection supportMichael Scherer2011-10-141-1/+5
| | | | This would also erronously detect SLES as Opensuse.
* Detect Mageia distributionMichael Scherer2011-10-141-0/+4
|
* mount: Not deprecated any more.Richard W.M. Jones2011-10-011-1/+1
| | | | This updates commit 5c2f1a2d9433eeb5aebeec26f0412c703bbe7269.
* mount: No longer implicitly add -o sync,noatime options.Richard W.M. Jones2011-10-011-9/+6
|
* New API: set-smp, get-smpRichard W.M. Jones2011-09-281-0/+16
| | | | | | | These calls allow you to change the number of virtual CPUs assigned to the appliance. This also adds a --smp option to virt-rescue.
* New APIs: compress-out, compress-device-out.Richard W.M. Jones2011-09-281-0/+27
| | | | | | | | | | | | | | | | | These APIs let you copy compressed files or devices out from the disk image. Compression is useful for large images which are mostly zeroes. We cannot currently do sparseness detection, and compression gives us a form of zero detection for free. Example usage: $ guestfish --ro -a /dev/vg_pin/F16x64 -i \ compress-out gzip /etc/passwd /tmp/passwd.gz $ file -z /tmp/passwd.gz /tmp/passwd.gz: ASCII text (gzip compressed data, was "passwd", from Unix, last modified: Sun Aug 28 14:40:46 2011)
* Add Erlang bindings.Richard W.M. Jones2011-09-215-8/+461
|
* inspection: Add support for ttylinux (a minimal Linux).Richard W.M. Jones2011-09-161-0/+4
|
* Add an optional group ("grub") for the guestfs_grub_install API.Richard W.M. Jones2011-09-151-5/+27
| | | | | | | | This also improves the documentation for this call, pointing out several pitfalls in using it. This unfortunately breaks existing callers that might use guestfs_grub_install without checking for this new group.
* Add GUESTFS_EVENT_ENTER event.Richard W.M. Jones2011-08-262-0/+11
| | | | This event is generated whenever a libguestfs function is called.
* ruby: Check Ruby callback exists before we call it (RHBZ#733297).Richard W.M. Jones2011-08-261-6/+14
|
* ruby: Use a regular C array to pass the arguments through rb_rescue.Richard W.M. Jones2011-08-251-18/+17
|