| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch allows you to do:
mkdir build
cd build
../configure ...
make
This will output all generated files to the build directory. Given that
autogen automatically runs configure, you can also do:
BUILDDIR=./build ./autogen.sh
which will do the right thing.
Also:
* Fix a dependency bug which means that guestfs_protocol.h
isn't automatically rebuilt.
* Re-running autogen.sh with no arguments won't blow away your previous
configure arguments.
|
| |
| |
| |
| | |
* src/generator.ml: Add a few "const" attributes.
|
| |
| |
| |
| |
| | |
* daemon/guestfsd.c (commandrv): Free original buffer (rather
than leaking it) if realloc fails.
|
| | |
|
| |
| |
| |
| |
| | |
* daemon/readdir.c (do_readdir): Free both p and v.name, in case
only one of the allocations failed.
|
| |
| |
| |
| | |
indicationg we're done creating the appliance
|
| | |
|
| |
| |
| |
| | |
Tab-completion on destination paths should now work correctly.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
'make dist' won't copy symlinks into the output file, so we
have to add a rule to the Makefile to copy these.
(Issue reported by Guido Gunther).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* src/generator.ml (safe_malloc): Define to guestfs_safe_malloc.
(safe_calloc): Define to guestfs_safe_calloc.
[most generated code]: Fail immediately upon failure of otherwise-
unchecked malloc and calloc calls.
* src/guestfs.c: Include <stddef.h>.
(xalloc_oversized): Define.
* src/guestfs.h (guestfs_safe_calloc): Declare.
|
| |
| |
| |
| |
| | |
* src/generator.ml: Slightly safer, in case the
declared type ever changes.
|
|\| |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This command is a saner interface to partitioning.
All partition sizes are specified in megabytes (not cylinders).
You don't need to specify the cyls/heads/secs parameters.
All the test code has been updated to use this, so it is now
CHS-independent (eg. when CHS changes as between IDE and virtio).
|
| |
| |
| |
| |
| |
| | |
These generated files were accidentally left in when we
removed the other generated files in cset
b3cb0b04eb2d38ba32c160a83d8e3894b376907b.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
With this flag the packager can decide to default to a particular
qemu drive model. The current default is 'ide', however note that
we intend to change this in future to 'virtio' once some upstream
regressions are fixed. Packagers can force a particular drive
model if they wish.
|
| |
| |
| |
| |
| | |
><fs> time sfdisk /dev/sda 0 0 0 ,
elapsed time: 6.12 seconds
|
| |
| |
| |
| |
| | |
Messages which include the proc_nr can now also include the
name of the actual function being called.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
needed for device mapper (LVM)
|
| |
| |
| |
| | |
for modularized Debian kernels
|
| |
| |
| |
| | |
* daemon/configure.ac: Use AM_PROG_CC_C_O, not AC_PROG_CC_C_O.
|
| |
| |
| |
| |
| | |
* src/Makefile.am (BUILT_SOURCES): Define.
($(BUILT_SOURCES)): Depend on stamp-generator.
|
| |
| |
| |
| |
| | |
This file is required by configure, so we need to add it so
it is available after the git checkout.
|
| |
| |
| |
| | |
This speeds up the generator greatly.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Git users now require the OCaml compiler in order to regenerate
the generated code after a checkout.
Generated code will remain in the tarball, so users of the
source tarball will not need the OCaml compiler.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a readdir call (mostly intended for programs). The
return value is a list of guestfs_dirent structures.
This adds the new types 'struct guestfs_dirent' and
'struct guestfs_dirent_list', along with all the code to
return these in the different language bindings.
Also includes additional tests for OCaml and Perl bindings
to test this.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fish/destpaths.c (xalloc_oversized): Define.
(complete_dest_paths_generator): Use size_t as type for a few
variables, rather than int.
Don't deref NULL or undef on failed heap alloc.
Don't leak on failed realloc.
Detect theoretical overflow when count_strings returns a very
large number of strings.
Handle asprintf failure.
(APPEND_STRS_AND_FREE): Rewrite as do {...}while(0), so that each use
can/must be followed by a semicolon. Better for auto-formatters.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Because udev operates asynchronously, we found errors which were
caused by a previous command (eg. sfdisk or pvremove) creating
or removing a device, and that change not having happened by the
time the next command was run.
This patch adds calls to '/sbin/udevadm settle' after any commands
which can add or remove device nodes.
If udev is not being used or not available, this should have no
effect. The command fails and this is silently ignored.
|
| |
| |
| |
| |
| |
| | |
We are generally interested that the subcommand ran without
error, ie. had exit status of 0. 'pclose' returns the exit
status, so we now check that pclose (fp) != 0.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Should use 'pclose' instead of 'fclose' (although fclose happens
to work because of glibc internals).
The result of pclose is the exit status of the command, so we
need to test this is != 0.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
virtio_blk is the fast, virt-native block device driver
supported by qemu and KVM. Note that virtio_blk device
names are called /dev/vd*.
Existing scripts should continue working because device name
translation will silently change device names of the form
/dev/sd* to /dev/vd* as required.
See also:
http://libguestfs.org/guestfs.3.html#block_device_naming
|
| |
| |
| |
| | |
* src/guestfs.c (guestfs_error): Handle failing vasprintf.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Current statvfs test depended on a lot of filesystem details
which can change if the CHS of the underlying block device
changes (eg. with the switch from IDE -> virtio). These are
not really necessary to test the call, so instead just check
for filesystem features.
|
| |
| |
| |
| |
| |
| |
| | |
Set output mode to unbuffered so that we see ordinary output
messages and errors at the same time.
Align "skipped" messages.
|