linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Oleg Drokin <green@linuxhacker.ru>
Cc: Jamie Lokier <jamie@shareable.org>,
	Mark Fasheh <mfasheh@suse.com>,
	linux-fsdevel@vger.kernel.org, Sage Weil <sage@newdream.net>,
	Andreas Dilger <adilger@sun.com>
Subject: Re: [PATCH 1/2] [RFC] vfs: 'stat light' fstatat flags
Date: Tue, 07 Apr 2009 13:37:22 -0700	[thread overview]
Message-ID: <1239136642.5664.9.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <409BE74F-D341-4403-9900-57168ECBBD47@linuxhacker.ru>

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@netapp.com
www.netapp.com

  reply	other threads:[~2009-04-07 20:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-07  8:00 [PATCH 1/2] [RFC] vfs: 'stat light' fstatat flags Mark Fasheh
2009-04-07 10:23 ` Andreas Dilger
2009-04-07 14:59   ` Oleg Drokin
2009-04-07 15:18   ` Sage Weil
2009-04-07 15:29   ` Mark Fasheh
2009-04-07 17:52     ` Andreas Dilger
2009-04-07 18:13       ` Jamie Lokier
2009-04-07 23:13   ` Russell Cattelan
2009-04-07 17:42 ` Jamie Lokier
2009-04-07 17:48   ` Oleg Drokin
2009-04-07 18:16     ` Jamie Lokier
2009-04-07 18:24       ` Oleg Drokin
2009-04-07 20:37         ` Trond Myklebust [this message]
2009-04-08 18:48           ` Jamie Lokier
2009-04-09 15:13             ` Trond Myklebust

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=1239136642.5664.9.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@netapp.com \
    --cc=adilger@sun.com \
    --cc=green@linuxhacker.ru \
    --cc=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mfasheh@suse.com \
    --cc=sage@newdream.net \
    /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;
as well as URLs for NNTP newsgroup(s).