On Thu, Mar 25, 2004 at 16:22:14 +0000, hai huang wrote: > Hi, > > I'm trying to read "/dev/hda1" sector by sector. This is done by using > open() on /dev/hda1, and then read 512 bytes at a time. However, I would > like to avoid the effect of read-ahead and buffer cache. Can this be done? That's what O_DIRECT flag is for. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz>
Attachment:
signature.asc
Description: Digital signature