| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(cherry picked from commit 48c91ac03cb0a6ac351822fe70200abb8ac7f761)
|
|
|
|
|
|
|
|
|
| |
Remove some debug messages which were basically left over from when
the code was being developed.
However we leave debug messages where it is printing an external
command that is about to be executed, since those are useful.
(cherry picked from commit 5ce759bfdc70c97121ef34ab4d5c918d568f2474)
|
|
|
|
|
|
|
|
|
| |
Because of the previous change to size_t, when pos == 0 the loop would
wrap around and cause a segmentation fault.
This fixes a regression introduced by
commit 10167cea98f93a74abe63f0a54d3a662997e7489.
(cherry picked from commit 607aa95de927b5b8e4b212655c71bf21acbba372)
|
|
|
|
| |
(cherry picked from commit 8ee0ad0caf2f90f4883909cd9b61c4dd6f9cffbf)
|
|
|
|
|
| |
This is now used consistently across all the documentation.
(cherry picked from commit c49fc3831d12788c27b90d12f06a1cd69a88e3be)
|
|
|
|
|
|
|
|
|
| |
Add examples.
Refresh description.
Use I<...> to refer to command line options.
(cherry picked from commit 988a8784647a66adbece3c9fb470c06a4cce3cdd)
|
|
|
|
| |
(cherry picked from commit 805e6dbc15eae5a4f85eea3c37e295aefaefeb69)
|
|
|
|
| |
(cherry picked from commit 40f2b698ac765128bfcda5f0db893c95d09ae89a)
|
|
|
|
| |
(cherry picked from commit 108d7a134c5d26b967fa7162d9b80b40112c2869)
|
|
|
|
| |
(cherry picked from commit a5e421570cc840f70f2931e24b3df40c9a14cd2d)
|
|
|
|
| |
(cherry picked from commit 470e373eea218c8d46b0c63dda93ee9ece48940f)
|
|
|
|
| |
(cherry picked from commit dd86183f3f6d4d5ad28e1f12c56ba920934e7ad0)
|
|
|
|
| |
(cherry picked from commit 10167cea98f93a74abe63f0a54d3a662997e7489)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 478b2d80ed1d613f621e89a97a0b140004ebac29)
|
|
|
|
| |
(cherry picked from commit b2f8627ab59daeb03f036dde6c66fb9da736950c)
|
|
|
|
| |
(cherry picked from commit c0f96e9c6eda77e5e99de862dd4366010e4a1ab8)
|
|
|
|
|
| |
See: https://bugzilla.redhat.com/show_bug.cgi?id=705499
(cherry picked from commit f55b32b2db83495fc0987f0fe0e979818704dff1)
|
| |
|
|
|
|
|
|
|
|
| |
Move the hand-written functions into two new files:
guestfs-py.h and guestfs-py-byhand.c
This is just code motion.
(cherry picked from commit 16da7589e91b0030fb5564553447f80b97c0b18c)
|
|
|
|
|
| |
This updates commit bc468c87d04b34faacd208c49cca4a5096e5103c.
(cherry picked from commit 3acf732c2f23d8508f692efb2b222169914bfcdc)
|
|
|
|
|
|
| |
The virt-v2v transfer ISO had a /windows directory. The core
inspection code thought this was a Windows root filesystem.
(cherry picked from commit 0da6f55a6745686ca056c6bc8ebf647f111cb8e8)
|
|
|
|
|
|
| |
virt-inspector would exit silently if list-applications failed along
this error path.
(cherry picked from commit 782f3a36469ca396dbf998ea82af2699153be3ed)
|
|
|
|
|
| |
Previously we returned "rhel" for these, which was not accurate.
(cherry picked from commit 2b0ca7e7b8d369a42a51b1feec72ae8f17257c78)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Release the Python global interpreter lock while running libguestfs
calls.
We don't release it around guestfs_create() because that is a short
call that just allocates memory. We do release it around
guestfs_close() since that is a potentially long-running (it can call
wait(2) amongst other things). We also release it around all the
other generated Python calls.
We don't yet support callbacks into Python code (ie. the new event
API). But when we do in future, we will need to also handle the GIL
around those callbacks.
This code is adapted from libvirt's python/typewrappers.h. Thanks to
Dan Berrange for showing us how to do this properly.
(cherry picked from commit 08dc4a87b92435678780e9c49fe3bc1e7465d99f)
|
|
|
|
| |
(cherry picked from commit a3cce465570bf192e993a67feedfbab7e662c75a)
|
|
|
|
| |
(cherry picked from commit 4c2bb8b301970e8853a8feaa95e3698224640fba)
|
|
|
|
| |
(cherry picked from commit 34d9fed24ad6a2d2e13bb817820e31373f6756e1)
|
|
|
|
|
| |
Also use 'exec' to run the program.
(cherry picked from commit 5d139fa8a4a7f9ff65e7b936fd7376f661c72f48)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the hack that let you run ./fish/guestfish or
./fuse/guestmount. You now have to do:
./run ./fish/guestfish
or
./run ./fuse/guestmount
to run these programs without installing.
(cherry picked from commit 33a2c184e12c0bdbf061a9f36c87d76c28444712)
|
|
|
|
|
|
| |
Remove all the run*locally scripts and replace with a single top level
./run shell script.
(cherry picked from commit 5790f5bfafb12cc2ed9365461bf66e0fdfde7150)
|
|
|
|
| |
(cherry picked from commit 0108d7861d4cc9a1f0d87d89080d1be7750e54b5)
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out that db_load incrementally updates the database (instead
of writing a new one). Remove the old database to force db_load to
write a new one.
This also ensures that we handle write failure gracefully.
Cherry picked from commit 67493bfca44d436143d825b155bf2bc38990ea82
and backported to stable-1.10 branch.
|
|
|
|
| |
(cherry picked from commit 36d3a4ce53317b104d48b60c9fe1ed679065d1d4)
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are two changes here:
(1) The code for listing RPM applications ran db_dump and parsed the
output. We abstract out that parsing code into a separate reusable
module (src/dbdump.c).
(2) The old db_dump parsing code used db_dump -p (printable) format.
Instead use db_dump -k (hex) format so we can read binary fields.
(cherry picked from commit a986e8dadb0c70634f6d1d89dd3e7bb5d9af3078)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The src/inspect.c file had grown rather large -- 3,500 lines. Split
it across several files according to function.
This is just moving code.
After the split the files are more evenly divided:
536 src/inspect_apps.c
766 src/inspect.c
537 src/inspect_fs.c
404 src/inspect_fs_cd.c
785 src/inspect_fs_unix.c
535 src/inspect_fs_windows.c
3563 total
(cherry picked from commit 3336b5448f12c9eb25bf7a0cecda1315c4cf07ea)
|
|
|
|
|
| |
This is just moving code around.
(cherry picked from commit 439a42efdb052748c8457f866b2c68a581034826)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
During inspection we download various files such as the Windows
'software' and 'system' registries. Previously these were downloaded
as temporary files and discarded immediately after use. This meant
that the 'software' registry was being downloaded twice by
virt-inspector (it's required once for basic OS inspection, and a
second time to list Windows applications).
This commit changes this so that these files are cached in g->tmpdir,
and thus the second time we just reuse the file we've already
downloaded.
Callers shouldn't be relying on inspect-list-applications to reread
the actual registry from the VM (unless you close and reopen the
handle). It says in the documentation that the results of inspection
may be cached in the handle.
(cherry picked from commit 3c1f762abed92f7a358f3bc93e3396d0606b18ad)
|
|
|
|
|
|
|
|
|
| |
In preparation for caching inspection information in the temporary
directory (g->tmpdir), allow the temporary directory to contain
arbitrary files, and remove all of them when the handle is closed.
This just generalizes the previous method of cleaning up the tmpdir.
(cherry picked from commit 70975981bed8e0c01b5966c10b507bb82086e5f8)
|
|
|
|
|
|
|
|
|
|
| |
* df/df.c: As above.
* df/main.c: As above.
* df/output.c: As above.
* fuse/guestmount.c: As above.
* inspector/virt-inspector.c: As above.
* rescue/virt-rescue.c: As above.
(cherry picked from commit 6740028b333840eec5e8e46e8512f8155728b037)
|
|
|
|
|
|
|
| |
* cat/virt-cat.c: Include string.h and libintl.h.
* cat/virt-filesystems.c: Likewise.
* cat/virt-ls.c: Likewise.
(cherry picked from commit ace1795d1045be96f92a68e6b61ffdee60431fef)
|
|
|
|
| |
(cherry picked from commit 173c374bd01e84deafdaf1f9aa65b0f623e86470)
|
|
|
|
|
|
|
| |
* fish/config.c: Include string.h, for use of strlen.
* fish/keys.c: Likewise, but for use of memcpy.
* fish/man.c: Likewise, but for use of memset.
(cherry picked from commit 0db662eae54b21fccadabe817afbc0fa89d980b2)
|
|
|
|
|
| |
* src/events.c: Include <string.h>, for use of strlen.
(cherry picked from commit a53833fdd21cd573fe8fd02d7a11a3a5e9764ce0)
|
|
|
|
| |
(cherry picked from commit 6ec2ed20cbbad871a8b48389cbe5785bb929c99f)
|
|
|
|
| |
(cherry picked from commit 0d9f2c7311b005b2cfe2ecb3ff9fb57d4576ef7b)
|
| |
|
| |
|
| |
|