summaryrefslogtreecommitdiffstats
path: root/src/inspect_fs.c
Commit message (Collapse)AuthorAgeFilesLines
* inspection: Don't fail if /etc/HOSTNAME or /etc/hostname are empty files ↵Richard W.M. Jones2012-06-011-2/+6
| | | | | | | | | | | | | | | | | | | (RHBZ#823821). Change guestfs___first_line_of_file so that if the file is empty this returns an empty string instead of an error. This is consistent with the behaviour of this function in the case where the file starts with a \n character, where it would previously have returned an empty string. Change all callers so that they handle this case. Then change the hostname parsing code so that it doesn't give up when /etc/HOSTNAME is empty, but falls through to the next alternative, and similarly for /etc/hostname. Thanks Todd Mummert for finding and diagnosing this bug. (cherry picked from commit f00066d22b11bf40d0272f68565a2a27fea15627)
* inspection: Support Fedora 17+ (RHBZ#809361).Richard W.M. Jones2012-04-031-2/+5
| | | | | Recognize grub2 as a bootloader, and /bin being a symlink to /usr/bin (ie. UsrMove feature added in Fedora 17+).
* inspection: Add detection of FreeDOS install CDs (RHBZ#786188).Richard W.M. Jones2012-03-071-1/+2
|
* inspection: Add detection of FreeDOS (RHBZ#786215).Richard W.M. Jones2012-03-071-0/+15
| | | | | FreeDOS is returned as type="dos", distro="freedos". No version or application information is returned at present.
* Add support for Buildroot and Cirros distributions.Richard W.M. Jones2012-03-071-0/+4
|
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* inspection: Add outline support for GNU/Hurd.Richard W.M. Jones2011-11-281-0/+10
|
* Add basic support for netbsd detection.Michael Scherer2011-10-141-0/+17
|
* Add support for mounting ufs from NetBSD, and fix FreeBSD detection on Fedora 16Michael Scherer2011-10-141-2/+9
| | | | | | | | While testing on Fedora 16, I noticed that Linux will mount the disk without trouble by using automatically ufstype=old, and yet do not let us read the directories. So we should start directly with usftype=ufs2, and if it fail, try 44bsd, as used for netbsd and openbsd ( as seen on http://wiki-static.aydogan.net/How_to_mount_FFS_partition_under_Linux ).
* Add Opensuse and zypper detection supportMichael Scherer2011-10-141-0/+5
| | | | This would also erronously detect SLES as Opensuse.
* Detect Mageia distributionMichael Scherer2011-10-141-0/+2
|
* inspection: Add support for ttylinux (a minimal Linux).Richard W.M. Jones2011-09-161-0/+2
|
* inspection: Better checking for Windows root disks (RHBZ#729075).Richard W.M. Jones2011-08-081-21/+9
| | | | | | | | | | | | | | | | | Previously any disk that had /autoexec.bat or /boot.ini or /ntldr would be picked up as a candidate for a Windows root disk. If further checking could not find any systemroot (eg. /windows) then this would result in complete failure of inspection. In particular, this got confused by Hp_recovery partitions which have /autoexec.bat, but don't have a systemroot in one of the usual places (they have /MiniNT instead). What we do now is to properly investigate all possible systemroot places before deciding this is a Windows systemroot, so the subsequent failure cannot occur. (Thanks to lorimar for reporting this bug).
* Require PCRE library.Richard W.M. Jones2011-07-251-4/+2
| | | | This library is widely available in distros.
* inspect: Look for %systemroot%/system32 for Windows heuristic.Richard W.M. Jones2011-04-211-3/+3
| | | | | The virt-v2v transfer ISO had a /windows directory. The core inspection code thought this was a Windows root filesystem.
* inspect: "centos" and "scientificlinux" are now separate distros.Richard W.M. Jones2011-04-211-0/+4
| | | | Previously we returned "rhel" for these, which was not accurate.
* inspect: Split code into separate files.Richard W.M. Jones2011-04-141-0/+537
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