[Top][All Lists]
[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).
patch1.patch
Description: Text Data
- [PATCH] fix HDIO_GETGEO ioctl for linux,
Andres Salomon <=
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Szakacsits Szabolcs, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Andres Salomon, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Szakacsits Szabolcs, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Andres Salomon, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Harley D. Eades III, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Otavio Salvador, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Harley D. Eades III, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Andres Salomon, 2005/11/17
- Re: [PATCH] fix HDIO_GETGEO ioctl for linux, Szakacsits Szabolcs, 2005/11/17