How can I force a read?

From: Shyam Kaushik V (shyam.kaushik@wipro.com)
Date: Thu May 18 2000 - 03:24:18 EST


Hi,

How can I force a read from a block device after a write? Basically, if I
do a write to some partition of a disk & perform a read of the same
partition of the same disk(to verify whether the data has been written
properly), a read is not actually performed as the buffer cache's dirty bit
is not set. Even if I try to do a sync by calling the sync system call &
then doing a read also does'nt actually perform the read, instead it takes
from the buffer cache & gives the data back. Is there a way to tell the fs
to force an actual read from the disk?

thanks in advance
shyam

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:14 EST