| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
(cherry picked from commit 2dab72794eef55f941cc61f1f34baa9fc7988298)
(cherry picked from commit 3e77ee6a96c7e3131de29ecd6f375457cda7a4dd)
|
|
|
|
|
| |
(cherry picked from commit 626ca8e74f97a8c5fbe354211e81132976a21435)
(cherry picked from commit 41dbcdf94f254c00a0bebfe2e0637ba4879a894a)
|
|
|
|
|
| |
(cherry picked from commit 09c372ea250e8241d62e9fde70eabe7bdca83050)
(cherry picked from commit 77ca1f94d5982a0b49a57b7787a7f89b6b0b7de4)
|
|
|
|
| |
(cherry picked from commit 157b5006dbf2db2927e48ce592a83a279513d183)
|
|
|
|
| |
(cherry picked from commit 7e4b197cb6a5071c13e407546a21f9b93fe3798d)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Passing the $upstream_qemu environment variable is not reliable when
libvirt is involved: Environment variables are passed to the first
instance of the session libvirtd, but because libvirt reuses the
session libvirtd, subsequent environment variable settings are lost
(this is filed as RHBZ#856619).
Bypass all of this by writing a custom qemu-wrapper.sh which contains
the hard-coded values we want.
(cherry picked from commit e6bd0b87eb753fa96b6533b0dbe498697701ad3a)
|
|
|
|
| |
(cherry picked from commit 509dd90c43afed75b861b7d82ebe8739d3500d54)
|
|
|
|
| |
(cherry picked from commit eeb0c598ec8caa50998336713ed4e62902e0a74d)
|
|
|
|
|
| |
Found by 'make syntax-check'.
(cherry picked from commit 6361810b53be4d5e0513b4f7c11d29cf1d6d3b45)
|
|
|
|
|
| |
Found by 'make syntax-check'.
(cherry picked from commit b0cefb417d01c6dcb87cc6bafe9c19b98c690c9d)
|
|
|
|
|
|
|
| |
Since 'QEMU' is set (overwritten) by the autoconf-generated Makefile,
this test would always test installed qemu, not upstream qemu,
making it pretty useless. Use another name for this variable.
(cherry picked from commit 81c682f1295a934d18bd4dc9e42b8e843df0c207)
|
|
|
|
|
|
| |
There seems to be no reason why creating a zero-length
file is necessary for this test.
(cherry picked from commit 7f9f2818651860a15a7142d3761e3168e062c357)
|
|
|
|
|
| |
See: https://bugzilla.redhat.com/show_bug.cgi?id=847429
(cherry picked from commit 04b475b41476b75ef3851fdd093a9868df0c7357)
|
|
|
|
| |
(cherry picked from commit 2b059535b19125ca082f4354a7ff73f4f5a33822)
|
|
|
|
| |
(cherry picked from commit bc917a0efc03b8c28966c9ab474f525752ebe440)
|
|
|
|
| |
(cherry picked from commit fc86db3b3bcd884ee37cef79e22b0324df9fcae6)
|
|
|
|
| |
(cherry picked from commit 7a0478bed0fe3ccbdf16087552f3d6ea196f29ec)
|
|
|
|
| |
(cherry picked from commit f883e4d8d3ea65c5cd4c2dc5d557989c00aafc56)
|
|
|
|
| |
(cherry picked from commit e6dec159488f589df62c9f59477281f8264a19c8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new API splits orderly close into a two-step process:
if (guestfs_shutdown (g) == -1) {
/* handle the error, eg. qemu error */
}
guestfs_close (g);
Note that the explicit shutdown step is only necessary in the case
where you have made changes to the disk image and want to handle write
errors. Read the documentation for further information.
This change also:
- deprecates guestfs_kill_subprocess
- turns guestfs_kill_subprocess into the same as guestfs_shutdown
- changes guestfish and other tools to call shutdown + close
where necessary (not for read-only tools)
- updates documentation
- updates examples
(cherry picked from commit ffbf1475f7ae7c462db289ad4834391469e72edd)
|
|
|
|
| |
(cherry picked from commit 5489304c8d2836713ec58051c24514eba22b8c94)
|
|
|
|
|
|
|
|
|
|
|
| |
Replace:
cp tests/guests/fedora.img test.img
with the longer but possibly more space-efficient equivalent:
qemu-img create -F raw -b tests/guests/fedora.img -f qcow2 test.qcow2
(cherry picked from commit 339f3647f889424af2a2256c4fcad0b44982c275)
|
|
|
|
| |
(cherry picked from commit 90d0beb3c528d91029349b64d0159836c776189b)
|
|
|
|
|
|
| |
By setting these variables, we can skip tests that fail on
RHEL 5.
(cherry picked from commit 145f35badfd9ca4a6d9f54f7732566a5e5114876)
|
|
|
|
|
|
|
|
|
| |
This is missing on RHEL 5.
This updates commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6.
Cherry picked from commit bc7f1a5ef156576c069f47ea33f4977979ac032d
and backported to libguestfs 1.16.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
RHEL 5 didn't have the truncate command, but we can replace:
truncate -s SIZE FILE
with the roughly equivalent command:
guestfish sparse FILE SIZE
Cherry picked from commit 39df80dcc0e485e69048bddbf33c259ce532e50d
and backported to libguestfs 1.16 branch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
RHEL 5-era autoconf did not define these, so define them manually
when they are missing.
Define builddir as '.' The scripts require this. It won't work
in the srcdir != builddir case, but we don't care about that for
RHEL 5.
This commit also moves the builddir / abs_srcdir variable setting
above the include of subdir-rules.mk, in case that include uses
these variables.
Useful script:
for f in $(find -name Makefile.am | xargs fgrep '$(abs_srcdir)' -l) ; do
if ! grep -q '^abs_srcdir' $f; then
echo missing in $f
fi
done
(cherry picked from commit 50aa9533e4a505e1c64dbedddb30491bfbb755d6)
|
|
|
|
|
| |
Use a small sed script to canonicalize the device names.
(cherry picked from commit 320adf477805f703b0a1c79d86c3fb4078d11700)
|
|
|
|
| |
(cherry picked from commit 9a5c0d39081f9f40d7ad12fbb55fb6120046679c)
|
|
|
|
|
|
| |
Hard-coding it breaks virtio-scsi because the devices are called
/dev/sda etc.
(cherry picked from commit 7509cdf18e6d3fd96b10246f4d0417e5285e38f6)
|
|
|
|
| |
(cherry picked from commit 251b131e0a55cce21f6ee2240315903e34c4ffe1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The two tarballs:
8252 bytes tests/data/filesanddirs-10M.tar.xz
41152 bytes tests/data/filesanddirs-100M.tar.xz
contain, as their names suggest, highly compressed files and
directories, with unpacked size respectively around 10M and 100M (the
precise size after unpacking depends on the filesystem).
These can be used for testing purposes.
(cherry picked from commit 12c5394d4cb379890c9c69c16d1d735674a2e80d)
|
|
|
|
|
| |
This is used for testing file permissions and SELinux contexts.
(cherry picked from commit 03d321d0225512bdcd136ac7cb086c0b292a9c09)
|
|
|
|
| |
(cherry picked from commit c844a38d6e6990af00506afb434a6f7b40e5259f)
|
|
|
|
| |
(cherry picked from commit c253c69d0955242e5f23dc194ddbaf34764f79f7)
|
|
|
|
|
| |
This option didn't exist in RHEL 6 valgrind.
(cherry picked from commit 58a5b5bd944655b028c915a91dad2220176986db)
|
|
|
|
| |
(cherry picked from commit a97e9429ea888b4732bbbcfdd85b9368dd6ef96c)
|
|
|
|
|
|
| |
(RHBZ#811872).
(cherry picked from commit 96b6504b09461aeb6850bb2e7b870a0a4c2f5edf)
|
|
|
|
|
| |
https://www.redhat.com/archives/libvir-list/2012-April/msg00322.html
(cherry picked from commit de2dc9f71dd284e033e999a4d0541848a7201b02)
|
|
|
|
|
| |
This leaves files called 'vgdb-pipe-*' in .
(cherry picked from commit b10a3d718e4ff8957e8af4afafcd1680c386ad33)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This means renaming various temporary files (eg. fstab.tmp) that
several of the scripts were using so they don't conflict
(eg. fstab.tmp.$$).
Also the rule:
fedora-md1.img fedora-md2.img: guest-aux/make-fedora-img.pl
causes the script to run twice in parallel when using 'make -jN'.
Replace this with a stamp file so it runs once:
fedora-md1.img fedora-md2.img: stamp-fedora-md.img
stamp-fedora-md.img: guest-aux/make-fedora-img.pl
(cherry picked from commit f2ac7c18a775dc10c3fa502f3de5ad01faa0efea)
|
|
|
|
|
|
| |
The return value of the pwrite-device command -- 4 (bytes) -- is
printed out. Hide it instead.
(cherry picked from commit 418a048215b17dcf1f0c74693831306cbcf0f194)
|
|
|
|
|
|
| |
The start_test_thread function never returns, it is always
cancelled by the main thread.
(cherry picked from commit b9cb387a109f4d09cdef84a62194201e78f97cb7)
|
|
|
|
| |
(cherry picked from commit 2c8ead5aa0e6b821bf2d21a89e437e9a6c0ed1ca)
|
|
|
|
| |
(cherry picked from commit 099e3dd9f129e05bff5512855ea89530a7999004)
|
|
|
|
|
| |
This fixes commit 2912e4e1173226f461517a0008664e01b5d3066d.
(cherry picked from commit 99702fe443383707b9d9c1b84570baf3bebf9253)
|
|
|
|
| |
(cherry picked from commit 2912e4e1173226f461517a0008664e01b5d3066d)
|
|
|
|
| |
(cherry picked from commit 10f240a07f156493eb0540a95f9a3deba36c6862)
|
|
|
|
| |
(cherry picked from commit c9ea94810e2f7a5fcce2a7136eb07ce795f49c53)
|
|
|
|
| |
(cherry picked from commit 6a70cb337cff736831b51bbc9c4331785d756c20)
|