According to Linux Device Drivers, ch 16. the block driver should call set_capacity with the size of the device in sectors.
Geometry is a holdover from back when disks had cylinders, heads and sectors. Nobody uses that anymore except a few obsolete disk BIOS programs.
|