Skip to contentSkip to conversation

IDE from current bk tree, UDMA and two channels...

DISCUSSION Alexander Viro 2 participants 2 messages Aug 1, 2002 – Aug 2, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 2 lines · Linus Torvalds

You probably saw this. Looks like blocksize has been buggered somehow. Apparently Petr has a 1kB blocksize optical device..

Yeah - with partition boundaries set not on a physical sector boundary ;-/

He's actually lucky that beginning of partition was not in the middle of a physical sector...

Looks like we need
a) accurate hardsect_size for these beasts (which is a problem
with current setup, since it's per-queue and not per-device; master and slave can have different hardsect sizes).
b) extra check in check_partitions() that would verify that
partition doesn't end in the middle of a sector (and round it down if it does).

Basically, old code worked by accident on that setup - Petr had half-Kb in the end of partition unaccessible and do_open() didn't notice that. Now it does and tries to give such access. Disk is not happy...

#2 lore raw

Uz.ytkownik Alexander Viro napisa?:

Quoted 10 lines · Linus Torvalds
Quoted 4 lines

You probably saw this. Looks like blocksize has been buggered somehow. Apparently Petr has a 1kB blocksize optical device..

Yeah - with partition boundaries set not on a physical sector boundary ;-/

Quoted 7 lines

He's actually lucky that beginning of partition was not in the middle of a physical sector...

Looks like we need
a) accurate hardsect_size for these beasts (which is a problem
with current setup, since it's per-queue and not per-device; master and slave can have different hardsect sizes).

FYI: In the ATA driver area all queues *are* explicitely per device.

Quoted 7 lines

b) extra check in check_partitions() that would verify that
partition doesn't end in the middle of a sector (and round it down if it does).

Basically, old code worked by accident on that setup - Petr had half-Kb in the end of partition unaccessible and do_open() didn't notice that. Now it does and tries to give such access. Disk is not happy...