Re: [PATCH 1/2] [RFC] vfs: 'stat light' fstatat flags

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

 



On Tue, 2009-04-07 at 14:24 -0400, Oleg Drokin wrote:
> Well, what the stat actually meant to do is "give me the file  
> information
> as it is now". By the time it returns, the data is stale anyway, and the
> longer your path from the user app to the actual file storage, the
> more potentially out of date the information is.
> NFS just takes it to an extreme case and introduces an assumed validity
> timeout.
> While I do not directly oppose such a flag, I really do not see huge  
> value
> in it. I wonder what is the specific usecase do you have in mind?

The default behaviour of stat() on NFS is to do a revalidation of the
cached data (by which I mean that we issue an RPC call if and only if
the cache has timed out, or if it is known to be invalid).

The AT_STRICT would be used by the application to tell NFS that it must
retrieve the cached data from the server. One instance where this is
useful would be the case where you're doing a distributed compile: the
application knows that the file may have changed on the server, and
wants to force the kernel to check mtime.

Cheers
  Trond
-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@xxxxxxxxxx
www.netapp.com
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux