summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* generator: Fix error message in checks of proc_nr.Richard W.M. Jones2012-08-171-3/+3
|
* bindtests: Test sending min and max 64 bit integers.Richard W.M. Jones2012-08-151-4/+7
|
* java: Fix bindtests when passing 64 bit integer literals.Richard W.M. Jones2012-08-151-2/+2
|
* ocaml: Fix bindtests when passing negative optional arguments.Richard W.M. Jones2012-08-151-2/+2
|
* erlang: Add tests.Richard W.M. Jones2012-08-152-0/+61
| | | | Add bindtests and general tests for Erlang.
* erlang: Fix 64 bit integers in parameters.Richard W.M. Jones2012-08-151-5/+11
|
* erlang: Fix BufferIn parameters.Richard W.M. Jones2012-08-151-4/+5
| | | | These would break if the buffer contained a \0 character.
* New internal APIs: internal-test-set-output, internal-test-close-output.Richard W.M. Jones2012-08-152-22/+104
| | | | | | | | These internal (testing) APIs allow the bindtests output to be sent to some other place than stdout. This is necessary for Erlang, since stdout is used to communicate with the Erlang interpreter.
* generator: Allow permission of output files to be specified.Richard W.M. Jones2012-08-152-3/+3
|
* python: Fix optargs so we don't use special sentinel values.Richard W.M. Jones2012-08-151-49/+35
| | | | | | | | | Previously with Python it was impossible to set a boolean or integer optarg to -1 because that was used as a special sentinel value to indicate that the optarg was not set. Instead, use None as the sentinel value, since that cannot be a boolean or integer type.
* python: Before freeing OStringList, cast it to char ** to avoid a compiler ↵Richard W.M. Jones2012-08-151-1/+1
| | | | | | warning. This fixes commit c1a269513c05b44af0ed6e6b7b48f5dd11e01060.
* Remove unnecessary comment from <guestfs.h>.Richard W.M. Jones2012-08-141-5/+0
| | | | | Read guestfs(3) for documentation, and don't discourage people from doing that by putting these comments into the header file.
* docs: Fix '= head' -> '=head' in back compat entries in guestfs(3).Richard W.M. Jones2012-08-141-1/+1
|
* tar-out: Add list of excluded patterns (--exclude=...) (RHBZ#847881).Richard W.M. Jones2012-08-141-1/+6
|
* generator: Add new OStringList optional arg type.Richard W.M. Jones2012-08-1415-66/+334
| | | | This allows lists of strings to be passed as an optional argument.
* bindtests: Space before parens in call.Richard W.M. Jones2012-08-141-1/+1
|
* tar-out: Add optional numericowner flag (RHBZ#847880).Richard W.M. Jones2012-08-141-2/+13
| | | | This is equivalent to the tar option --numeric-owner.
* Add optional compress flag to tar-in, tar-out APIs.Richard W.M. Jones2012-08-141-16/+33
| | | | | | | | | | 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.
* ocaml: Use Store_field macro instead of caml_modify.Richard W.M. Jones2012-08-121-1/+1
| | | | | | | Use the safer, higher level Store_field macro when constructing arrays of structs to return. I don't know if it is strictly necessary in this case, but it's safer.
* New APIs: rsync, rsync-in, rsync-outRichard W.M. Jones2012-08-111-0/+83
| | | | Implement rsync.
* generator: 'delete' is a reserved word (in C++).Richard W.M. Jones2012-08-111-4/+4
|
* ruby: Mark all VALUEs as volatile.Richard W.M. Jones2012-08-031-15/+26
|
* grep: Add optargs to grep API and deprecate fgrep etc.Richard W.M. Jones2012-08-021-6/+76
| | | | | | | | 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-0/+27
| | | | | | 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-302-0/+23
| | | | | | | | | | 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
* ruby: Allow optional arguments hash to be really optional.Richard W.M. Jones2012-07-261-38/+59
| | | | | | | | | | | | | Allow optargs functions to be called as either: g.mkfs_opts(fs, device) or: g.mkfs_opts(fs, device, { optargs hash }) This also preserves backwards compatibility with once_has_no_optargs functions such as mkfs.
* ruby: In event wrapper, ignore callback functions which have type T_ZOMBIE.Richard W.M. Jones2012-07-261-2/+7
| | | | Note that in old versions of Ruby, T_ZOMBIE was not defined.
* New APIs: pvchange-uuid, pvchange-uuid-all, vgchange-uuid, vgchange-uuid-all.Richard W.M. Jones2012-07-251-0/+62
| | | | | | | | These APIs will allow sysprep to change the UUIDs of all PVs and VGs in the system. LVs don't have UUIDs AFAICT, or at least there seems to be no way to change them if they do have them.
* Mac OS X: Use u_int64_t/uint64_t instead of unsigned hyper in .x fileMasami HIRATA2012-07-241-8/+23
| | | | | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com> RWMJ: Fixed whitespace in generator_xdr.ml
* umount: use Dev_or_Path for the argument typeWanlong Gao2012-07-241-1/+1
| | | | | | | | | | | | | | Use Dev_or_Path instead of String. Remove the RESOLVE_DEVICE since Dev_or_Path will generate REQUIRE_ROOT_OR_RESOLVE_DEVICE instead. RWMJ: Note a change in semantics: this now requires root. However this is OK and still works with mkmountpoint and friends because 'is_root_mounted' works even if something is mounted below the root. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* xfs-info: Fix description to refer to 'pathordevice' param.Richard W.M. Jones2012-07-241-2/+2
|
* xfs_info: resolve device when doing xfs_info on a deviceWanlong Gao2012-07-241-1/+1
| | | | | | | Resolve device first, like do_umount. Use Dev_or_Path. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* umount: add force umount and lazy umountWanlong Gao2012-07-241-11/+12
| | | | | | Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* python: Set file encoding to utf-8.Richard W.M. Jones2012-07-231-0/+5
|
* tests: Fix get-attach-method test.Richard W.M. Jones2012-07-231-2/+2
| | | | | | | | If ./configure --with-default-attach-method is set to something other than 'appliance', then this will legitimately return a different string. Simply test that it runs, rather than testing the output. This fixes commit 20a5b4de7ddc4221544784df65eb472481698dcb.
* tests: Remove get-pid test.Richard W.M. Jones2012-07-231-4/+1
| | | | | If the libvirt attach-method is used, then there is no known PID (libvirt hides it).
* launch: Allow default attach-method to be set in environment or configure.Richard W.M. Jones2012-07-231-3/+29
| | | | | | | | | | You can now choose the default attach method in two ways: (1) Set the LIBGUESTFS_ATTACH_METHOD environment variable. (2) ./configure --with-default-attach-method=appliance|libvirt|... Note that (1) overrides (2).
* Add attach-method "libvirt" or "libvirt:<URI>".Richard W.M. Jones2012-07-211-0/+7
| | | | | With this commit, you can set the attach method to libvirt, but calling launch will give an error.
* launch: Move guestfs_config API and build list of qemu parameters in handle.Richard W.M. Jones2012-07-201-2/+2
| | | | | | Move and rewrite guestfs_config so it accumulates a list of qemu parameters in the handle. These are added to the appliance at launch time (with attach method == unix:... you'll now get an error).
* add-cdrom: Rewrite description emphasising that this API should not be used.Richard W.M. Jones2012-07-201-20/+2
|
* Remove debug-cmdline API.Richard W.M. Jones2012-07-191-9/+0
| | | | | Note that debug* calls are not part of the stable API and can be removed or changed at any time.
* build: Rename most C files that contain underscore with dash.Richard W.M. Jones2012-07-193-6/+6
| | | | | | | This is just code motion. Some files cannot be renamed. Notably rpcgen input and output files must not contain dash characters, else rpcgen breaks.
* New API: add new api xfs_infoWanlong Gao2012-07-182-0/+53
| | | | | | | | | | | | 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.
* case_sensitive_path: Allow trailing path element to be missing (RHBZ#840115).Richard W.M. Jones2012-07-171-1/+4
| | | | | | | | | | | | case_sensitive_path is undefined when the final path element doesn't exist. Currently it returns an error, but this means that creating a new file doesn't work as expected: $ guestfish --rw -i -d windows touch 'win:c:\blah' libguestfs: error: case_sensitive_path: blah no file or directory found with this name We should allow this case (provided there is no trailing slash) so that new files or directories can be created.
* perl: In examples, call $g->shutdown, $g->close.Richard W.M. Jones2012-07-171-1/+2
|
* perl: Use $g instead of $h in documentation.Richard W.M. Jones2012-07-171-19/+19
| | | | $g is the "standard" name for libguestfs handles.
* generator: Rename 'ntfsresize_opts' API to 'ntfsresize'.Richard W.M. Jones2012-07-141-23/+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-143-38/+21
| | | | | 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-141-21/+5
| | | | | | 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).
* generator: In non-C bindings, generate '*_opts' alias.Richard W.M. Jones2012-07-1410-34/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | In C, a function called 'func' which has once_had_no_optargs=true will (because of the previous commit) generate 'func_opts' and a backwards-compatibility function called 'func'. This commit changes some of the non-C bindings so that they also generate 'func_opts' which is merely a wrapper that calls 'func'. This avoids incompatibility when we rename 'mkfs_opts' etc back to plain 'mkfs', and it also makes it easier to translate between other language bindings and C code. NB: Some bindings do not include aliases: PHP: There's no way to easily alias methods in PHP < 5.3, and we can't assume everyone has this minimum version. GObject: Very complex to add aliases, but we should probably do this at some point. Haskell: No support for optargs in these bindings. Unfortunately this means that we can no longer bind 'Guestfs.add_drive' (since it will be changed to add optional arguments) making the Haskell bindings even less useful than they were already.