bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix HDIO_GETGEO ioctl for linux


From: Andres Salomon
Subject: [PATCH] fix HDIO_GETGEO ioctl for linux
Date: Wed, 16 Nov 2005 23:13:44 -0500

Hi,

I ran into a problem when running parted on Ubuntu Breezy with an sx8
device; it would SIGFPE upon startup.  The culprit, it turns out, is the
HDIO_GETGEO ioctl; when asking for geometry information about a
partition (the name-based probing wasn't working well for devices
like /dev/sx8/0p1, etc), sectors and/or heads was 0.  This patch makes
parted to not only check if the ioctl didn't fail, but also make sure it
returned sane results (both are unsigned, so we don't have to worry
about <0).

Attachment: patch1.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]