Re: [PATCH] 2.5 ide 48-bit usage

Jens Axboe
2003-05-07T19:19:10Z

On Wed, May 07 2003, Alan Cox wrote:
> On Mer, 2003-05-07 at 17:28, Linus Torvalds wrote:
> > At least if I read the patch correctly, theer's no way for upper layers to
> > say "I want 48-bit addressing" - it's just turned on automatically for
> > high sectors (or big transfers).
>
> You read it incorrectly. The lower layers don't know about the issue at
> all. The disk layer does mapping (conceptually like READ6/READ10/READ16
> in SCSI)
>
> Raw I/O and other drivers can still issue CHS LBA28 and LBA48 taskfiles.
>
> > Well, you can mark the drive itself as wanting 48-bit transfers, but you
> > can't do it on a per-request basis.
>
> Its per request at the low level.

Thanks Alan, that is exactly right of course.

Linus has one point (I'll give him that), in that it might be beneficial
to be able to say "48-bit always on" for fs requests. Ie exactly what
ide-disk currently does.

--
Jens Axboe