#35 hdparm -g fails with floating point exception

v1.0 (example)
closed-fixed
nobody
None
5
2014-09-27
2010-05-10
Anonymous
No

hdparm -g on devicemapper devices p.e. /dev/mapper/VolGroup00-LogVol00 fails as one of the checks in the sources seems to be faulty.
ioctl HDIO_GETGEO returns zeros for cyl, heads and sects which causes a division by zero later on.
In geom.c function get_dev_geometry() is a check "if (nsectors && cyls && heads && sects)"
This should probably be "if (*nsectors && *cyls && *heads && *sects)"

Discussion

  • Mark Lord

    Mark Lord - 2014-09-27

    Good catch. Fixed.

     
  • Mark Lord

    Mark Lord - 2014-09-27
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks