Re: Problems with FS buffering on Linux 2.2.14

From: Guest section DW (dwguest@win.tue.nl)
Date: Fri Jan 21 2000 - 16:48:32 EST


On Fri, Jan 21, 2000 at 09:33:16AM +0100, Reinhold Huber wrote:

> When I use two Linux boxes with a RAID array as shared storage, the following
> problem occurs:
>
> Machine 1 mounts the shared FS, modifies and unmounts it. Then machine 2
> mounts the filesystem, makes another change and unmounts it. When I look
> at the changes by mounting the FS on machine 1 again, then the changes
> disappear. Another look by machine 2 shows the correct changes.
...
> So I assume that the Linux kernel keeps the read buffers for filesystems
> even after the FS is unmounted, and re-uses them for the next mount of
> the same FS.

Yes. In itself nothing is wrong with that, I suppose.
In some cases not-reusing these buffers would waste a lot of time.

But if the running Linux system is not the only one that fiddles
with the disk contents then you'll have to explicitly invalidate
the buffers, e.g., using "blockdev --flushbufs device".

-
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 : Sun Jan 23 2000 - 21:00:26 EST