public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Hardsector size support in 2.4 and 2.5
@ 2001-11-12 17:51 Mark Peloquin
  2001-11-12 18:58 ` Martin Dalecki
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Peloquin @ 2001-11-12 17:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: evms-devel

I was wondering if 2.5 will *really* support different hard sector
sizes. Today the hardsect array in the kernel seems to serve
little purpose. Drivers fill it in, but then what? It does not appear
to be used in any io path computations as illustrated by code
in submit_bh and generic_make_request which use a few
hardcoded shifts by 9 when dealing with sector sizes.

Is the hardsect array on the way *in* or the way *out* of the
kernel? Will 2.5 take the real hardsector value into account?
Or can we expect everything to be handled in 512 byte
multiples  (as we do today)?

Thanks.
Mark Peloquin


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hardsector size support in 2.4 and 2.5
  2001-11-12 17:51 Hardsector size support in 2.4 and 2.5 Mark Peloquin
@ 2001-11-12 18:58 ` Martin Dalecki
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Dalecki @ 2001-11-12 18:58 UTC (permalink / raw)
  To: Mark Peloquin; +Cc: linux-kernel, evms-devel

Mark Peloquin wrote:
> 
> I was wondering if 2.5 will *really* support different hard sector
> sizes. Today the hardsect array in the kernel seems to serve
> little purpose. Drivers fill it in, but then what? It does not appear
> to be used in any io path computations as illustrated by code
> in submit_bh and generic_make_request which use a few
> hardcoded shifts by 9 when dealing with sector sizes.
> 
> Is the hardsect array on the way *in* or the way *out* of the
> kernel? Will 2.5 take the real hardsector value into account?
> Or can we expect everything to be handled in 512 byte
> multiples  (as we do today)?

It is on it's way out, since:

1. Most hardware sec sizes are obscelny lower that the minimal logical
sizes those days (512 ver. 4096 page size),
so the tuning there doesn't matter.

2. All of it is "tuning", which can be handled generically on higher
levels. (Like setting FS blocksize....)

3. The hard limits are handled on device driver level anyway (best
example here are the odd fs block sizes for iso9660 filesystem).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-12 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-12 17:51 Hardsector size support in 2.4 and 2.5 Mark Peloquin
2001-11-12 18:58 ` Martin Dalecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox