Re: How to bypass buffer caches?

From: Bruno Diniz de Paula (
Date: Thu Feb 13 2003 - 12:51:19 EST

But what if "/dev/hda7" already has an ext2 fs set up. How am I supposed
to know which phisical blocks in the disk correspond to each of my files
in the ext2 mapping, that is, "/var/somefile" or "/usr/local/otherfile"?


On Thu, 2003-02-13 at 12:37, wrote:
> On Thu, 13 Feb 2003 12:29:12 EST, Bruno Diniz de Paula <> said:
> > the kernel. One option would be create a raw device on top of my disk
> > partition, but in this case I would have to learn how to map a logical
> > file name (/var/tmp/myfile) to a set of block disks. Is there any other
> What's wrong with this?
> fd = open("/dev/hda7", your_flags_here);

Bruno Diniz de Paula <>
Rutgers University

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:48 EST