summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* recipes: Fix git URL.1.0.79Richard Jones2009-11-181-1/+1
|
* Prepare for version 1.0.79.Richard Jones2009-11-183-722/+730
|
* fuse: Add test-fuse.sh to EXTRA_DIST.Richard Jones2009-11-181-1/+1
|
* generator: Fix API of functions that return RBufferOutRichard Jones2009-11-182-16/+38
| | | | | | | | | | | | | | | | | | | | | (NB: The API / ABI doesn't actually change here - it's just made much simpler to use). The API for RBufferOut functions was unexpectedly hard to use in the case where a zero-length buffer might be returned. For discussion on this see: https://www.redhat.com/archives/libguestfs/2009-November/thread.html#00115 This commit ensures that in the zero-length buffer case, the return value is never NULL. Thus code is now able to just check if the return value == NULL to indicate an error, which is simpler for all concerned. The implementation of this is, however, more complex because we have to be careful about this case inside both the daemon and the library code, which is what this commit does. This has passed a full round of tests.
* fuse: Add tests for guestmount.Richard Jones2009-11-172-0/+226
| | | | | This script contains non-exhaustive tests for the system calls implemented by guestmount.
* fuse: Fix read for empty files.Richard Jones2009-11-171-1/+7
| | | | | Error handling for the guestfs_pread call was incorrect, which meant that empty files could produce spurious error messages.
* fish: Improve output of guestfish -h cmdRichard Jones2009-11-172-4/+6
| | | | | | Display this output like a short manual page. Don't put <..> around the parameters to the command.
* New API call: fill - fill a file with octetsRichard Jones2009-11-175-1/+92
|
* fuse: Fix cache invalidation in rename operation.Richard Jones2009-11-171-0/+1
| | | | | We need to invalidate both parameters, otherwise the old (moved) file can appear that it still exists after the move.
* fuse: Fix hard link creation.Richard Jones2009-11-171-1/+2
| | | | | The parameters were swapped. We also need to invalidate the cache for both parameters.
* fuse: Fix symlink creation (RHBZ#538069).Richard Jones2009-11-171-1/+1
| | | | The parameters were swapped, preventing symlinks from being created.
* virt-df: Ignore domains which have ID 0.Richard Jones2009-11-171-0/+3
| | | | | | | | | This is the remainder of the fix for RHBZ#538041. Domains which have ID 0 are special domains. libvirt defines it as the "control plane OS". Only Xen and HyperV have this behaviour, and in both cases we should ignore those domains for the purposes of virt-df (user can just run "df" if they need that information for the dom0).
* virt-df: Turn errors into warnings when listing all domains.Richard Jones2009-11-171-1/+2
| | | | | | This is a partial fix for RHBZ#538041. When listing all domains, don't die just because one domain fails, but keep trying for the rest.
* Docs: copyeditingRichard W.M. Jones2009-11-131-7/+17
|
* Docs: Add documentation about other language bindings to API overview.Richard W.M. Jones2009-11-131-0/+54
|
* Docs: line folding in example.Richard W.M. Jones2009-11-131-1/+3
|
* Docs: group preformatted sections of text together.Richard W.M. Jones2009-11-132-11/+11
|
* Docs typo: limited -> limitsRichard W.M. Jones2009-11-131-1/+1
|
* Docs: Add section on using multiple threads.Richard W.M. Jones2009-11-131-0/+9
| | | | This section was missing from the previous documentation.
* Docs: Add/extend API overview.Richard W.M. Jones2009-11-131-152/+316
|
* Docs: Remove incorrect statement from man page.Richard W.M. Jones2009-11-131-2/+1
| | | | | | The low-level event-based API never existed so this statement in the man page is wrong. If you want an asynchronous API, use threads.
* build: revive the ocaml package testsJim Meyering2009-11-121-0/+26
| | | | | * autogen.sh: Generalize the ocaml-package-existence test. Remove the git-related part of the old test.
* Generate guestfs_protocol.x when stamp-generator updatesMatthew Booth2009-11-111-0/+2
| | | | | This partially reverts efad4f53923dcca94613e193d6383bd032e70498. guestfs_protocol.x wasn't being generated when building from a clean checkout.
* autogen.sh: Remove test for ocaml etc from this script.Richard Jones2009-11-111-21/+0
| | | | | This test seems to cause a lot of trouble. We need to go back to the drawing-board on this one.
* Set cpio blocksize to 64K.Richard Jones2009-11-111-1/+1
| | | | | See: https://www.redhat.com/archives/fedora-devel-list/2009-November/thread.html#00523
* Debian: don't depend on gfs-tools since these have depsolving problems.Richard Jones2009-11-101-0/+2
|
* Update PO files for release.1.0.78Richard Jones2009-11-102-856/+1013
|
* Check for ocaml-xml-light-devel (xml-light.cmxa)Richard Jones2009-11-101-3/+4
| | | | | Also unquote $pkg since OCaml package names can never contain spaces or other unfriendly characters.
* Prepare for version 1.0.78Richard Jones2009-11-101-1/+1
|
* tell "make syntax-check" that examples/to-xml.c is exempt from some testsJim Meyering2009-11-102-0/+2
| | | | | * .x-sc_prohibit_strcmp: Exempt examples/to-xml.c. * .x-sc_prohibit_strcmp_and_strncmp: Likewise.
* examples: Don't use STREQ etc in the to-xml.c example.Richard Jones2009-11-101-8/+8
|
* Don't export STREQ and friends in <guestfs.h>Richard Jones2009-11-1013-35/+121
| | | | | Move these to private header file(s) and other places as required since these aren't part of the public API.
* Fix problems found by 'make syntax check'Richard Jones2009-11-102-44/+44
|
* Print timestamped messages during appliance launch.Richard Jones2009-11-101-0/+54
| | | | | In verbose mode, print timestamped messages during guestfs_launch so we can see how long each step takes.
* Record time of guest launch.Richard Jones2009-11-101-6/+7
| | | | | | | | | | The guest handle field start_t was previously used (when we had the wait_ready call), but had fallen into disuse. Note that it could never be accessed through the API. Rename this field as launch_t, convert it to a timeval, and use it to measure the time since guestfs_launch was called so that we can start profiling guest launch.
* appliance: Prefix kernel messages with timestamp.Richard Jones2009-11-101-0/+1
|
* Generic partition creation interface.Richard Jones2009-11-1016-52/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a generic partition creation interface which should be future-proof and extensible, and partially replaces the old sfdisk-based interface. The implementation is based on parted but is hopefully not too dependent on the particulars of parted. The following new calls are introduced: guestfs_part_init: Initialize a disk with a partition table. Unlike the sfdisk- based interface, we also support GPT and other partition types, which is essential to scale to devices larger than 2TB. guestfs_part_add: Add a partition to an existing disk. guestfs_part_disk: Convenience function which combines part_init & part_add, creating a single partition that covers the whole disk. guestfs_part_set_bootable: guestfs_part_set_name: Set various aspects of existing partitions. guestfs_part_list: List partitions on a device. This returns a programming-friendly list of partition structs (in contrast to sfdisk-l which cannot be parsed). guestfs_part_get_parttype: Return the partition table type, eg. "msdos" or "gpt". The following calls are planned, but not added currently: guestfs_part_get_bootable guestfs_part_get_name guestfs_part_set_type guestfs_part_get_type
* Add ata_piix to kernel module whitelist (RHBZ#533886).Richard Jones2009-11-101-0/+1
|
* Fix compilation if readline library is not present.Richard Jones2009-11-101-0/+4
|
* Fix compilation when Augeas is not present.Richard Jones2009-11-101-1/+1
| | | | It would complain that NEED_AUG macro was defined but not used.
* avoid "syntax-check" failure: hide cast of argument to freeJim Meyering2009-11-101-2/+4
| | | | | * fuse/guestmount.c (fg_readlink): Perform cast in a separate statement to hide it from "make syntax-check".
* build: die early if we lack ocaml, ocamlfind or ocaml-xml-lightJim Meyering2009-11-101-0/+20
| | | | | * autogen.sh: Ensure that we fail very early when not building from a tarball and when one of those is not installed.
* tests: enable strcmp-related syntax-check testsJim Meyering2009-11-091-2/+0
| | | | | * cfg.mk (local-checks-to-skip): Don't skip these checks: sc_prohibit_strcmp_and_strncmp, sc_prohibit_strcmp.
* change strncasecmp() == 0 to STRCASEEQLEN()Jim Meyering2009-11-093-3/+3
| | | | | git grep -l 'strncasecmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *== *0\b/STRCASEEQLEN$1/g'
* change strncasecmp() == 0 to STRCASENEQLEN()Jim Meyering2009-11-091-1/+1
| | | | | git grep -l 'strncasecmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrncasecmp( *\(.*?\)) *!= *0\b/STRCASENEQLEN$1/g'
* use STREQ, not strcmp: part 2Jim Meyering2009-11-095-13/+13
| | | | | git grep -l 'strcmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *!= *0\b/STRNEQ$1/g'
* use STREQ, not strcmp: part 1Jim Meyering2009-11-0919-59/+59
| | | | | git grep -l 'strcmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrcmp( *\(.*?\)) *== *0/STREQ$1/g'
* change strncmp() == 0 to STREQLEN()Jim Meyering2009-11-0913-21/+21
| | | | | git grep -l 'strncmp *([^=]*== *0'|xargs \ perl -pi -e 's/\bstrncmp( *\(.*?\)) *== *0\b/STREQLEN$1/g'
* change strncmp(...) != 0 to STRNEQLEN(...)Jim Meyering2009-11-094-4/+4
| | | | | git grep -l 'strncmp *([^=]*!= *0'|xargs \ perl -pi -e 's/\bstrncmp( *\(.*?\)) *!= *0/STRNEQLEN$1/g'
* convert strcasecmp(...) != 0 to STRCASENEQ(...)Jim Meyering2009-11-091-5/+5
| | | | | git grep -E -l 'strcasecmp *\(.*!= ?0\b'|xargs \ perl -pi -e 's/\bstrcasecmp( ?\(.*?\)) != 0/STRCASENEQ$1/g'