summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.Richard Jones2009-11-201-0/+5
|
* daemon: Missing #includes revealed by cross-compiling.Richard Jones2009-11-204-0/+4
|
* daemon/Win32: Ignore mingw32-config.cache.Richard Jones2009-11-201-0/+1
| | | | | The Fedora Windows cross-compiler 'mingw32-configure' script always uses a configure cache. Ignore that file.
* generator: open Unix module by default.Richard Jones2009-11-191-22/+23
| | | | | | | | | | | | | | Add: open Unix at the top of the generator, which means that we don't need to prefix any 'Unix.foo' symbols (we can just use 'foo' instead). Unfortunately the Unix module shadows one symbol in Pervasives (the Pervasives module is opened by default in OCaml code). That symbol is 'stdout'. So we replace this with 'Pervasives.stdout' in two places. Still a net reduction in code size.
* syntax-check: Fix tab-vs-space issue in the generator.Richard Jones2009-11-191-4/+4
|
* Update PO files.Richard Jones2009-11-192-14/+14
|
* Update TODO file.Richard Jones2009-11-191-0/+21
|
* build: Fix parallel build of haskell bindingsMatthew Booth2009-11-191-7/+13
| | | | | | | ghc isn't clever enough not to stomp on itself when building dependencies. This change makes the 1 dependency explicit. It also adds a dependency on src/libguestfs.la.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-1920-47/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* generator: Acquire lock to prevent two parallel runs of the generator.Richard Jones2009-11-191-6/+27
| | | | | | | | | | | | | This commit acquires a lock on a file to prevent two parallel runs of the generator from stomping on each other. The second run will wait for the first to complete before starting. The lock is acquired on the "HACKING" file because it's convenient -- we are already checking this file exists to make sure that we don't start off in the wrong directory. Tested by adding some artificial sleeps in the code to observe locking behaviour between two parallel runs.
* syntax-check: expand TABs in generator.mlJim Meyering2009-11-192-25/+25
| | | | | | | | | | | | | | | | | | | | | | Jim Meyering wrote: >>From 6f128e90afb055f9899011c4a592eb289e678936 Mon Sep 17 00:00:00 2001 > From: Jim Meyering <meyering@redhat.com> > Date: Thu, 19 Nov 2009 11:39:10 +0100 > Subject: [PATCH libguestfs] syntax-check: expand TABs in generator.ml > > * src/generator.ml: Expand leading TABs to spaces. That was incomplete. Please use the following instead. With it, now, "make syntax-check" now passes once again. >From 716a30d0b692972aac8fbea1fb7ad3318ab3a0d8 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering@redhat.com> Date: Thu, 19 Nov 2009 11:39:10 +0100 Subject: [PATCH libguestfs] syntax-check: expand leading TABs * src/generator.ml: Expand leading TABs to spaces. * fuse/test-fuse.sh: Likewise.
* syntax-check: exempt *.pod from no-trailing-blank prohibitionJim Meyering2009-11-191-0/+1
| | | | * .x-sc_trailing_blank: Exempt *.pod.
* BUILT_SOURCES now depends on running the generator.Richard Jones2009-11-181-1/+1
| | | | This completely reverts commit efad4f53923dcca94613e193d6383bd032e70498.
* daemon/RHEL: Choose correct udev settle script.Richard Jones2009-11-181-1/+21
| | | | | | | | | On RHEL/CentOS 5.4, udevadm settle command does not work. This didn't affect us before, but now that we're using parted for partitioning, we *do* need to wait for udev to settle (because parted isn't waiting for this, unlike sfdisk). This commit chooses the correct program to run.
* fuse/RHEL: Don't require UTIME_{NOW,OMIT} to be defined.Richard Jones2009-11-181-0/+8
| | | | | These macros don't exist on RHEL/CentOS 5.4. If the feature is missing then just don't implement it in the FUSE layer.
* appliance: Print uptime.Richard Jones2009-11-181-2/+4
| | | | | Print the uptime just before the init script runs the daemon, so we have a good idea of how long the kernel boot + init script takes to run.
* 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.