Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#13918 closed bug (no change required)

Disk geometry reporting is not correct

Reported by: sfanxiang Owned by: nobody
Priority: normal Milestone:
Component: Drivers/Disk Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
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 (3)

comment:1 by pulkomandy, 5 years 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.

comment:2 by waddlesplash, 4 years ago

Resolution: no change required
Status: newclosed

comment:3 by nielx, 4 years ago

Milestone: Unscheduled

Remove milestone for tickets with status = closed and resolution != fixed

Note: See TracTickets for help on using tickets.