summaryrefslogtreecommitdiffstats
path: root/generator
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 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>