mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Magnus.Sundberg@dican.se (Magnus Sundberg)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Does VFS cache individual files? Is the linker involved?
Date: Mon, 29 Oct 2001 12:26:01 +0000 (GMT)	[thread overview]
Message-ID: <E15yBUP-0002Zr-00@the-village.bc.nu> (raw)
In-Reply-To: <3BDD4593.74988F93@dican.se> from "Magnus Sundberg" at Oct 29, 2001 01:03:31 PM

> Does VFS cache the content of a file?

It caches arbitary pages of the file.

> Does VFS consult memory instead of disk, when accessing a file that is
> already linked to a process that is running?

Depends if the block is already in memory. If it is paged in then it will
used a shared read only copy when there is one. If not then it will load it

> One night, when the PHP runtime of apache had crashed, tripwire reported
> checksum error of
> /usr/lib/apache/libphp4.so
> The next night, when apache was restarted, there where no checksum
> errors of the file.
> 
> I have seen checksum errors of /lib/libc-2.2.2.so, rpm also reported md5
> checksum error when I
> used rpm to verify the installation of glibc.

That is consistent with in memory file cache corruption yes. Since the error
never got written back to disk (and its probably in a clean page) it
vanished when the cached copy did

      reply	other threads:[~2001-10-29 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-29 12:03 Magnus Sundberg
2001-10-29 12:26 ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E15yBUP-0002Zr-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=Magnus.Sundberg@dican.se \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®