lkml.org 
[lkml]   [2004]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question: how to invalidate read cache
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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.025 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site