Re: reading 1 hardsector size, not one block size

From: Andre Hedrick (andre@linux-ide.org)
Date: Fri Sep 29 2000 - 03:42:14 EST


On Fri, 29 Sep 2000, Alan Cox wrote:

> > To read say 32 sectors anywhere on the disk, I have to do 1024-byte aligned
> > bread()s, possibly doing an unaligned first block, aligned middle, and
> > unaligned last block.
> >
> > Is there an easier method?
>
> Set the block size, but set it back when finished

Matt is this SCSI or ATA?

I ask because this sounds like DIAG stuff that I am working on.

Cheers,

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:24 EST