summaryrefslogtreecommitdiffstats
path: root/po
Commit message (Collapse)AuthorAgeFilesLines
* lib: Add a new 'command' mini-library for running external commands.Richard W.M. Jones2012-10-181-0/+1
| | | | | | | | | | | | | This is a wrapper or mini-library for running external command, loosely based on libvirt's virCommand interface. Amongst the advantages are: - Can redirect errors into the error log (RHBZ#713678). - Can redirect output into a callback function. - Handles shell quoting properly. - Safely resets signal handlers, closes file descriptors, etc. - Single place where we can implement other improvements in future.
* NEW API: mktempWanlong Gao2012-10-171-0/+2
| | | | | | | | | | | | | | | | 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)).
* Update PO files from Transifex.Richard W.M. Jones2012-10-1415-12364/+13046
| | | | Also run 'make update-po'.
* New APIs: Model libvirt authentication events through the API.Richard W.M. Jones2012-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | | This commit models libvirt authentication events through the API, adding one new event (GUESTFS_EVENT_LIBVIRT_AUTH) and several new APIs: guestfs_set_libvirt_supported_credentials guestfs_get_libvirt_requested_credentials guestfs_get_libvirt_requested_credential_prompt guestfs_get_libvirt_requested_credential_challenge guestfs_get_libvirt_requested_credential_defresult guestfs_set_libvirt_requested_credential See the documentation and example which shows how to use the new API. This commit also changes existing calls to virConnectOpen* within the library so that the new API is used. Also included is an example (but not a test, because it's hard to see how to automatically test the libvirt API).
* lib: Rename src/libvirtdomain.c -> src/libvirt-domain.c.Richard W.M. Jones2012-10-131-1/+1
| | | | No change, just code motion.
* Version 1.19.51.1.19.51Richard W.M. Jones2012-10-1115-196/+196
|
* sparsify: Re-use progress bar wrapper code from virt-resize.Richard W.M. Jones2012-10-112-5/+3
| | | | | | | | | | | The code was identical -- just copied with s/resize/sparsify/. Instead of duplicating identical code, cause the Makefile.am to use the code from the ../resize/ directory. Unfortunately because there are two Utils modules (which are different), this means we had to rename those modules to Resize_utils and Sparsify_utils respectively. So this is a rather larger change than intended. However it's just code motion.
* Version 1.19.50.1.19.50Richard W.M. Jones2012-10-101-2/+2
|
* Version 1.19.49.Richard W.M. Jones2012-10-0915-11851/+12403
|
* Add support for hotplugging (adding disks) to the libvirt attach-method.Richard W.M. Jones2012-10-081-0/+1
| | | | | | | | | | | | | When libvirt is used, we can allow disks to be hotplugged. guestfs_add_drive can be called after launch to hot-add a disk. When a disk is hot-added, we first ask libvirt to add the disk to the appliance, then we make an internal call into the appliance to get it to wait for the disk to appear (ie. udev_settle ()). Hot-added disks are tracked in the g->drives array. This also adds a test.
* Version 1.19.47.1.19.47Richard W.M. Jones2012-10-0615-1053/+16931
|
* Version 1.19.46.1.19.46Richard W.M. Jones2012-10-0115-16976/+1044
|
* Version 1.19.45.1.19.45Richard W.M. Jones2012-09-2615-586/+586
|
* Version 1.19.44.1.19.44Richard W.M. Jones2012-09-2415-11116/+11311
|
* NEW API:ext:mke2fsWanlong Gao2012-09-241-0/+1
| | | | | | | | | | | 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.
* Version 1.19.43.1.19.43Richard W.M. Jones2012-09-2115-515/+605
|
* Version 1.19.42.1.19.42Richard W.M. Jones2012-09-1715-11671/+11731
|
* Version 1.19.41.1.19.41Richard W.M. Jones2012-09-1615-1681/+1681
|
* Version 1.19.40.1.19.40Richard W.M. Jones2012-09-041-2/+2
|
* Version 1.19.39.1.19.39Richard W.M. Jones2012-09-0415-11551/+11986
|
* rescue: Add an expect-driven test for the virt-rescue command.Richard W.M. Jones2012-09-041-0/+1
| | | | | | | | This command was not tested at all. As a result we didn't notice that it was broken for a long time (RHBZ#853159). This adds a test that drives the command through a pty. It uses the perl 'Expect' module, although this is not required.
* Version 1.19.38.1.19.38Richard W.M. Jones2012-09-0315-11296/+11506
|
* New API: guestfs_disk_formatRichard W.M. Jones2012-09-031-0/+1
| | | | Detect the disk image format of a file, in a secure way.
* sysprep: remove hostname from ifcfg-*Wanlong Gao2012-09-031-0/+1
| | | | | | Remove hostname from network interface configuration. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* generator: Test zero args, one optarg; and 63 optargs.Richard W.M. Jones2012-09-031-0/+2
| | | | This just generates the code; it's not called.
* Version 1.19.37.1.19.37Richard W.M. Jones2012-08-3115-31/+31
|
* Version 1.19.36.1.19.36Richard W.M. Jones2012-08-3015-11161/+11236
|
* NEW API:xfs:xfs_repairWanlong Gao2012-08-301-0/+1
| | | | | | | | | | 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.
* Version 1.19.35.1.19.35Richard W.M. Jones2012-08-2915-10929/+11984
|
* New APIs: hivex_*Richard W.M. Jones2012-08-291-0/+4
| | | | | | | | | | | 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.
* Version 1.19.34.1.19.34Richard W.M. Jones2012-08-2815-2686/+2671
|
* Modified API: mkswap now takes optional arguments.Richard W.M. Jones2012-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Version 1.19.33.1.19.33Richard W.M. Jones2012-08-2115-10756/+10891
|
* New API: xfs: xfs_adminWanlong Gao2012-08-211-0/+1
| | | | | | | | | | | 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.
* Version 1.19.32.1.19.32Richard W.M. Jones2012-08-1815-10701/+11781
|
* sysprep: Add --firstboot functionality.Richard W.M. Jones2012-08-181-0/+2
| | | | | This allows you to add scripts that run in the context of the guest the first time it boots.
* guestfs_cat: Reimplement to avoid protocol limits.Richard W.M. Jones2012-08-171-0/+1
|
* Version 1.19.31.1.19.31Richard W.M. Jones2012-08-1515-316/+316
|
* Version 1.19.30.1.19.30Richard W.M. Jones2012-08-1415-3281/+3636
|
* Add optional compress flag to tar-in, tar-out APIs.Richard W.M. Jones2012-08-141-0/+2
| | | | | | | | | | 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.
* Version 1.19.29.Richard W.M. Jones2012-08-1115-10987/+11439
|
* sysprep: remove the process accounting log filesWanlong Gao2012-08-111-0/+1
| | | | | | | | | | We just remove the process accounting files previously without touch a empty file, this will cause psacct runs error. Restart the service can't help us create this file auto. couldn't open file '/var/account/pacct': No such file or directory Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* New APIs: rsync, rsync-in, rsync-outRichard W.M. Jones2012-08-111-0/+4
| | | | Implement rsync.
* Version 1.19.28.1.19.28Richard W.M. Jones2012-08-0215-10336/+10426
|
* grep: Add optargs to grep API and deprecate fgrep etc.Richard W.M. Jones2012-08-021-0/+1
| | | | | | | | 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/+1
| | | | | | New api xfs_growfs for expanding a XFS filesystem. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Version 1.19.27.1.19.27Richard W.M. Jones2012-07-3015-10306/+10366
|
* 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
* Version 1.19.26.1.19.26Richard W.M. Jones2012-07-2615-11190/+12150
|
* sysprep: Generate new random UUIDs for LVM2 PVs and VGs (thanks Kazuo Moriwaka).Richard W.M. Jones2012-07-251-0/+1
|