summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* New API: fstrim - allow filesystem trim.Richard W.M. Jones2012-06-121-2/+25
|
* blockdev_getbsz: Remove test.Richard W.M. Jones2012-06-091-2/+1
| | | | | The output of this test depends on page size, so on ppc64 it returns 64K.
* New API: filesystem-available: tests for filesystem availability.Richard W.M. Jones2012-06-091-1/+20
| | | | | This also creates an internal filesystem_available function within the daemon.
* java: Remove unnecessary imports from the generated Java code.Richard W.M. Jones2012-05-221-8/+0
|
* NEW API: add new api btrfs-fsckWanlong Gao2012-05-151-0/+9
| | | | | | | | | Add the new API btrfs-fsck to check the btrfs filesystem. Btrfs is currently under heavy development, and not suitable for any uses other than benchmarking and review. But it'll be useful in the near future. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New API: add new api btrfs-set-seeding to enable or disable seeding.Wanlong Gao2012-05-141-0/+10
| | | | | | | Add the new API btrfs-set-seeding to support the seeding-device feature for btrfs. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* fish: glob command now expands /dev/ patterns (RHBZ#635971).Richard W.M. Jones2012-05-021-1/+5
| | | | | | | | | | | | | For example: ><fs> glob echo /dev/* /dev/vda /dev/vda1 /dev/vda2 /dev/vda3 ><fs> glob echo /dev/v*/* /dev/vg_f16x64/lv_root /dev/vg_f16x64/lv_swap
* Remove "convenience header" "gettext.h" and use <libintl.h> instead.Richard W.M. Jones2012-05-011-0/+4
| | | | | | | | | | | | gettextize provides a local file called "gettext.h". Remove this and use <libintl.h> from glibc headers instead. Most of this change is mechanical: #include <libintl.h> in every C file which uses any gettext function. But also we remove the gettext.h file, and adjust the "_" macros. Note that this effectively removes the ./configure --disable-nls option, although we don't know if that ever worked.
* lib: Remove the BUSY state.Richard W.M. Jones2012-04-262-24/+9
| | | | | | | | | | | | | | | Originally this state was intended so that in some way you could find out if the appliance was running a command. However there was never a thread-safe way to access the state of the handle, so in effect you could never do anything useful safely with this information. This commit completely removes the BUSY state. The only visible change is to the guestfs_is_busy API. Previously you could never call this safely from another thread. If you called it from the same thread it would always return false (since the current thread can't be running a libguestfs command at that point by definition). Now it always returns false.
* gobject: Use generator_built macro to ensure generated files are rebuilt ↵Richard W.M. Jones2012-04-261-2/+2
| | | | properly.
* gobject: Move headers into a subdirectoryMatthew Booth2012-04-262-10/+13
| | | | | | | | | The gobject bindings generate a large number of header files, which pollute /usr/include when installed. This patch moves them all into a guestfs-gobject/ subdirectory. guestfs-gobject.h remains in the same place. This change also moves generated source files into src/, because it makes the gobject directory a bit tidier.
* 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
|