Opened 21 months ago

Last modified 11 months ago

#13918 new bug

Disk geometry reporting is not correct

Reported by: sfanxiang Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

ioctl(B_GET_GEOMETRY) always reports 1 for heads and cylinders.

For example, Haiku might say a disk's geometry is 1/1/30720000 while linux says 15000/64/32. The information seems to be abstracted away somewhere.

Bug discovered: https://github.com/haikuports/haikuports/pull/2021

Change History (1)

comment:1 by pulkomandy, 11 months ago

For most modern disks the cylinder/head/sector layout is nonsense. The disks usually have more sectors in the outer cylinders than the inner ones. Not to mention SSDs where there are no cylinders and heads at all.

So I'd say as long as we get the correct total sector count, we're fine.

Note: See TracTickets for help on using tickets.