Re: NFS v3 cached directory content out of sync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 25, 2009 at 9:12 PM, Trond Myklebust wrote:
> On Tue, 2009-08-25 at 21:06 +0200, Stefan Egli wrote:
>> On Tue, Aug 25, 2009 at 9:00 PM, Trond Myklebust wrote:
>> > Yes. The NFS client will cache mtime whether or not you do an 'ls'. I
>> > suspect the only reason for the 'ls' in that launchpad bug report, is to
>> > force an mtime update (and to fill the readdir cache).
>>
>> Ok, interesting. I guess though that 'something' needs to read at least
>> a file in that particular directory for the directory content to be
>> cached, right? (i.e. either an 'ls' or some create/delete of a file?)
>
> Every time you use a filename, the act of looking up that name is
> cached. The parent directory's mtime is also cached. If it changes, then
> the cached lookup is invalidated. If not, then the cached lookup is
> assumed still valid (since the directory contents are not supposed to
> have changed).

Great thanks, got that!

Is there some docu about this level of NFS detail you know of?
Esp the attribute and the data cache?

Cheers,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux