| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
(cherry picked from commit 065b6b5798913c9bb40215944920199ae7d27007)
|
|
|
|
| |
(cherry picked from commit 9b102aae65449a8d321e8cf44a3993af558291db)
|
|
|
|
|
|
|
|
|
|
| |
eg:
static void
run_foo ()
{
}
(cherry picked from commit 99ec97dcdfaf242ba0683a230ba51e4a87f7458b)
|
| |
|
|
|
|
| |
(cherry picked from commit 7b3137e664c3f4edf6ac7043a34c4166567e17bd)
|
|
|
|
|
|
|
| |
Note that for this to work properly, it requires a patch to
the 'file' command. See:
https://www.redhat.com/archives/libguestfs/2011-November/msg00120.html
(cherry picked from commit 342b4a55d056734a0344db8b4bcf1a90104a8a59)
|
|
|
|
| |
(cherry picked from commit 6f39cfaeacda146d0eaa35da6f6413fa6ab3d40a)
|
|
|
|
| |
(cherry picked from commit 8bc6e9d6a89672bbe1e7469774abe889354deb67)
|
|
|
|
|
| |
This contains suggested manual tests that users can run.
(cherry picked from commit a3b24296810d98e47552c6838dcd6ab6845aba03)
|
|
|
|
| |
(cherry picked from commit 730fb50780df860474dc1fae16c9891187e99c82)
|
|
|
|
| |
(cherry picked from commit a0509ff0715533e341573e24f6888fd7dcf4ba51)
|
|
|
|
| |
(cherry picked from commit ddb3fac1bf1b0493779c9425b518598473ef106a)
|
|
|
|
| |
(cherry picked from commit 47963bc9cc0b47af0541010a4fa14260405acaa5)
|
|
|
|
| |
(cherry picked from commit 5d48250224fcb140b7e6e17f36b37deab4e0659b)
|
|
|
|
|
|
| |
See:
https://www.redhat.com/archives/libguestfs/2011-November/msg00051.html
(cherry picked from commit 6e6b3ff35f9baafb22d5459ca13c112b1e00ae1b)
|
|
|
|
|
|
| |
You can use TestOutputHashtable to test the output of RHashtable
functions.
(cherry picked from commit 5f0b75f040b118c4394466438adc99f38144722d)
|
|
|
|
| |
(cherry picked from commit edd502543adbdc2fa5dda0c015ea7c390bb39f64)
|
| |
|
|
|
|
|
|
|
| |
If any function had more than 10 required + optional parameters, OCaml
bindings could not be generated. Currently there are no such
functions.
(cherry picked from commit 29172e7c4878085a680812f7f3b8ad6ea5f1193c)
|
|
|
|
|
|
|
|
|
| |
The bitmask was being constructed backwards(!)
As a result, any test which tested optional arguments didn't work.
There are very few such tests and they happened not to be affected by
this.
(cherry picked from commit af2b0378bbb178a4e3db326ac3082d66170fcafc)
|
|
|
|
| |
(cherry picked from commit 271f8e4b70e4acf2db96f6fe6317fda327fa5f2e)
|
|
|
|
| |
(cherry picked from commit 145ed04e41a3fcd3be87c11cae0085f4551f1da8)
|
|
|
|
|
|
|
|
| |
For some reason we are not compiling the tests with -warn-error so
this problem was not noticed before.
This fixes commit 9420eaf44ec4067c3740b91b0be0fede08a0c515.
(cherry picked from commit 22c72b911e65b93cfd049f42e6bd1b9ad7d55299)
|
|
|
|
| |
(cherry picked from commit 04ea1375c55aa67df4e7fc61dbb534111767f3b6)
|
|
|
|
|
|
|
|
|
|
| |
In the libguestfs live case we need to be careful not to modify the
real /etc/lvm/lvm.conf file (when setting the filter rule).
When the daemon starts, make a complete copy of /etc/lvm in a
temporary directory, and adjust LVM_SYSTEM_DIR to point to the copy.
All changes are made in the temporary copy.
(cherry picked from commit 9c299b64bb24cefafa582fe425bb65b78373d205)
|
|
|
|
|
|
|
| |
Although this doesn't matter for the ordinary (appliance) case, it
matters for the libguestfs live case. In that case it could cause the
guest to be exploited by a tmp/symlink attack.
(cherry picked from commit 6011b1f803ba7308c6a94b9bf6b7212cfccb9f42)
|
|
|
|
|
| |
Use virt-inspector --xpath option instead.
(cherry picked from commit 22998927f91f123e7c35d3ebf49e5744f3d7eafe)
|
|
|
|
|
|
|
|
| |
xmlstarlet is good, but not available in Red Hat Enterprise Linux.
Build a simple but sane XPath query parser into virt-inspector
directly so that we don't need any external tools.
(cherry picked from commit d1ee71782ace98a11c5aabaf1f9fd5f601e08367)
|
|
|
|
|
|
| |
This library is not available in RHEL 6, and in any case removing the
dependency is a simple change.
(cherry picked from commit ffbafadcb8dfebcaba529cb8d7e2da52dd032d8a)
|
|
|
|
| |
(cherry picked from commit 63898268101e5ec91c8dac46651dbee5976272ce)
|
|
|
|
|
|
|
|
|
|
| |
The major/minor fields only exist in Python >= 2.7. This works for at
least Python 2.5 and 2.6.
Thanks to Hilko Bengen.
This updates commit 646142f5136da9cfe2b908703a822c53350f70e9.
(cherry picked from commit 31e5539a14f78d8815d0d930e91023a65b5395e7)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These fixes allow libguestfs bindings to work with Python 3 (tested
with Python 3.2)
You can select which Python you compile against by doing:
PYTHON=python ./configure && make && make check
or:
PYTHON=python3 ./configure && make && make check
(cherry picked from commit 2116f79cbcd4605b4997931285f14dde1f72a992)
|
|
|
|
|
|
|
|
|
| |
If the user set PYTHON when configuring, this variable is not passed
through to the tests, so it is possible the tests will fail because
they are testing the wrong version of python. By passing $PYTHON
through to the tests we ensure that we test against the same version
of python that we configured with.
(cherry picked from commit e2249b7ce1dd0a2f8f110e0e47aca397185a6373)
|
|
|
|
|
| |
Ooops ...
(cherry picked from commit 25454b83082a4cfed4f1664d2f9cdfcb222ba7c2)
|
|
|
|
|
|
|
|
|
| |
The manual for sys.version warns that you should not parse the string,
which we were doing. It would have failed on python "2.10" or
similar.
Do it correctly using the sys.version_info struct instead.
(cherry picked from commit 646142f5136da9cfe2b908703a822c53350f70e9)
|
|
|
|
| |
(cherry picked from commit b4da051d54a1597c7d8db8880d21a52265a6172e)
|
|
|
|
|
|
|
|
|
|
|
|
| |
When given an invalid debug command, libguestfs responds with the
error message:
libguestfs: error: debug: use 'debug help' to list the supported commands
However this command does not work, as debug requires two
arguments. This change updates the message to prompt the user to use
'debug help 0'.
(cherry picked from commit 4e3a1205ebfec1a5cbc3062d6f73a684090e80b5)
|
|
|
|
| |
(cherry picked from commit 6f84ef6768e9c625d67f7eb015277b0ec1b2c2af)
|
| |
|
|
|
|
|
|
| |
Because this is a useful introspection API, it is a candidate for
being backported into older stable branches.
(cherry picked from commit 365885dab2ae6dcdf0b2c45d0adeb803ade03f63)
|
| |
|
| |
|
|
|
|
|
| |
This warning was applied unevenly. Potentially any command can be
dangerous or safe, so it was a needless warning.
|
|
|
|
|
| |
This dependency is optional, don't fail the test if it's not
installed.
|
|
|
|
|
| |
This dependency is optional, so don't fail the test if it
is not installed.
|
|
|
|
| |
(thanks Matt Booth).
|
|
|
|
|
|
|
| |
size_after on Debian was 10136K. The host filesystem was ext3 (vs
ext4 for Fedora where we did the original testing). Probably indirect
blocks (vs more efficient extents on ext4) causes the difference,
although I did not look at it in detail.
|
| |
|
| |
|
| |
|