summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* btrfs: Fix docs for btrfs_subvolume_set_default (thanks Matt Booth).Richard W.M. Jones2012-04-261-1/+1
| | | | This fixes commit 87ea7a04094d5ed40f3f047ff2b7a613d4d530d4.
* gobject: Implement libguestfs events as signalsMatthew Booth2012-04-261-1/+187
| | | | | | | | | | Implement libguestfs events as GObject signals. Callback arguments are passed in a boxed object. Note that this patch fixes the length of the uint64_t array in the callback arguments at 16, whereas it is actually arbitrary length. This is to make it introspectable. There is currently no way to pass an arbitrary length array to a callback, and have its type introspected.
* gobject: Wrap literal sections in POD in CDATA sectionsMatthew Booth2012-04-261-0/+5
|
* gobject: NFC generated code formatting fixMatthew Booth2012-04-261-1/+1
|
* New btrfs APIs.Richard W.M. Jones2012-04-252-0/+91
| | | | | | | | | | | | | | | | Bind the easy parts of the 'btrfs' program. The new APIs are: btrfs-device-add: add devices to a btrfs filesystem btrfs-device-delete: remove devices from a btrfs filesystem btrfs-filesystem-sync: sync a btrfs filesystem btrfs-filesystem-balance: balance a btrfs filesystem btrfs-subvolume-create: create a btrfs snapshot btrfs-subvolume-delete: delete a btrfs snapshot btrfs-subvolume-list: list btrfs snapshots and subvolumes btrfs-subvolume-set-default: set default btrfs subvolume btrfs-subvolume-snapshot: create a writable btrfs snapshot
* btrfs: Modify mkfs-btrfs API so it takes a list of devices.Richard W.M. Jones2012-04-251-1/+4
| | | | | | | btrfs filesystems can span multiple filesystems. Note this changes the API, but this API has not yet been released in a stable version of libguestfs.
* generator: Add explicit types to pod memoization code.Richard W.M. Jones2012-04-241-3/+7
| | | | This is just code motion.
* New APIs for reading and writing ext2 file attributes and file generation.Richard W.M. Jones2012-04-131-0/+193
| | | | | | | | | | | | The new APIs are: get-e2attrs: List ext2 file attributes of a file. set-e2attrs: Set or clear ext2 file attributes of a file. get-e2generation: Get ext2 file generation of a file. set-e2generation: Set ext2 file generation of a file. These are implemented using the lsattr and chattr programs from e2fsprogs.
* New API: mkfs-btrfs for creating btrfs filesystems (RHBZ#807905).Richard W.M. Jones2012-04-021-0/+11
| | | | This allows all parameters from btrfs to be accessed.
* New APIs: mount-local, mount-local-run, umount-local (FUSE support in the API).Richard W.M. Jones2012-03-291-0/+59
| | | | | | | | | | Add FUSE support directly to the API. Instead of needing to use the external 'guestmount' command, you can mount the libguestfs filesystem space on a local mountpoint using an API call from any language. Note that although mount-local-run is marked as Cancellable, the current implementation does not support it, but it would be relatively simple to add it.
* Partially revert "generator: Fix unescaped '<' and '>' in api descriptions"Richard Jones2012-03-291-5/+5
| | | | | | Don't escape < and > in verbatim sections. This partially reverts commit 09a4e7664b59789f90b6674f640f9d688e4f8b43.
* gobject: Split sources into 1 file per classMatthew Booth2012-03-282-343/+428
| | | | | | | This greatly improves the usability of the generated gtk-doc. Although there is a lot of churn in generator_gobject.ml, this is almost exclusively code motion.
* gobject: Add gtk-doc for GuestfsSession and GuestfsSessionClassMatthew Booth2012-03-281-2/+13
|
* gobject: Add gtk-doc field descriptions for generated structsMatthew Booth2012-03-281-0/+25
|
* gobject: Add gtk-doc for optarg wrapper classesMatthew Booth2012-03-281-8/+25
|
* gobject: Drop references to Guestfs::<foo> in commentsMatthew Booth2012-03-281-4/+4
|
* gobject: Handle various problem content in gtk-doc API descriptionsMatthew Booth2012-03-281-1/+45
| | | | | | | | | | Produce better gtk-doc for: * URLs * RHBZ# references * CVE references * API cross-references * Parameter references * Escaped characters
* gobject: Add basic gtk-doc for all parametersMatthew Booth2012-03-281-4/+16
|
* gobject: Add basic gtk-doc for propertiesMatthew Booth2012-03-281-19/+28
|
* gobject: gtk-doc SECTION must be named after a source fileMatthew Booth2012-03-281-1/+1
|
* gobject: Include explicit types for all parametersMatthew Booth2012-03-281-1/+6
|
* tests: Don't include internal guestfs header in tests.Richard W.M. Jones2012-03-271-3/+12
|
* generator: Allow functions with no requires args, and with some optional args.Richard W.M. Jones2012-03-272-16/+19
| | | | Previously the generator disallowed such functions.
* generator: Remove doc reference to non-existent guestfs_inotify_watch_allMatthew Booth2012-03-271-4/+2
|
* generator: Fix unescaped '<' and '>' in api descriptionsMatthew Booth2012-03-271-4/+5
|
* New API: md-stat.Richard W.M. Jones2012-03-202-0/+57
| | | | | This returns information about the underlying devices of an MD (software RAID) device.
* generator: Generate a .gitignore file specifically for java structs.Richard W.M. Jones2012-03-202-0/+4
|
* daemon: Set last errno to ENOTSUP when APIs are not available.Richard W.M. Jones2012-03-201-4/+6
|
* New API: vgmeta: Download volume group metadata.Richard W.M. Jones2012-03-171-0/+10
|
* generator: Sort camel-case structs.Richard W.M. Jones2012-03-161-0/+1
|
* New APIs: isoinfo and isoinfo-device.Richard W.M. Jones2012-03-162-0/+54
| | | | | Get ISO primary volume descriptor information for either ISO devices or ISO files.
* generator: Fix CompareWithString test.Richard W.M. Jones2012-03-161-1/+1
| | | | | This type of test was not used, and in fact the generated test simply didn't work.
* generator: Fix FUInt{32,64} struct field types.Richard W.M. Jones2012-03-161-2/+4
| | | | | | We were not using an unsigned type in the XDR. This doesn't affect data integrity or the protocol, but it makes it more complicated for the daemon to set these fields.
* New API: lvcreate-free: Create logical volume as % of free space.Richard W.M. Jones2012-03-151-0/+18
|
* New API: zero_free_space: zero free space in a filesystem.Richard W.M. Jones2012-03-151-0/+14
| | | | | | | | | | | | | | Add an API for doing what virt-sparsify was doing: freeing up free space in a filesystem. The current implementation is simple-minded: we create a file, fill it with zeroes until we run out of space, then delete the file. However the description leaves it open to do a better implementation, eg. using sparsification support that is currently being worked on in ext4 and qemu. The implementation also sends progress notifications, which is an advantage over the old 'dd' method.
* Use O_CLOEXEC / SOCK_CLOEXEC for almost all file descriptors.Richard W.M. Jones2012-03-141-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | The presumption is that all file descriptors should be created with the close-on-exec flag set. The only exception are file descriptors that we want passed through to exec'd subprocesses (mainly pipes and stdin/stdout/stderr). For open calls, we pass O_CLOEXEC as an extra flag, eg: fd = open ("foo", O_RDONLY|O_CLOEXEC); This is a Linux-ism, but using a macro we can easily make it portable. For sockets, similarly: sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...); For accepted sockets, we use the Linux accept4 system call which allows flags to be supplied, but we use the Gnulib 'accept4' module to make this portable. For dup, dup2, we use the Linux dup3 system call, and the Gnulib modules 'dup3' and 'cloexec'.
* java: Enable -Xlint:all and fix all warnings.Richard W.M. Jones2012-03-142-1/+2
|
* Replace 'int' with 'size_t' passim.Richard W.M. Jones2012-03-132-5/+5
| | | | | Analyze all uses of 'int' in the code, and replace with 'size_t' where appropriate.
* tests: Remove/fix unused variables warnings.Richard W.M. Jones2012-03-121-1/+0
|
* erlang: Remove unused variables.Richard W.M. Jones2012-03-121-2/+0
|
* bindtests: Use size_t instead of int for array iterators.Richard W.M. Jones2012-03-121-7/+7
|
* Document error message from resize2fs (RHBZ#755729, RHBZ#801640).Richard W.M. Jones2012-03-091-3/+9
|
* resize2fs: Run 'e2fsck -f' automatically if filesystem is not mounted.Richard W.M. Jones2012-03-091-11/+2
|
* Mark e2fsck-f as deprecated, replaced by e2fsck API.Richard W.M. Jones2012-03-091-1/+1
|
* fish: Document that guestfish sets pgroup to true (RHBZ#801273).Richard W.M. Jones2012-03-081-1/+3
|
* fish: Properly free up strings, lists along all error paths (found by Coverity).Richard W.M. Jones2012-03-081-84/+106
| | | | | | | | | | | | | | | | | | | | This also includes some tidying up of the generated code. Error: RESOURCE_LEAK: /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13254: alloc_fn: Calling allocation function "parse_string_list". /builddir/build/BUILD/libguestfs-1.16.5/fish/fish.c:1386: alloc_fn: Storage is returned from allocation function "realloc". /builddir/build/BUILD/libguestfs-1.16.5/fish/fish.c:1386: var_assign: Assigning: "argv_new" = "realloc(argv, 8UL * argv_len)". /builddir/build/BUILD/libguestfs-1.16.5/fish/fish.c:1392: var_assign: Assigning: "argv" = "argv_new". /builddir/build/BUILD/libguestfs-1.16.5/fish/fish.c:1396: return_alloc: Returning allocated memory "argv". /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13254: var_assign: Assigning: "devices" = storage returned from "parse_string_list(argv[i++])". /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13271: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13288: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13293: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13311: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13316: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13334: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13349: leaked_storage: Variable "devices" going out of scope leaks the storage it points to. /builddir/build/BUILD/libguestfs-1.16.5/fish/cmds.c:13355: leaked_storage: Variable "devices" going out of scope leaks the storage it points to.
* Dead code: Remove comma-check in first if-clause (found by Coverity).Richard W.M. Jones2012-03-081-3/+4
| | | | | | | | Error: DEADCODE: /builddir/build/BUILD/libguestfs-1.16.5/fish/event-names.c:65: dead_error_condition: On this path, the condition "comma" cannot be true. /builddir/build/BUILD/libguestfs-1.16.5/fish/event-names.c:57: const: After this line, the value of "comma" is equal to 0. /builddir/build/BUILD/libguestfs-1.16.5/fish/event-names.c:57: assignment: Assigning: "comma" = "0". /builddir/build/BUILD/libguestfs-1.16.5/fish/event-names.c:65: dead_error_line: Execution cannot reach this statement "fputc(44, fp);".
* inspection: Add detection of FreeDOS (RHBZ#786215).Richard W.M. Jones2012-03-071-0/+8
| | | | | FreeDOS is returned as type="dos", distro="freedos". No version or application information is returned at present.
* Add support for Buildroot and Cirros distributions.Richard W.M. Jones2012-03-071-0/+8
|
* Remove ConfigOnly flag from set-autosync.Richard W.M. Jones2012-03-051-1/+1
| | | | | | guestfs_set_autosync sets a flag which affects guestfs_close, and so this call can be made at any time before the handle is closed, not just in the config state.