inspection: Add outline support for GNU/Hurd.
md: Inspect MD devices
NFC: Declare and use variables on the same line in inspect.c
32 bit: Use %td for ptrdiff_t (difference between two pointers).
Allow compilation without hivex (RHBZ#723474).
inspection: Return root devices sorted.
Add basic support for netbsd detection.
Add support for pkgsrc, default NetBSD package manager. For now, only detect the tool, but support from reading installed package could be added later ( may require either a package of pkgsrc, or a smaller tool to read the db ).
Add Opensuse and zypper detection support This would also erronously detect SLES as Opensuse.
Detect Mageia distribution
inspection: Add support for ttylinux (a minimal Linux).
Require PCRE library. This library is widely available in distros.
Change download_to_tmp so it can work with multi-root operating systems. The previous guestfs___download_to_tmp function did not handle multiboot correctly. In particular it used the same cache name for downloaded files from different roots, which could have caused things like applications in each root to be confused. This changes the function so that the cache filename is prefixed with the root / fs number, eg. $tmpdir/0-Name instead of $tmpdir/Name. This change also requires the function to return the new name, so all places in the code which called this function had to be updated. This updates and fixes commit 3c1f762abed92f7a358f3bc93e3396d0606b18ad.
inspect: "centos" and "scientificlinux" are now separate distros. Previously we returned "rhel" for these, which was not accurate.
inspect: Split code into separate files. 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
inspect: Move shared PCRE match functions to separate file. This is just moving code around.
inspect: Cache downloaded files in the handle g->tmpdir. 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.
inspect: Fix some small memory leaks in Windows inspection. Found using valgrind.
New API: inspect-get-drive-mappings This returns the drive mappings from the Windows Registry. virt-inspector displays the drive mappings, giving output similar to this: <drive_mappings> <drive_mapping name="C">/dev/sda2</drive_mapping> <drive_mapping name="E">/dev/sdb1</drive_mapping> </drive_mappings>
New API: inspect-get-windows-current-control-set This returns the actual registry key corresponding to CurrentControlSet (eg. it might be "ControlSet001"). Previously the inspection code was hard-coding ControlSet001. Now we use the correct control set, and also make it available to callers through the API. This commit also updates the virt-dhcp-address example so it uses this new API. virt-inspector displays the current control set when available.