On 12-05-04 09:11 AM, Mark Lord wrote: > On 12-05-04 09:06 AM, Mark Lord wrote: .. >> kernel: [ 989.525093] hdparm: sending ioctl 330 to a partition! >> >> The in <linux/hdreg.h> say this about 330: >> ... >> /* 0x330 is reserved - used to be HDIO_GETGEO_BIG */ >> ... >> >> So it's HDIO_GETGEO_BIG, which doesn't exist in newer kernels. >> I wonder when that got removed? Minor userspace breakage there. > > Looks like it got removed about 10 years ago, > either in 2.5.xx or early 2.6.xx, so that's all fine now. > hdparm still issues it for backward compatibility with > kernels that lack more modern methods. Currently we don't > try to inspect the kernel version at run-time, because > version numbers are not as reliable as simply issuing > the ioctl(). I will update hdparm regardless (version 9.40, not out yet) to try and avoid HDIO_GETGEO_BIG when possible. It will still use it under some circumstances (like when sysfs isn't mounted, which should catch 2.4.xx kernels and older), but mostly not. Cheers -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html