summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Document ambiguity between devices and paths in API.Richard W.M. Jones2010-09-261-0/+31
|
* Document accurately how supermin appliance uses /tmp as a cache.Richard W.M. Jones2010-09-241-3/+3
|
* Allow $TMPDIR to override most temporary directory uses.Richard W.M. Jones2010-09-245-24/+41
| | | | | | | Be more consistent in allowing the user to override use of the temporary directory by specifying $TMPDIR. Also prefer P_tmpdir macro (defined in <stdio.h>) if that is defined, rather than hard-coding "/tmp" for the fallback location.
* New APIs: upload-offset and download-offsetRichard W.M. Jones2010-09-211-1/+1
| | | | | These APIs allow you to efficiently write and read parts of files or devices.
* leak: Free PCRE regexps when library is unloaded.Richard W.M. Jones2010-09-211-0/+18
| | | | | | | The compiled PCRE regexps used for inspection were being leaked when the library was unloaded. (Found by valgrind).
* leak: Appliance name was leaked during guestfs_launch.Richard W.M. Jones2010-09-211-0/+2
| | | | | | | This frees the string containing the name of the appliance which was previously being leaked during launch. (Found by valgrind).
* Fix error launching libguestfs when euid != uid.Richard W.M. Jones2010-09-201-25/+108
| | | | | | | | | | | | | | | | | When writing to a RHEV target, virt-v2v launches the libguestfs appliance with euid:egid = 36:36, which is required to write to an NFS target using root_squash. Since we changed to using a cached appliance, this causes an error on start up, as the cached files are owned by root, but the cache directory is owned by 36:36. The reason is that bash resets euid to uid and egid to gid so when febootstrap-supermin-helper is executed, it runs as root:root. The cache directory was created by libguestfs directly so it has the correct ownership. This patch fixes the issue by using explicit fork/exec instead of system (ie. not going via a shell) and by setting the real UID and GID to the effective UID and GID before execing.
* New API: list-filesystems: list filesystemsRichard Jones2010-09-151-0/+137
| | | | | | | | | | | | | | | | | | This API is a simpler replacement for the guestfish commands list-devices / list-partitions / lvs, in the case where you are just examining a guest by hand to see what it contains. Typical usage and output in guestfish is like this: $ guestfish --ro -a /dev/vg_trick/F13x64 ><fs> run ><fs> list-filesystems /dev/vda1: ext4 /dev/vg_f13x64/lv_root: ext4 /dev/vg_f13x64/lv_swap: swap It can also be used to replace programs that try to mount devices to determine if they are mountable filesystems.
* New API: part-to-dev: Convert partition name to device name.Richard Jones2010-09-151-1/+1
| | | | | This adds a formal API for going from a partition to the containing device, eg. /dev/sda1 -> /dev/sda
* build: require Augeas for library.Richard Jones2010-09-111-2/+2
| | | | | | Augeas has been required since we moved the inspection code to C, however we were not correctly enforcing this in configure.ac, nor correctly linking to the library until now.
* build: Don't distribute src/generator.ml, no longer exists.Richard Jones2010-09-111-1/+0
|
* Split generator into separate source files.Richard Jones2010-09-112-13200/+1
| | | | | | | | | | 'src/generator.ml' is no more. Instead the generator is logically split up over many different source files. Read generator/README for help and tips. We compile the generator down to bytecode, not native code. This means it will run more slowly, but is done for maximum portability.
* syntax: Remove unused ignore-value.h header.Richard Jones2010-09-102-2/+0
|
* syntax: Remove unused signal.h header.Richard Jones2010-09-101-1/+0
|
* syntax: Remove unused c-ctype.h header.Richard Jones2010-09-102-2/+0
|
* syntax: Remove trailing spaces.Richard Jones2010-09-101-2/+2
|
* syntax: Use spaces instead of tabs for indentation.Richard Jones2010-09-102-4/+4
|
* New APIs: is-chardev, is-blockdev, is-fifo, is-symlink, is-socketRichard Jones2010-09-092-1/+63
| | | | These complement the existing is-file and is-dir APIs.
* generator: Fix incorrect shortdesc in docs for 'is-dir' command.Richard Jones2010-09-091-1/+1
|
* generator: Fix documentation for 'is-file' command.Richard Jones2010-09-091-2/+2
|
* guestfs: Reference guestfs-browser architecture in threads documentation.Richard Jones2010-09-091-0/+3
|
* guestfs: Document progress notification messages in protocol.Richard Jones2010-09-091-0/+14
|
* guestfs: More accurate documentation for initial message.Richard Jones2010-09-091-4/+3
|
* guestfs: Remove traces of documentation for non-existent 'low-level API'Richard Jones2010-09-091-13/+10
|
* guestfs: Fix typo in man page.Richard Jones2010-09-091-1/+1
|
* fish: Add guestfish -N bootroot and -N bootrootlv for creating boot+root disks.Richard Jones2010-09-081-0/+23
|
* fish: Add guestfish -N lvfs for creating formatted LVs.Richard Jones2010-09-081-1/+15
|
* fish: Add guestfish -N lv for creating disks with LVs.Richard Jones2010-09-081-0/+12
|
* fish: Generate list of prepared disk image types.Richard Jones2010-09-081-0/+114
| | | | This commit shouldn't change the semantics of the code.
* PHP bindings.Richard Jones2010-09-042-1/+435
| | | | | | Note that these are not complete on 32 bit architectures. PHP doesn't offer any convenient 64 bit type (on 32 bit). Therefore you should always use these PHP bindings on 64 bit.
* Define LIBGUESTFS_HAVE_<shortname> for C API functions.Richard Jones2010-09-043-9/+28
| | | | | | | | | | | | The actions each have a corresponding define, eg: #define LIBGUESTFS_HAVE_VGUUID 1 extern char *guestfs_vguuid (guestfs_h *g, const char *vgname); However functions which are for testing, debugging or deprecated do not have the corresponding define. Also a few functions are so basic (eg. guestfs_create) that there is no point defining a symbol for them.
* build: guestfs-structs.h was missing from libguestfs_la_SOURCES.Richard Jones2010-09-041-0/+1
|
* ruby: Add Guestfs::Guestfs.new() method.Richard Jones2010-09-021-0/+4
| | | | | | This is a more standard way to create objects in Ruby. The old way was to call the module function Guestfs::create() which still works.
* perl: Document handle is a hashref.Richard Jones2010-09-021-0/+18
| | | | For details see commit eb566f7dc7974b42ac65729a2e5e5bcee329a0a9.
* perl: Add documentation about testing availability of methods and features.Richard Jones2010-09-021-0/+31
|
* Consistent use of 'void *opaque' to refer to opaque pointer in C API.Richard Jones2010-09-012-11/+11
| | | | | | We inconsistently used 'void *data' or 'void *opaque' all over to refer to the same thing. Use 'void *opaque' in all places in the published API and documentation.
* perl: bindings to progress callback.Richard Jones2010-09-011-3/+77
|
* ocaml: bindings to progress callback.Richard Jones2010-09-011-0/+29
|
* Implement private data area.Richard Jones2010-09-015-0/+128
| | | | | | | | | The private data area is a hash table which is associated with libguestfs handles, that C callers may use to store arbitrary data for the lifetime of the handle. Later the OCaml bindings will use this in order to implement callbacks.
* Add progress messages to download command.Richard Jones2010-09-011-1/+1
|
* Add progress messages to zero-device command.Richard Jones2010-09-011-1/+1
|
* Add progress messages to zero command.Richard Jones2010-09-011-1/+1
|
* Add progress messages to fill-pattern command.Richard Jones2010-09-011-1/+1
|
* Add progress messages to fill command.Richard Jones2010-09-011-1/+1
|
* Add progress messages to copy-size command.Richard Jones2010-08-311-1/+10
|
* Implement progress messages in the daemon and library.Richard Jones2010-08-316-5/+128
| | | | | | | | | | | | This implements progress notification messages in the daemon, and adds a callback in the library to handle them. No calls are changed so far, so in fact no progress messages can be generated by this commit. For more details, see: https://www.redhat.com/archives/libguestfs/2010-July/msg00003.html https://www.redhat.com/archives/libguestfs/2010-July/msg00024.html
* Rename global 'xdr_str'.Richard Jones2010-08-251-5/+5
| | | | | | | Two bits of XDR both contained a definition called 'str' which means that 'xdr_str' was being exported globally twice. Because of the linker script this didn't affect us. But it's best to rename this global so that conflicts cannot arise.
* Add -nodefconfig command line option to qemu.Daniel Berrange2010-08-241-0/+3
| | | | | Without this option, qemu will read some defaults from /etc/qemu/ configuration files.
* New APIs: set-network and get-network to enable network support.Richard Jones2010-08-245-0/+46
| | | | guestfs_set_network (g, true) enables network support in the appliance.
* Change protocol to send Linux errno from daemon to library.Richard Jones2010-08-242-1/+5
| | | | | | | This changes the protocol so that the Linux errno (if available) is sent back to the library. Note that the errno is not yet made available to callers, since it is not clear how best to present this Linux-specific number.