summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
* New API: rm-f: remove a file, ignoring errors if it doesn't exist.Richard W.M. Jones2012-09-171-0/+27
|
* daemon: stubs: Move all arg decls to top of function.Richard W.M. Jones2012-09-171-2/+2
| | | | | | | | | | | | For some reason, argument declarations were handled inconsistently for strings and non-string arguments. Non-string arguments were all declared at the top of the function stub, where as string arguments were declared in place. Be consistent. This is just code motion.
* syntax: Remove definitions of O_CLOEXEC, except in examples (thanks Jim ↵Richard W.M. Jones2012-09-171-4/+0
| | | | | | | Meyering). The gnulib <fcntl.h> replacement header will now define this symbol if it's not defined already.
* syntax: Remove trailing whitespace.Richard W.M. Jones2012-09-155-9/+10
| | | | Found by 'make syntax-check'.
* generator: Remove inaccurate comment.Richard W.M. Jones2012-09-151-20/+0
| | | | | The correct way to extend functions is documented in generator/README. This comment was no longer accurate.
* syntax: Use STREQ/STRNEQ in place of strcmp.Richard W.M. Jones2012-09-151-1/+3
| | | | Found by 'make syntax-check'.
* perl: Add <stdio.h> and <stdlib.h> for printf and malloc.Richard W.M. Jones2012-09-151-0/+2
|
* perl: Include <inttypes.h> and assume it always defines PRId64 and PRIu64.Richard W.M. Jones2012-09-151-8/+2
| | | | | | If these are not defined in the header files, it's a problem on the platform which we should fix with gnulib. Our replacement definitions might be wrong here.
* fish: Replace '_' with '-' in deprecation cross-refs (thanks Olaf Hering).Richard W.M. Jones2012-09-132-3/+5
|
* generator: Remove generated and unused files from previous runs of the ↵Richard W.M. Jones2012-09-053-1/+44
| | | | | | | | | | | | generator. If you go back in time in git (eg. git reset, git bisect) then you can end up in a situation where a file that was generated by a later version is left around unused in the earlier version. This isn't a problem for most things, but gobject documentation generation picks up any file in a directory, even unreferenced ones, and breaks. So the correct thing to do is to remove these files.
* generator: gobject: Use a more normal way to output files.Richard W.M. Jones2012-09-052-100/+111
| | | | | The generator output is identical, verified by comparing the output files before and after the change.
* lib: Add tests to the disk-{format,virtual-size,has-backing-file} APIs.Richard W.M. Jones2012-09-041-0/+24
|
* New APIs: disk-virtual-size and disk-has-backing-file.Richard W.M. Jones2012-09-041-0/+22
|
* guestfs(3): Document disk image formats and how to detect them.Richard W.M. Jones2012-09-031-1/+3
|
* New API: guestfs_disk_formatRichard W.M. Jones2012-09-031-0/+12
| | | | Detect the disk image format of a file, in a secure way.
* generator: Test zero args, one optarg; and 63 optargs.Richard W.M. Jones2012-09-032-68/+104
| | | | This just generates the code; it's not called.
* java: Fix >= 32 optargs (thanks Wanlong Gao).Richard W.M. Jones2012-09-031-1/+1
|
* generator: Rename 'generator_*' as '*'.Richard W.M. Jones2012-09-0237-240/+238
| | | | | | | | | This is a simple renaming of the files/modules. Note that in OCaml, module names are derived from filenames by capitalizing the first letter. Thus the old module names had the form "Generator_api_versions". The new modules names have the form "Api_versions".
* tests: Make mkswap and tar tests conditional on linuxfsuuid and xz features.Richard W.M. Jones2012-08-311-3/+3
|
* NEW API:xfs:xfs_repairWanlong Gao2012-08-301-0/+28
| | | | | | | | | | 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.
* python: Convert OInt64 using PyLong_AsLongLong so 64 bit ints work correctly.Richard W.M. Jones2012-08-291-1/+1
| | | | | | This avoids the following error on 32 bit machines: OverflowError: Python int too large to convert to C long
* New API: guestfs_hivex_value_utf8Richard W.M. Jones2012-08-291-1/+19
| | | | | A convenience function that reads a value from the registry and returns it as UTF-8.
* New APIs: hivex_*Richard W.M. Jones2012-08-292-0/+201
| | | | | | | | | | | 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.
* perl: bindtests: Fix 64 bit integers on input on 32 bit Perl interpreter.Richard W.M. Jones2012-08-292-4/+27
|
* Mac OS X: Fixed combination of running autogen.sh on Linux and building on ↵Masami HIRATA2012-08-281-0/+1
| | | | | | Mac OS X Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* Modified API: mkswap now takes optional arguments.Richard W.M. Jones2012-08-281-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* python: Fixed syntax errors in python/guestfs-py.cMasami HIRATA2012-08-251-1/+1
| | | | Signed-off-by: Masami HIRATA <msmhrt@gmail.com>
* docs: Document null disks.Richard W.M. Jones2012-08-211-0/+3
| | | | | It's always been possible to use /dev/null as a disk image. Document this formally in the API.
* xfs_growfs: drop the unstructed outputWanlong Gao2012-08-211-1/+1
| | | | | | | Just drop the unstructed output since we can get the structed info from xfs_info instead. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New API: xfs: xfs_adminWanlong Gao2012-08-211-0/+27
| | | | | | | | | | | 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.
* Replace mount-options with mount where appropriate.Richard W.M. Jones2012-08-183-21/+21
| | | | | | Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs.
* docs: Rewrite section on protocol limits again.Richard W.M. Jones2012-08-171-17/+2
| | | | This updates commit 92e241440d361e9491a9d96d23ad7a378cb2ab6a.
* New API: fill-dir: Fill a directory with files (for testing).Richard W.M. Jones2012-08-171-0/+11
|
* guestfs_readdir: Note that this suffers from protocol limits.Richard W.M. Jones2012-08-171-0/+1
|
* guestfs_ls: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-21/+17
|
* New API: ls0 - List files, separated by \0 characters.Richard W.M. Jones2012-08-171-0/+14
| | | | | This API is not especially useful on its own. It will be used to reimplement guestfs_ls to work without protocol limits.
* guestfs_readlinklist: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-1/+25
|
* guestfs_lstatlist, guestfs_lxattrlist: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-2/+48
| | | | | Note that the code to do this was already in virt-ls, so this is change is mostly just moving the code into the core library.
* guestfs_write, guestfs_write_append: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-19/+69
| | | | | | | | Note that we keep the old daemon calls, but rename them as "internal_write" and "internal_write_append". This lets us implement the new library-side calls more efficiently in the common case when the uploaded content is smaller than the message buffer. In most cases the new calls won't end up using a temporary file.
* guestfs_read_lines: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-22/+45
| | | | This also makes a larger test suite for this command.
* guestfs_read_file: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-32/+15
|
* guestfs_find: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-52/+50
| | | | | This also reimplements the virt-ls -R option to use the replacement guestfs_find API, which is simpler (though actually less efficient).
* guestfs_cat: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-18/+24
|
* 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.