Re: O_DIRECT to read files

2003-02-17 Thread Rob Weir
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 >

O_DIRECT to read files

2003-02-12 Thread Bruno Diniz de Paula
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