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

Hello!

On Apr 7, 2009, at 2:16 PM, Jamie Lokier wrote:

> Oleg Drokin wrote:
>>>> AT_STRICT allows userspace to indicate that it wants the most up to
>>>> date
>>>> version of a files status, regardless of performance impact. A
>>>> distributed
>>>> file system which has a non-coherent inode cache would know then to
>>>> send a
>>>> direct query to it's server.
>>> Good idea!  Sort out some NFS pain.
>>> If a filesystem doesn't honour AT_STRICT, can we have the function
>>> return an error instead of stale values?
>> Supposedly the existing stat() is the way to do this?
> I don't understand your response.  If an application wants to be sure
> it has non-stale attributes, how does stat() help?  Are you saying
> stat() does this?  (Afaik it doesn't on NFS).

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?

Bye,
     Oleg

  reply	other threads:[~2009-04-07 18:24 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 [this message]
2009-04-07 20:37         ` Trond Myklebust
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=409BE74F-D341-4403-9900-57168ECBBD47@linuxhacker.ru \
    --to=green@linuxhacker.ru \
    --cc=Trond.Myklebust@netapp.com \
    --cc=adilger@sun.com \
    --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).