summaryrefslogtreecommitdiffstats
path: root/gobject
Commit message (Collapse)AuthorAgeFilesLines
* dist: Add miscellaneous files to the tarball.Richard W.M. Jones2012-11-131-0/+2
| | | | Lots of these had been omitted over time.
* lib: Add inspect_list_applications2 method (RHBZ#859949)John Eckersberg2012-11-011-0/+2
| | | | | | RWMJ: - Fix memory leak in guestfs__inspect_list_applications wrapper. - Don't document app2_spare* fields.
* NEW API: mktempWanlong Gao2012-10-171-2/+4
| | | | | | | | | | | | | | | | Used to create temporary directory or file with an optional suffix. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Split this out into a new file (daemon/mktemp.c). - I don't see a reason to deprecate the mkdtemp function which works fine. Instead remove complex dir-making code from the new function. - Test and fix the patch (missing close(fd)).
* gobject: No need to remove old API files.Richard W.M. Jones2012-09-251-11/+0
| | | | | In commit 3d84ca76fec491015030daa53e9122b03032ddfd we changed the generator so it now automatically removes old API files.
* NEW API:ext:mke2fsWanlong Gao2012-09-241-2/+4
| | | | | | | | | | | New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Update description. - Run and fix the tests. - Remove bogus filename from po/POTFILES.
* generator: The default input files are 'generator/ *.ml' [sic].Richard W.M. Jones2012-09-241-1/+1
| | | | | | | | Since generator source files were renamed, the comment at the top of each generated file was wrong. Unfortunately we cannot allow /* to appear within a comment, so the space is necessary.
* generator: Test zero args, one optarg; and 63 optargs.Richard W.M. Jones2012-09-031-0/+4
| | | | This just generates the code; it's not called.
* NEW API:xfs:xfs_repairWanlong Gao2012-08-301-2/+4
| | | | | | | | | | Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Fix non-error return path so it doesn't send two replies. - Document return code.
* New APIs: hivex_*Richard W.M. Jones2012-08-291-2/+8
| | | | | | | | | | | Transscribe many hivex(3) APIs into the libguestfs API. There is one hive handle per libguestfs handle, as with Augeas. Note that hivex uses iconv_open for some APIs (eg. hivex_value_string). But since we delete all the i18n files from the appliance, this doesn't work -- iconv_open returns EINVAL. Therefore hivex APIs which require iconv cannot be bound in the daemon.
* Modified API: mkswap now takes optional arguments.Richard W.M. Jones2012-08-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add optional label and uuid arguments, and deprecate mkswap-L and mkswap-U. This also adds a call to udev_settle after creating the swap device. This is an attempt to workaround the following problem seen in Koji and Rawhide: libguestfs: trace: mkswap_L "swapit" "/dev/sda1" libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 00 | ... guestfsd: main_loop: proc 210 (part_disk) took 2.28 seconds guestfsd: main_loop: new request, len 0x44 mkswap -f -L swapit /dev/sda1 libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 01 | 00 12 37 cf | ... libguestfs: trace: mkswap_L = 0 libguestfs: trace: swapon_label "swapit" libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 00 | ... guestfsd: main_loop: proc 131 (mkswap_L) took 0.77 seconds guestfsd: main_loop: new request, len 0x34 swapon -L swapit swapon: cannot find the device for swapit guestfsd: error: swapit: swapon: cannot find the device for swapit libguestfs: recv_from_daemon: 100 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 01 | 00 12 37 d0 | ... libguestfs: trace: swapon_label = -1 (error) swapon_label: swapit: swapon: cannot find the device for swapit test_swapon_label_0 FAILED
* New API: xfs: xfs_adminWanlong Gao2012-08-211-2/+4
| | | | | | | | | | | Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Remove printuuid, printlabel, since they don't change any settings. - Adjusted the documentation. - Fix the tests.
* gobject: Disable bindtests.Richard W.M. Jones2012-08-151-4/+4
| | | | | | | - gint64 cannot be reliably sent. It seems to try to convert it via a 32 bit int, and fails if it overflows. - OStringList is not implemented yet.
* generator: Add new OStringList optional arg type.Richard W.M. Jones2012-08-141-1/+9
| | | | This allows lists of strings to be passed as an optional argument.
* Add optional compress flag to tar-in, tar-out APIs.Richard W.M. Jones2012-08-141-0/+4
| | | | | | | | | | The compress flag can be used to control compression, one of: (none), "compress", "gzip", "bzip2", "xz", "lzop". Thus these calls can now be used instead of tgz-in/tgz-out/txz-in/txz-out, and also support more compression types. Mark these APIs as once_had_no_optargs so that compatibility code is generated.
* New APIs: rsync, rsync-in, rsync-outRichard W.M. Jones2012-08-111-2/+8
| | | | Implement rsync.
* grep: Add optargs to grep API and deprecate fgrep etc.Richard W.M. Jones2012-08-021-0/+2
| | | | | | | | This commit makes grep into an optargs API, with flags for extended, fixed, [case-]insensitive and compressed. At the same time it deprecates: egrep, fgrep, grepi, egrepi, fgrepi, zgrep, zegrep, zfgrep, zgrepi, zegrepi and zfgrepi.
* xfs: add new api xfs-growfsWanlong Gao2012-08-021-2/+4
| | | | | | New api xfs_growfs for expanding a XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New API: utsnameRichard W.M. Jones2012-07-301-0/+2
| | | | | | | | | | Typical output: ><fs> utsname uts_sysname: Linux uts_release: 3.5.0-1.fc18.x86_64 uts_version: #1 SMP Mon Jul 23 17:43:39 UTC 2012 uts_machine: x86_64
* Mac OS X: Use real files for gtk-doc (not the symlink)Masami HIRATA2012-07-241-1/+280
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* umount: add force umount and lazy umountWanlong Gao2012-07-241-0/+2
| | | | | | Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* build: Return 77 from skipped tests.Richard W.M. Jones2012-07-192-2/+2
|
* New API: add new api xfs_infoWanlong Gao2012-07-181-0/+2
| | | | | | | | | | | | Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: - Updated po/POTFILES. - Use xfs_ prefix for all struct fields. - Return uninitialized fields as -1 / empty string. - Copyedit the description.
* generator: Rename 'ntfsresize_opts' API to 'ntfsresize'.Richard W.M. Jones2012-07-142-2/+4
| | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers.
* generator: Rename 'mkfs_opts' API to 'mkfs'.Richard W.M. Jones2012-07-142-2/+4
| | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers.
* generator: Rename 'add_drive_opts' API to 'add_drive'.Richard W.M. Jones2012-07-143-4/+8
| | | | | | By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit).
* tests: Rename test0* functions as internal_test*.Richard W.M. Jones2012-07-114-36/+39
| | | | | The internal_* prefix is reserved for internal functions such as these tests.
* gobject: Use run --test for tests, and set GJS in run script.Richard W.M. Jones2012-06-283-4/+6
|
* gobject: bindtests: gjs exception behaviour changed, fix test.Richard W.M. Jones2012-06-271-1/+1
| | | | | | | | | When libguestfs calls 'error (g, "error")', gjs in F17 throws error.message == "Error invoking Guestfs.test0rinterr: error" In F18, error.message is simply the string "error". Fix the test so it works for both cases.
* build: Define abs_builddir if not defined already.Richard W.M. Jones2012-06-181-0/+3
| | | | | | This is missing on RHEL 5. This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6.
* build: Define builddir and abs_srcdir when they are missing.Richard W.M. Jones2012-06-181-0/+6
| | | | | | | | | | | | | | | | | | | | | RHEL 5-era autoconf did not define these, so define them manually when they are missing. Define builddir as '.' The scripts require this. It won't work in the srcdir != builddir case, but we don't care about that for RHEL 5. This commit also moves the builddir / abs_srcdir variable setting above the include of subdir-rules.mk, in case that include uses these variables. Useful script: for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do if ! grep -q '^abs_srcdir' $f; then echo missing in $f fi done
* New API: fstrim - allow filesystem trim.Richard W.M. Jones2012-06-121-2/+4
|
* Split off GObject tests that require an applianceHilko Bengen2012-05-283-3/+32
|
* Fix out-of-tree build for GObject bindingsHilko Bengen2012-05-281-2/+2
|
* NEW API: add new api btrfs-fsckWanlong Gao2012-05-151-2/+4
| | | | | | | | | 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>
* gobject: remove old generated files furtherWanlong Gao2012-05-151-1/+1
| | | | | | also remove guestfs-gobject.c Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* gobject: Remove old generated files.Richard W.M. Jones2012-05-151-1/+8
|
* gobject: Fix installation of headers.Richard W.M. Jones2012-04-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPM build errors: error: Installed (but unpackaged) file(s) found: /usr/include/optargs-add_domain.h /usr/include/optargs-add_drive_opts.h /usr/include/optargs-btrfs_filesystem_resize.h /usr/include/optargs-compress_device_out.h /usr/include/optargs-compress_out.h /usr/include/optargs-copy_device_to_device.h /usr/include/optargs-copy_device_to_file.h /usr/include/optargs-copy_file_to_device.h /usr/include/optargs-copy_file_to_file.h /usr/include/optargs-e2fsck.h /usr/include/optargs-inspect_get_icon.h /usr/include/optargs-md_create.h /usr/include/optargs-mkfs_btrfs.h /usr/include/optargs-mkfs_opts.h /usr/include/optargs-mount_9p.h /usr/include/optargs-mount_local.h /usr/include/optargs-ntfsclone_out.h /usr/include/optargs-ntfsfix.h /usr/include/optargs-ntfsresize_opts.h /usr/include/optargs-set_e2attrs.h /usr/include/optargs-test0.h /usr/include/optargs-tune2fs.h /usr/include/optargs-umount_local.h /usr/include/session.h /usr/include/struct-application.h /usr/include/struct-btrfssubvolume.h /usr/include/struct-dirent.h /usr/include/struct-inotify_event.h /usr/include/struct-int_bool.h /usr/include/struct-isoinfo.h /usr/include/struct-lvm_lv.h /usr/include/struct-lvm_pv.h /usr/include/struct-lvm_vg.h /usr/include/struct-mdstat.h /usr/include/struct-partition.h /usr/include/struct-stat.h /usr/include/struct-statvfs.h /usr/include/struct-version.h /usr/include/struct-xattr.h /usr/include/tristate.h We want to put these headers into the subdirectory, but not guestfs-gobject.h. This isn't easy with automake.
* gobject: Fix whitespace in Makefile.am.Richard W.M. Jones2012-04-271-2/+2
|
* gobject: Use generator_built macro to ensure generated files are rebuilt ↵Richard W.M. Jones2012-04-262-7/+11
| | | | properly.
* gobject: Move headers into a subdirectoryMatthew Booth2012-04-264-87/+91
| | | | | | | | | 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.
* gobject: Implement libguestfs events as signalsMatthew Booth2012-04-261-0/+33
| | | | | | | | | | 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.
* New btrfs APIs.Richard W.M. Jones2012-04-251-0/+2
| | | | | | | | | | | | | | | | 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
* New APIs for reading and writing ext2 file attributes and file generation.Richard W.M. Jones2012-04-131-2/+4
| | | | | | | | | | | | 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-2/+4
| | | | 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/+4
| | | | | | | | | | 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.
* gobject: Ignore generated guestfs-sections.txtMatthew Booth2012-03-291-0/+1
|
* Fix out-of-tree build for GObject bindingsHilko Bengen2012-03-281-1/+1
| | | | | | | | | | guestfs-gobject.h (in the source directory) was not found. In file included from <stdin>:4:0: /path/to/libguestfs/gobject/guestfs-gobject.h:23:37: fatal error: guestfs-gobject-session.h: No such file or directory compilation terminated. Error while processing the source. make[2]: *** [Guestfs-1.0.gir] Error 1
* gobject: Remove gtk-doc from TODOMatthew Booth2012-03-281-1/+0
|
* gobject: Split sources into 1 file per classMatthew Booth2012-03-285-11/+106
| | | | | | | 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 infrastructure to build gtk-docMatthew Booth2012-03-285-0/+176
|