Richard W.M. Jones
fb3afdff47
virt-format: Discard the data on the disks.
...
If possible, this means that the host will be able to reclaim most of
the space used by formatted disks.
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
93f1bfcad7
Pass discard parameter from add-domain to add-drive.
...
Allow callers to specify that all the disks from a domain are added
with a specific discard mode (instead of always having discard
disabled).
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
3106789d81
Pass cachemode parameter from add-domain to add-drive.
...
Allow callers to specify that all the disks from a domain are added
with a specific cachemode (instead of always having to use the
default, writeback).
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
a9fc09366a
tests: Add tests of discard support.
...
Test that blkdiscard, -o discard, and fstrim work in reality, end-to-end.
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
b408419791
New API: blkdiscardzeroes - do discarded blocks read back as zeroes?
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
452b228b46
New API: blkdiscard - discard all blocks on a block device.
2014-03-13 10:38:40 +00:00
Richard W.M. Jones
499b9ee416
New API parameter: Add discard parameter to guestfs_add_drive_opts.
...
This adds a discard parameter to guestfs_add_drive_opts which
approximately maps to the discard=ignore|unmap parameter supported by
qemu.
If discard is set to "enable" then we force discard=unmap (and try to
fail if it is not possible). If discard is set to the more useful
"besteffort" option, then we enable discard if possible. The default
is "disable".
2014-03-13 10:38:40 +00:00
Pino Toscano
53afa03af9
builder: fix typo in comment
...
Followup of commit b1cf6246f3 .
2014-03-12 16:07:55 +01:00
Richard W.M. Jones
2489692067
sparsify: Move copying-mode code to a separate file.
...
This is just code motion.
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
a665a570a3
sparsify: Refactor command line parsing to pass back a mode.
...
This is just code motion, but sets the ground-work for adding a second
mode (in-place image modification).
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
63e836881e
sparsify: Move command line parsing code to separate file.
...
This is just code motion.
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
d263a301bf
sparsify: Remove unused 'open' directive.
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
8df13884df
sparsify: Capture any exceptions and display nicer error messages.
...
This is just code motion, there is no functional change.
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
073f90e681
sparsify: Remove unused variable definition.
2014-03-12 14:21:30 +00:00
Richard W.M. Jones
2b4baf3478
launch: libvirt: Move the is_kvm flag (derived from libvirt capabilities) to backend data struct.
...
This is just rearranging the data between structs. There should be no
functional change.
2014-03-12 14:08:22 +00:00
Richard W.M. Jones
5e105e06be
daemon: fstrim: Fix fstrim so it trims the correct filesystem.
...
We didn't call sysroot_path, so it was trimming the appliance instead
of the guest filesystem.
2014-03-12 14:08:22 +00:00
Richard W.M. Jones
46e30c1f7c
daemon: fstrim: When debugging, capture and print fstrim -v output.
2014-03-12 14:08:22 +00:00
Pino Toscano
b1cf6246f3
builder: complete architecture handling
...
Add the possibility to choose which architecture use to build the wanted
image (--arch). Since this implies that running commands on the guest is
usually not possible when the architecture is different than the host
one, virt-builder will nevertheless try to check whether the host is
compatible with the guest, allowing to run commands only in that case.
The caching scheme is adapted to account for the architecture (with
--print-cache showing the architecture as well).
2014-03-12 15:06:55 +01:00
Pino Toscano
cc495247f2
builder: show the architecture in the short --list output
...
Just like the other --list output formats provide the architecture, show
them also in the short format.
2014-03-12 15:05:24 +01:00
Pino Toscano
7942cbf537
drivers: group drive creation params in an own struct
...
Group together all the various parameters (except the guestfs handle)
passed to the create_drive_*, to avoid passing all of them at every
function call.
This is mostly an internal refatoring with no behaviour change.
2014-03-12 15:03:56 +01:00
Richard W.M. Jones
013ed9f94b
appliance: Cosmetic rearrangement of supermin.d/* targets.
...
No functional change.
2014-03-11 22:40:22 +00:00
Richard W.M. Jones
71dfd73042
appliance: Don't rebuild everything if just the daemon changes.
2014-03-11 22:38:23 +00:00
Pino Toscano
72d1a6335e
builder: add languages.ml to POTFILES-ml
...
Followup of commit 3cffc28834 .
2014-03-11 15:57:35 +01:00
Pino Toscano
6379c85d1f
builder: output translated notes also in --notes
2014-03-11 14:25:39 +01:00
Pino Toscano
3cffc28834
builder: move some language-related code into a Languages module
...
Mostly code motion, no behaviour changes.
2014-03-11 14:20:22 +01:00
Pino Toscano
8ba31e69dc
builder: use Filename.check_suffix
...
... instead of manually extracting and checking the suffix by ourselves
2014-03-10 13:42:16 +01:00
Richard W.M. Jones
596955c1b5
Version 1.25.43.
1.25.43
2014-03-08 12:57:23 +00:00
Richard W.M. Jones
29440e2fbc
java: Complete test suite.
2014-03-08 12:47:44 +00:00
Richard W.M. Jones
6fa9e5dac7
java: Document how to compile and run Java programs.
2014-03-08 12:29:00 +00:00
Richard W.M. Jones
2b3131cf40
java: Document how to use optional parameters in the guestfs-java(3) man page.
2014-03-08 12:13:46 +00:00
Richard W.M. Jones
1ba2e3e14a
java: Add regression test for RStruct/RStructList (RHBZ#1073906).
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
ebf8a3654a
bindtests: Fill in all fields in dummy lvm_pv struct.
...
Used for testing RStruct/RStructList return values, but only
in GObject and Java bindings.
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
dff35285e4
java: Use correct Set*Field JNI accessors to set fields of the appropriate type.
...
Using the wrong accessors (somehow - I have no idea how) caused other
fields in the struct to contain incorrect values.
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
7a0e71f733
java: Factor out common field code in RStructList.
...
No functional change.
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
8c219636a2
java: Split long lines in generated output, and add other whitespace.
...
No functional change.
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
d00840d727
java: Fix bogus construction of all RStructList returned values (RHBZ#1073906).
...
Thanks Maarten on IRC for spotting the problem.
2014-03-07 15:53:59 +00:00
Richard W.M. Jones
6aa64ee3a3
java: run: Add java/.libs to LD_LIBRARY_PATH so JVM finds the right JNI file.
2014-03-07 15:53:59 +00:00
Hilko Bengen
16954981e2
Allow gnulib tests to be disabled.
...
RWMJ:
- Patch taken from Debian downstream package.
- The default in the original patch was to disable the tests. I have
changed this to default to enable them instead.
- Removed AC_SUBST as the variable was not being used.
2014-03-07 15:53:48 +00:00
Richard W.M. Jones
96f6a8f57c
Version 1.25.42.
1.25.42
2014-03-06 15:59:35 +00:00
Hilko Bengen
e1fdc43539
Remove two more files that are generated by configure
2014-03-05 18:31:02 +01:00
Richard W.M. Jones
5213d7b960
tests/md: Remove bogus test skip which tried to appliance hostfiles.
...
This file no longer exists since supermin >= 5.
Bug identified by Pino Toscano.
2014-03-05 16:13:49 +00:00
Hilko Bengen
bdcc37b888
Debian: Add systemd-related libraries (for guestfsd) to packagelist
2014-03-04 19:17:40 +01:00
Hilko Bengen
7c21e129c9
Do not ship test-qemu-drive-libvirt.xml with tarball as it is generated by configure
2014-03-04 18:56:07 +01:00
Hilko Bengen
b30e2cf122
Fix out-of-tree build: Do not accidentally build mllib components in srcdir
2014-03-04 00:06:09 +01:00
Hilko Bengen
d7e3aea7bc
Fixes for various tests in out-of-tree builds
2014-03-04 00:06:09 +01:00
Hilko Bengen
0048b5dc32
Fix out-of-tree appliance build
2014-03-04 00:06:09 +01:00
Hilko Bengen
876983365a
More fixes for situations where ocamlopt is not available
...
- run bindtests.opt only if available
- use ocamlc -custom
- Don't try to install native code if it hasn't been built (Thanks to Olaf Hering)
2014-03-04 00:06:07 +01:00
Richard W.M. Jones
0b285e07a0
Version 1.25.41.
1.25.41
2014-03-03 22:06:58 +00:00
Richard W.M. Jones
e87e377cfb
appliance: Ensure that supermin.d directory is installed properly.
...
Commit 0a966727ab had a missing
backslash in the list of files, so that 'make install' didn't install
all the files.
2014-03-03 21:58:42 +00:00
Richard W.M. Jones
3acb4343ea
Version 1.25.40.
1.25.40
2014-03-03 17:22:06 +00:00