[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: O_DIRECT to read files



On Wed, Feb 12, 2003 at 03:57:50PM -0500, Bruno Diniz de Paula wrote:
> Hi,
> 
> has anyone used O_DIRECT flag of open to read files bypassing the buffer
> cache of the kernel? I am trying to read using this option but the read
> command always returns 0, indicating that zero bytes were read. The
> buffer I am using is aligned with the block size, as also the size of
> the buffer is multiple of the block size. What is the problem though?

This just recently came up on LKML, and I think a solution/answer was
given.  Search their archives, I guess.

-- 
Rob Weir <rweir@ertius.org>				http://ertius.org/

Attachment: pgpGwFd89NW7s.pgp
Description: PGP signature


Reply to: