Hi Karel, Karel Zak <kzak@xxxxxxxxxx> wrote on 2014-05-28 14:12:08: > > but only dasd driver overwrites this default and reports in native > sectors: > > drivers/s390/block/dasd.c: dasd_getgeo(): > > geo->start = get_start_sect(bdev) >> base->block->s2b_shift; > > > So, for normal SCSI I always get start sector independently on disk > sector size, but for dasd... > > Is it expected behavior? It's painful for userspace to care about > driver type. I looked up that line in old change logs, and apparently this was changed in 2002 during the Kernel 2.5 development phase with the commit message Fixed HDIO_GETGEO to meet 2.4 semantics So this was an intentional change to remain compatible with older versions of this ioctl. > > > (Well, HDIO_GETGEO sucks in many ways, so recommendation is to read > /sys/dev/block/<maj:min>/start rather than depends on this ioctl.) > > Karel > > -- > Karel Zak <kzak@xxxxxxxxxx> > http://karelzak.blogspot.com > Mit freundlichen Grüßen / Kind regards Stefan Weinhuber -- To unsubscribe from this list: send the line "unsubscribe linux-s390" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html