From: Paulo Marques <pmarques@grupopie.com>
To: Guven Demir <guven.demir@gmail.com>
Cc: kernel <linux-kernel@vger.kernel.org>
Subject: Re: Question: how to invalidate read cache
Date: Wed, 27 Oct 2004 15:49:52 +0100 [thread overview]
Message-ID: <417FB590.4000500@grupopie.com> (raw)
In-Reply-To: <6cb735e904102707181e58d208@mail.gmail.com>
Guven Demir wrote:
> hi all,
>
> i hope this is the right place to ask question... anyway, it goes like this:
>
> how can i invalidate the read cache for a file system?
>
> the reason i'm asking this question is:
>
> i'm mounting this ntfs partition to my linux box r/o, which i also
> used by "another os" running under vmware r/w.
>
> so when this partition gets updated under vmware, linux does not get
> the changes until i umount / mount the partition again.
>
> the problem is, i cant do this when the partiton is busy so i'm stuck
> with invalid directory entries etc...
>
> so, is there a way to disable or invalidate the read cache for this partition?
As a basic rule, never mount the same block device from two OS's (even
if they are the same model).
Even if you could "disable" read cache from the Linux side, what makes
you think that the "other OS" (or even vmware) isn't doing some write
caching that will ruin it for you?
If you want a "shared space" between the 2 OS'es I would suggest you
share at a higher level, like a sharing a directory on the "other OS"
and mount it using samba on Linux through a virtual network card (or the
other way around).
--
Paulo Marques - www.grupopie.com
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke (1729 - 1797)
prev parent reply other threads:[~2004-10-27 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 14:18 Question: how to invalidate read cache Guven Demir
2004-10-27 14:49 ` Paulo Marques [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=417FB590.4000500@grupopie.com \
--to=pmarques@grupopie.com \
--cc=guven.demir@gmail.com \
--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