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)"
Log in to post a comment.