summaryrefslogtreecommitdiffstats
path: root/inspector
Commit message (Collapse)AuthorAgeFilesLines
* inspector: Fix comment in virt-inspector.rng.Richard W.M. Jones2011-07-161-2/+2
| | | | | | The comment referred to the command line syntax of the old virt-inspector. (cherry picked from commit ea96c7acf7a332c08c2214796add647224a2ede0)
* inspector: Handle write failures when creating example-*.xml.Richard W.M. Jones2011-04-181-4/+12
| | | | (cherry picked from commit 0108d7861d4cc9a1f0d87d89080d1be7750e54b5)
* inspector: Include <hostname> in output.Richard W.M. Jones2011-04-186-0/+13
| | | | | Cherry picked from commit 36d3a4ce53317b104d48b60c9fe1ed679065d1d4 and rebased for stable-1.8 branch.
* Include <locale.h> in compilation units that use setlocale function.Richard W.M. Jones2011-03-081-0/+1
| | | | | Fix required by gcc 4.6.0. (cherry picked from commit a9d6b948b590f58023a97dddd76302e40d49d2e2)
* inspector: Apps in Windows VMs are now listed - update documentation.Richard W.M. Jones2011-01-101-3/+1
| | | | (cherry picked from commit dd7ad7c7ebd7b3cf7fbcc03d3baadbb77bf4203a)
* inspector: Remove some unused local variables.Richard W.M. Jones2010-12-091-2/+0
|
* Remove ability to build static distribution.Richard W.M. Jones2010-12-061-6/+0
| | | | | | We are now going to build binaries for each distribution so there is no need to build the quasi-distro-independent static binaries any more.
* build: Centralize all POD manipulation in 'podwrapper.sh' script.Richard W.M. Jones2010-11-241-18/+11
|
* inspector: Make whole disk paths canonical (RHBZ#655554).Richard W.M. Jones2010-11-231-1/+1
|
* inspector: Fix documentation of -x option in usage.Richard W.M. Jones2010-11-221-1/+1
| | | | This updates commit c5cb65f0aac3298e634b183f73fda6644a158018.
* inspector: Fix rule to build HTML file.Richard W.M. Jones2010-11-191-1/+1
| | | | This updates commit c5cb65f0aac3298e634b183f73fda6644a158018.
* inspector: Rewrite virt-inspector in C.Richard W.M. Jones2010-11-199-509/+1011
|
* inspector: Replace old examples with ones derived from phony images.Richard W.M. Jones2010-11-1611-19145/+203
|
* inspector: Replace code for listing applications with new core API.Richard W.M. Jones2010-11-155-1699/+1882
|
* New APIs: inspect-get-package-format, inspect-get-package-management.Richard Jones2010-11-121-49/+15
| | | | This APIs reimplement some parts of virt-inspector in C.
* inspect: Add support for MeeGo.stable-1.6Richard W.M. Jones2010-11-021-1/+1
|
* inspect: Add support for Ubuntu.Richard Jones2010-10-291-1/+1
|
* inspect: Add detection of Gentoo.Richard Jones2010-10-291-0/+4
|
* inspect: Add detection of Arch Linux.Richard Jones2010-10-291-1/+5
|
* inspect: Add detection of Pardus.Richard Jones2010-10-291-0/+4
|
* inspector: Sort <filesystems> section.Richard Jones2010-10-291-0/+1
|
* inspector: List Debian packages.Richard W.M. Jones2010-10-284-5/+10223
| | | | | List Debian packages by downloading and parsing the file /var/lib/dpkg/status.
* inspector: Introductory documentation for XML format.Richard W.M. Jones2010-10-281-0/+130
|
* inspector: Debian package format 'deb' instead of 'dpkg'.Richard W.M. Jones2010-10-283-3/+3
|
* inspector: Return canonical block device paths in XML.Richard W.M. Jones2010-10-287-22/+36
|
* inspector: Rewrite virt-inspector (RHBZ#642930).Richard W.M. Jones2010-10-289-24234/+3095
| | | | | | | | | | | | Rewrite virt-inspector: - remove old and unsupportable features - use the C inspection API - don't run programs from the guest The RNG has been updated to reflect the new XML-only output. The new example files show the new XML output.
* tools: Specify format of disks (RHBZ#642934,CVE-2010-3851).Richard W.M. Jones2010-10-221-3/+26
| | | | | | | | | | Sys::Guestfs::Lib is changed in two ways: firstly we take the format string from libvirt and pass it to add_drive_opts. Secondly we allow an extra format => parameter to open_guest which allows the format to be specified for disk images. All the tools are changed to add an extra --format parameter allowing the format to be specified for direct disk images.
* inspector: Add comment about why --fish option implies write mode.Richard W.M. Jones2010-10-221-0/+8
|
* tools: Add section describing quoting libvirt domain names to docs (RHBZ#643624)Richard W.M. Jones2010-10-181-0/+7
|
* inspector: Improve error message when YAML::Any library is not installed.Richard Jones2010-07-021-1/+1
|
* guestfish -i and virt-inspector work on filenames containing spaces ↵Richard Jones2010-05-131-2/+7
| | | | | | | | | | | | | | (RHBZ#507810). This commit fixes a long-standing bug which prevented guestfish -i and virt-inspector from working on disk images which had a space in the filename (or other unsafe characters). It works by ensuring that the strings passed between guestfish -i and virt-inspector are quoted correctly in both directions. Note that this commit adds a dependency from virt-inspector to the perl module String::ShellQuote. We have previously used this module in virt-make-fs.
* po: Include strings from Perl programs in the PO files (RHBZ#559963).Richard Jones2010-05-121-0/+9
| | | | | | | | | xgettext will only recognize '*.pl' as being a Perl file (otherwise it treats it as a C file and does not correctly find any strings in it). This commit also fixes two actual bugs that xgettext found in the strings in our Perl programs.
* Documentation updates.Richard Jones2010-04-111-2/+2
| | | | | | | Fix copyright years. Fix URLs to point to new PRC site. Make sure guestfish(1) and guestfs(3) manpages reference the current list of tools.
* inspector: Read information about Windows guests from the Registry.Richard Jones2010-03-082-14/+11
| | | | | | | | | | | | | | This commit changes substantially the way that we get information about Windows guests. We now use the Windows Registry to get information such as the version, product name and much else. This uses Win::Hivex (ie. the hivex library). 'reged' is no longer needed or used. As an incidental change, this also tries harder to search for %systemroot%, in the case when we cannot find boot.ini (ie. Windows Vista and more recent). This ensures we can get more detail from those versions of Windows.
* inspector: Add product_name field to output.Richard Jones2010-03-085-7144/+12140
| | | | | | This is a free text string containing the "product name" of the OS. It's mainly useful for Windows guests, and a forthcoming patch will get this field from the Windows Registry.
* inspector: Don't crash if $os->{kernels} does not exist.Richard Jones2010-03-081-7/+9
| | | | ie. on Windows.
* RHEL5: Keep old automake happy by defining docdirRichard W.M. Jones2010-02-051-0/+1
|
* inspector: Update example XML and RNG schema.Richard Jones2010-01-063-4411/+13948
| | | | This updates commit a59dcdbd1b0a28c960e3792165a13f2daf4f6c35.
* inspector: Make RPM application data more specific (RHBZ#552718).Richard Jones2010-01-051-0/+3
| | | | | | | List applications with epoch, release and arch data. If epoch is 0, don't store this as an empty string, but as undefined, and don't output empty <epoch/> element in the XML.
* Remove separate inspector_generator.ml, combine this with generator.ml.Richard Jones2009-12-312-648/+2
| | | | | | | | | | | This commit combines the previously separate "inspector_generator.ml" program which generated bindings for virt-inspector. Having two separate programs caused no end of troubles for developers, so we now combine them into a single program. NOTE: OCaml xml-light is now *required* in order to rebuild the generated code.
* build: Fix inter-directory dependenciesMatthew Booth2009-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds an explicit dependency on generator.ml for every file it generates, except java files. Java is left for another time because it's considerably trickier. It also adds a build rule for src/libguestfs.la so it can be rebuilt as required from other directories. It does this by creating a top level make file, subdir-rules.mk, which can be included from sub-directories. sub-directories need to define 'generator_built' to include local files which are built by generator.ml, and they will be updated automatically. This fixes parallel make, and will automatically re-create generated files when make is run from any directory. It also fixes the problem which efad4f53 was targetting. Specifically, src/guestfs_protocol.(c|h) had an erroneous dependency on stamp-generator, and therefore generator.ml, despite not being directly created by it. This caused them to be recreated every time generator.ml ran rather than only when src/guestfs_protocol.x was updated, which cascaded into a daemon and therefore appliance update. This patch also changes the contents of the distribution tarball by including files created by rpcgen.
* inspector: Remove inaccurate paragraph from documentation.Richard Jones2009-10-261-4/+0
|
* Tab to space fixes, now passes 'make syntax-check'Richard Jones2009-10-203-245/+245
|
* Add some missing EXTRA_DIST files.Richard Jones2009-10-141-1/+2
|
* inspector: Generate language bindings for OCaml.Richard Jones2009-10-132-1/+647
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a generic mechanism for deriving language bindings for virt-inspector, and implements one concrete binding, for OCaml. The bindings are generated from the RELAX NG schema (virt-inspector.rng) which is supposed to be a correct and always up to date description of the XML that the virt-inspector program can generate. From the RNG we generate a set of types to describe the output of virt-inspector for the language, plus an XML parser, plus some glue code to actually run an external instance of virt-inspector and parse the resulting XML. At runtime, an external 'virt-inspector --xml <name>' command runs and the XML is parsed into language-specific structures. This has been tested on the four example files (inspector/example?.xml) The only particular difficulty about the OCaml binding is the use of Obj.magic, which is naughty but works because of the isomorphism between the representation of tuples and records in OCaml. This seems to cause no problems in my test program. Apart from this, the OCaml binding is straightforward and could be adapted easily for any other languages that want type-safe virt-inspector bindings. It's important to keep virt-inspector.rng up to date with changes to virt-inspector's XML output format.
* inspector: Fix inspector/Makefile.amRichard Jones2009-10-021-4/+3
| | | | | | | | Accidentally pushed the older version of the patch in commit 9d25e82491ddcf495e1d30694327e4bfd3a23445. This includes Jim Meyering's suggested changes from https://www.redhat.com/archives/libguestfs/2009-October/msg00017.html
* inspector: Add tests for RELAX NG schema.Richard Jones2009-10-025-1/+14752
|
* inspector: Add RELAX NG schema for virt-inspector --xml output.Richard Jones2009-10-022-4/+171
|
* run-*-locally: The programs are now virt-[tool], not virt-[tool].plRichard Jones2009-10-011-1/+1
| | | | This fixes commit b488436cc54288fcae8988493749f2e6c87f274c.
* inspector: Don't bomb if no kernels detected.Richard Jones2009-10-011-16/+18
| | | | | | | | If $os->{kernels} wasn't defined, virt-inspector would exit with an error, leaving partial XML output. Change the code so it doesn't die in this case, instead just leaves out the <kernels> section.