Re: O_DIRECT for FAT

From: Erik Mouw
Date: Tue May 15 2007 - 08:28:31 EST


On Tue, May 15, 2007 at 01:02:51AM +0100, Hubertus Grobbel wrote:
> I found out, that the option O_DIRECT for opening a file on a fat-
> filesystem successfully completes. But reading and writing to that
> file leads to EINVAL errors (using kernel 2.6.18).

Make sure your buffer is page aligned and read/write in multiples of
the hard block size (use blockdev --getss to figure out).


Erik

--
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery

Attachment: signature.asc
Description: Digital signature