Subject: Re: bread() returns EINVAL during vfs mount
To: Bill Studenmund <>
From: Yevgeny Binder <>
List: tech-kern
Date: 08/22/2005 22:59:45
On Aug 22, 2005, at 4:49 PM, Bill Studenmund wrote:

> The problem is that pread() permits i/o access that is not  
> permitted with
> the buffer cache system. So it covers over issues that bread() won't.
> The problem is that you have to read full blocks. On a CD, that  
> means 2k.
> 1536 is not an integer number of blocks, thus an EINVAL error.

That's it, thank you! I changed the size parameter to be a multiple  
of 2048 and it worked fine. This "feature" of bread() definitely  
needs to go in a man page.

Take care,
Yevgeny Binder