OSDN Git Service

libparted: make pc98 detection depend on signatures
authorBrian C. Lane <bcl@redhat.com>
Fri, 7 Oct 2011 23:53:49 +0000 (16:53 -0700)
committerJim Meyering <meyering@redhat.com>
Wed, 19 Oct 2011 12:18:19 +0000 (14:18 +0200)
commit0cfe1680d19f38aea275759d9df10b864c0372a0
tree9ee3846b42b2b50a68e0b4c913614d6d4af0076c
parent9bfa72becb3585e7852566fdee9fc1ec8043b2ec
libparted: make pc98 detection depend on signatures

pc98 is not a common disk label. Change pc98_probe to only return true
if one of the recognized signatures is present.
Currently these include:

IPL1
Linux 98
GRUB/98

This prevents false-positive detection on msdos labeled disks.

* libparted/labels/pc98.c (pc98_probe): Change to require signature
(pc98_check_ipl_signature): Add more signatures
(check_partition_consistency): Remove unused function
Reported by Zach Carter in http://bugzilla.redhat.com/646053
NEWS
libparted/labels/pc98.c