On Tue, Feb 21, 2012, Kenneth R Westerback wrote:
> On Tue, Feb 21, 2012 at 03:15:29PM +0200, Alexey Vatchenko wrote:
>> Reading 512 bytes from raw device with 2048 sector size fails. If i read
>> 512 bytes from block device the problem is not reproduced.

> This is intentional. You cannot read from a raw device fewer bytes
> at a time than the minimum the device provides per i/o. On block
> devices the buffer cache does the correct size i/o and extracts
> just the number of bytes you requested.

That's backwards from what I thought.  The raw device should let you
read byte by byte, the block device only lets you read block by block,
as it were.

Reply via email to