603 Commits

Author SHA1 Message Date
Richard W.M. Jones
c0eceb1bd1 EPEL 5: Remove PHP bindings. 2013-10-17 22:45:13 +01:00
Richard W.M. Jones
9a427b97c0 EPEL 5: Remove GObject / GObject Introspection / GJS bindings. 2013-10-17 22:45:13 +01:00
Richard W.M. Jones
68b094e0b0 EPEL 5: Remove Erlang bindings. 2013-10-17 22:45:13 +01:00
Richard W.M. Jones
205d72417a Version 1.20.12. 2013-10-17 15:27:03 +01:00
Richard W.M. Jones
0be5cd3357 Version 1.20.11. 2013-08-27 12:03:46 +01:00
Richard W.M. Jones
92912c484e lib: Add stringsbuf mini-library for constructing lists of strings.
This is modelled on similar code in the daemon that we have used
successfully for a long time.

(cherry picked from commit 35278e4c18)
(cherry picked from commit 7fd3b1cc8a)
2013-08-24 11:41:51 +01:00
Richard W.M. Jones
5c688c333e resize: Move isatty_stdout function to separate module (TTY.isatty_stdout).
It was jammed into the Progress module just for convenience.

(cherry picked from commit b56990ddf8)
(cherry picked from commit 93daf42b52)
2013-08-24 11:31:16 +01:00
Richard W.M. Jones
cc34fb3ab3 Version 1.20.10. 2013-07-26 18:11:13 +01:00
Richard W.M. Jones
8548000901 Version 1.20.9. 2013-06-14 17:18:45 +01:00
Richard W.M. Jones
efb83c4ab3 build: Add common-rules.mk, common rules for all Makefiles.
This file is mainly a central place to:

 - include localenv if it exists, and

 - define the RHEL 5 backwards compatibility macros, instead of
   spreading them over every other file.

(cherry picked from commit 49bdaabc7d)
(cherry picked from commit 7bc67024f0)
2013-06-14 13:14:25 +01:00
Richard W.M. Jones
81188966f2 Version 1.20.8. 2013-06-03 16:14:56 +01:00
Richard W.M. Jones
8734e0f0a7 Version 1.20.7. 2013-05-28 21:42:14 +01:00
Richard W.M. Jones
cb0400e0a0 Version 1.20.6. 2013-04-11 17:53:02 +01:00
Richard W.M. Jones
2026b10c37 Version 1.20.5. 2013-03-31 11:20:28 +01:00
Richard W.M. Jones
8f6e73c475 OCaml tools: Use Common_gettext and Common_utils modules.
Share these modules across all three tools virt-resize, virt-sparsify
and virt-sysprep.

This is mostly code motion.
(cherry picked from commit 05ba393724)
2013-03-31 10:12:25 +01:00
Richard W.M. Jones
3a85648611 launch: Move code concerned with adding drives to 'src/drives.c'.
Apart from adding a few comments, this is entirely code motion.

(cherry picked from commit 33ec3eca29)
2013-03-31 10:12:24 +01:00
Richard W.M. Jones
3ecbef5aef Version 1.20.4. 2013-03-13 10:53:06 +00:00
Richard W.M. Jones
e1da41b646 Version 1.20.3. 2013-03-05 19:59:26 +00:00
Richard W.M. Jones
40668b1adc lib: Create libutils convenience library.
The libutils convenience library is a place for code shared between
the main library, language bindings and virt tools.  Note that the
code is statically linked into both the library, each binding and each
tool, but this is an improvement because (a) the source is shared and
(b) libguestfs.so can export fewer private functions.

Currently it contains the cleanup functions, and the functions
guestfs___free_string_list function and guestfs___for_each_disk.

guestfs___for_each_disk has changed so that it no longer
unconditionally sets the error in the guestfs handle.  Instead callers
can control error handling.
(cherry picked from commit 04723b4dd1)
2013-03-05 18:39:24 +00:00
Richard W.M. Jones
5dfeee78a4 Version 1.20.2. 2013-02-14 19:00:04 +00:00
Richard W.M. Jones
290bc85041 Update copyright dates for 2013.
(cherry picked from commit 0d18a8b407)
2013-02-14 16:13:29 +00:00
Richard W.M. Jones
7f6a5bfee2 New API: rename: Rename file within the same filesystem (RHBZ#895910).
(cherry picked from commit 159e8f8c3a)
2013-02-14 15:07:49 +00:00
Richard W.M. Jones
999e119477 Version 1.20.1. 2012-12-20 16:59:10 +00:00
Richard W.M. Jones
f784c87859 Version 1.20.0. 2012-12-13 14:18:30 +00:00
Richard W.M. Jones
436593f81f Push and pull latest translations from Transifex. 2012-12-11 17:15:49 +00:00
Richard W.M. Jones
0efe61b19d Add support for Windows dynamic disks (libldm / ldmtool) (RHBZ#782167).
New APIs:

  list-ldm-volumes
  list-ldm-partitions
  ldmtool-create-all
  ldmtool-remove-all
  ldmtool-scan
  ldmtool-scan-devices
  ldmtool-diskgroup-name
  ldmtool-diskgroup-volumes
  ldmtool-diskgroup-disks
  ldmtool-volume-type
  ldmtool-volume-hint
  ldmtool-volume-partitions
2012-12-11 15:20:19 +00:00
Richard W.M. Jones
443ea95faf Version 1.19.66. 2012-12-01 13:38:58 +00:00
Richard W.M. Jones
a8f6e06b30 Version 1.19.65. 2012-11-29 19:40:00 +00:00
Richard W.M. Jones
90e7981082 inspection: Read libosinfo database in order to inspect OS install CD/DVD/ISOs (RHBZ#803650, RHBZ#805417). 2012-11-29 18:22:00 +00:00
Richard W.M. Jones
d7517360f2 Version 1.19.64. 2012-11-24 15:11:28 +00:00
Richard W.M. Jones
aeea803ad0 appliance: Pass lpj=... on the appliance command line (thanks Marcelo Tosatti).
Try to get the host's loops_per_jiffy value and pass this on the
command line to the guest.  In theory this should avoid the appliance
having to recalculate this value in a VM with TCG (which is generally
error-prone).  This should avoid timing issues.

We only do this when we are certain that the guest will be TCG.
Currently we only have enough information to do this from the libvirt
attach-method.  So mostly this will only affect people using Fedora in
a VM.

The host loops_per_jiffy value is not exported by the kernel.  It is
only printed by the kernel early during boot, so if boot messages have
"scrolled off" the kernel ring buffer, it won't be available.  Some
operating systems save early kernel messages in /var/log/dmesg but (a)
Fedora 18+ seem to have abandoned this file and (b) on Ubuntu this
file is unreadable for spurious "security" reasons.

I have submitted a patch to make lpj available through /proc/cpuinfo.
2012-11-24 14:17:08 +00:00
Richard W.M. Jones
12acff5f56 Version 1.19.63. 2012-11-23 17:33:00 +00:00
Richard W.M. Jones
fae8d7cafb New APIs: Implement Linux filesystem capabilities.
This adds the following new APIs:
 - cap_get_file
 - cap_set_file
2012-11-22 16:45:32 +00:00
Richard W.M. Jones
218b39acae New APIs: Implement POSIX ACLs.
This adds the following new APIs:
 - acl_get_file
 - acl_set_file
 - acl_delete_def_file
2012-11-22 16:19:21 +00:00
Wanlong Gao
9fb5a3ceaf sysprep: remove crash data generated by kexec-tools
Remove the kdump generated kernel crash data.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

RWMJ:
 - Added /var/log/dump/* path for SLES (thanks Olaf Hering).
 - Update po/POTFILES-ml.
2012-11-22 08:30:21 +00:00
Richard W.M. Jones
8ae8f1453b Update PO files from transifex. 2012-11-20 19:51:45 +00:00
Richard W.M. Jones
20d524f4fa Version 1.19.62. 2012-11-20 19:43:18 +00:00
Richard W.M. Jones
36e71e0cf4 Version 1.19.61. 2012-11-19 14:46:59 +00:00
Richard W.M. Jones
a9c4efdcfd Version 1.19.60. 2012-11-17 20:03:57 +00:00
Richard W.M. Jones
ff8bfd3e92 Add Lua bindings.
These are relatively complete, although only lightly tested.  Missing:

 - events
 - last_errno
 - user_cancel
2012-11-17 20:02:42 +00:00
Richard W.M. Jones
5638cd3024 Version 1.19.59. 2012-11-13 15:36:30 +00:00
Richard W.M. Jones
02ecd048d3 lib: Split up huge src/guestfs.c into logical compilation units.
This file had grown by accretion to include:

 - code related to handles (now in src/handle.c)

 - safe allocation (src/alloc.c)

 - debug, errors, warnings (src/errors.c)

 - private data (src/private-data.c)

 - miscellaneous functions (src/canonical-name.c, src/utils.c)

This commit also removes about a dozen #include files which were
probably not really used.

This is just code motion.
2012-11-12 13:40:25 +00:00
Richard W.M. Jones
17090bd09f Version 1.19.58. 2012-11-10 11:25:26 +00:00
Richard W.M. Jones
1efed122c0 lib: Rework temporary and cache directory code.
New APIs: set-tmpdir, get-tmpdir, set-cachedir, get-cachedir.

The current code has evolved over time and has a number of problems:

(a) A single environment variable ($TMPDIR) controls the
location of several directories.

(b) It's hard for the library user to predict which directory
libguestfs will use, unless the user simulates the same internal steps
that libguestfs performs.

This commit fixes these issues.

(a) Now three environment variables control the location of all small
temporary files, and the appliance cache:

  For temporary files: $LIBGUESTFS_TMPDIR or $TMPDIR or /tmp.

  For the appliance cache: $LIBGUESTFS_CACHEDIR or $TMPDIR or /var/tmp.

The user can also set these directories explicitly through API calls
(guestfs_set_tmpdir and guestfs_set_cachedir).

(b) The user can also retrieve the actual directories that libguestfs
will use, by calling guestfs_get_tmpdir and guestfs_get_cachedir.
These functions are also used internally.

This commit also:

 - reworks the internal tmpdir code

 - removes the internal (undocumented) guestfs_tmpdir call (replacing
   it with calls to the documented guestfs_get_tmpdir API instead)

 - changes the ./run script to set LIBGUESTFS_TMPDIR and
   LIBGUESTFS_CACHEDIR

 - adds a test

 - fixes a few places like libguestfs-make-fixed-appliance which
   depended on $TMPDIR
2012-11-09 13:11:53 +00:00
Richard W.M. Jones
6c539fa0a6 Version 1.19.56. 2012-11-02 14:45:11 +00:00
Richard W.M. Jones
9a1a0c67ac generator: Split up huge src/actions.c into separate files.
Split the functions according to a simple hash across
C.nr_actions_files files (this number can be increased later if
necessary).

This is just code motion.
2012-11-02 14:38:03 +00:00
Richard W.M. Jones
58720cc968 generator: actions: Move variant functions to a separate file.
This is just code motion.
2012-11-02 14:36:36 +00:00
Richard W.M. Jones
6f34b81321 generator: actions: Move 3 helper functions to a separate file.
This is just code motion.
2012-11-02 14:36:31 +00:00
John Eckersberg
bafd822914 lib: Add inspect_list_applications2 method (RHBZ#859949)
RWMJ:
- Fix memory leak in guestfs__inspect_list_applications wrapper.
- Don't document app2_spare* fields.
2012-11-01 18:22:01 +00:00
Hilko Bengen
4c285dd8f6 message catalogs don't need to be executable 2012-11-01 12:25:56 +00:00