linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
	Arjan van de Ven <arjan@infradead.org>,
	Benny Halevy <bhalevy@panasas.com>,
	Jan Harkes <jaharkes@cs.cmu.edu>,
	Jeff Layton <jlayton@poochiereds.net>,
	linux-fsdevel@vger.kernel.org, Miklos Szeredi <miklos@szeredi.hu>,
	Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>,
	nfsv4@ietf.org
Subject: Re: [nfsv4] RE: Finding hardlinks
Date: Thu, 04 Jan 2007 13:26:44 -0500	[thread overview]
Message-ID: <459D46E4.1080102@redhat.com> (raw)
In-Reply-To: <OF59B19A53.55F0F129-ON88257259.00630BCA-88257259.0063FFFB@us.ibm.com>

Bryan Henderson wrote:
>>>> "Clients MUST use filehandle comparisons only to improve
>>>> performance, not for correct behavior. All clients need to
>>>> be prepared for situations in which it cannot be determined
>>>> whether two filehandles denote the same object and in such
>>>> cases, avoid making invalid assumptions which might cause incorrect 
>>>>         
> behavior."
>   
>>> Don't you consider data corruption due to cache inconsistency an 
>>>       
> incorrect behavior?
>   
>> Exactly where do you see us violating the close-to-open cache
>> consistency guarantees?
>>     
>
> Let me add the information that Trond is implying:  His answer is yes, he 
> doesn't consider data corruption due to cache inconsistency to be 
> incorrect behavior.  And the reason is that, contrary to what one would 
> expect, NFS allows that (for reasons of implementation practicality).  It 
> says when you open a file via an NFS client and read it via that open 
> instance, you can legally see data as old as the moment you opened it. 
> Ergo, you can't use NFS in cases where that would cause unacceptable data 
> corruption.
>
> We normally think of this happening when a different client updates the 
> file, in which case there's no practical way for the reading client to 
> know his cache is stale.  When the updater and reader use the same client, 
> we can do better, but if I'm not mistaken, the NFS protocol does not 
> require us to do so.  And probably more relevant: the user wouldn't expect 
> cache consistency.

This last is especially true, the expectations for use of NFS mounted
file systems are pretty well known and have been set from years of
experience.

A workaround is provided for cooperating processes which need stronger
consistency than the normal guarantees and that is file/record locking.

    Thanx...

       ps

  reply	other threads:[~2007-01-04 18:27 UTC|newest]

Thread overview: 127+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-20  9:03 Finding hardlinks Mikulas Patocka
2006-12-20 11:44 ` Miklos Szeredi
2006-12-20 16:36   ` Mikulas Patocka
2006-12-20 16:50     ` Miklos Szeredi
2006-12-20 19:54       ` Al Viro
2006-12-20 20:12         ` Mikulas Patocka
2006-12-31 15:02         ` Mikulas Patocka
2006-12-21 18:58   ` Jan Harkes
2006-12-21 23:49     ` Mikulas Patocka
2006-12-22  5:05       ` Jan Harkes
2006-12-23 10:18       ` Arjan van de Ven
2006-12-23 14:00         ` Mikulas Patocka
2006-12-28  9:06           ` Benny Halevy
2006-12-28 10:05             ` Arjan van de Ven
2006-12-28 15:24               ` Benny Halevy
2006-12-28 19:58                 ` Miklos Szeredi
2006-12-29  0:51                   ` Bryan Henderson
2007-01-02 19:15                   ` Pavel Machek
2007-01-02 20:41                     ` Miklos Szeredi
2007-01-02 20:50                       ` Mikulas Patocka
2007-01-02 21:10                         ` Miklos Szeredi
2007-01-02 21:37                           ` Mikulas Patocka
2007-01-03 11:56                       ` Pavel Machek
2007-01-03 12:33                         ` Miklos Szeredi
2007-01-03 12:42                           ` Pavel Machek
2007-01-11 23:43                             ` Denis Vlasenko
2007-01-03 12:45                           ` Martin Mares
2007-01-03 13:54                           ` Matthew Wilcox
2007-01-03 15:51                             ` Miklos Szeredi
2007-01-03 19:04                               ` Mikulas Patocka
2007-01-04 22:59                               ` Pavel Machek
2007-01-05  8:43                                 ` Miklos Szeredi
2007-01-05 13:12                                   ` Pavel Machek
2007-01-05 13:55                                     ` Miklos Szeredi
2007-01-05 14:08                                       ` Mikulas Patocka
2007-01-05 15:09                                         ` Miklos Szeredi
2007-01-05 15:15                                           ` Miklos Szeredi
2007-01-08 11:27                                             ` Pavel Machek
2007-01-08  5:57                                           ` Mikulas Patocka
2007-01-08  8:49                                             ` Miklos Szeredi
2007-01-08 11:29                                               ` Pavel Machek
2007-01-08 12:00                                                 ` Miklos Szeredi
2007-01-08 13:26                                                   ` Martin Mares
2007-01-08 13:39                                                     ` Miklos Szeredi
2007-01-09 16:26                                                   ` Steven Rostedt
2007-01-09 19:53                                                     ` Frank van Maarseveen
2007-01-09 20:11                                                       ` Steven Rostedt
2007-01-11 10:07                                                       ` Pádraig Brady
2007-01-09 23:43                                                     ` Bryan Henderson
2007-01-09 23:46                                                       ` Pavel Machek
2007-01-10  0:02                                                       ` Matthew Wilcox
2007-01-10 17:30                                                         ` Bryan Henderson
2007-01-10 17:38                                                         ` Symbolic links vs hard links Bryan Henderson
2007-01-10 17:42                                                           ` Matthew Wilcox
2007-01-11 20:03                                                             ` Bryan Henderson
2007-01-10 19:33                                                           ` Mikulas Patocka
2007-01-10  1:30                                                       ` Finding hardlinks Steven Rostedt
2007-01-05 17:30                                   ` Frank van Maarseveen
2006-12-28 18:14               ` Mikulas Patocka
2006-12-29 10:34                 ` Trond Myklebust
2006-12-30  1:04                   ` Mikulas Patocka
2007-01-01  2:30                     ` Nikita Danilov
2007-01-01 22:58                       ` Mikulas Patocka
2007-01-01 23:05                         ` Nikita Danilov
2007-01-01 23:22                           ` Mikulas Patocka
2007-01-04 13:59                             ` Nikita Danilov
2007-01-02 23:14                     ` Trond Myklebust
2007-01-02 23:50                       ` Mikulas Patocka
2006-12-28 13:22             ` Jeff Layton
2006-12-28 15:12               ` Benny Halevy
2006-12-28 15:54                 ` Jeff Layton
2006-12-28 16:26                   ` Jan Engelhardt
2006-12-28 18:15                   ` Bryan Henderson
2006-12-28 18:43                     ` Arjan van de Ven
2006-12-29  0:44                       ` Bryan Henderson
2006-12-29  3:03                         ` Phillip Lougher
2006-12-29  8:41                           ` Arjan van de Ven
2006-12-29 15:12                             ` Phillip Lougher
2006-12-29 15:43                               ` Arjan van de Ven
2006-12-29  8:36                         ` Arjan van de Ven
2006-12-29 18:08                           ` Bryan Henderson
2006-12-29 18:18                             ` Arjan van de Ven
2006-12-29 21:36                               ` Bryan Henderson
2006-12-29 22:36                                 ` Arjan van de Ven
2006-12-28 18:17                 ` Mikulas Patocka
2006-12-28 20:07                   ` Halevy, Benny
2006-12-29 10:28                     ` [nfsv4] " Trond Myklebust
2006-12-31 21:25                       ` Halevy, Benny
2007-01-02 23:21                         ` Trond Myklebust
2007-01-03 12:35                           ` Benny Halevy
2007-01-04  0:43                             ` [nfsv4] " Trond Myklebust
2007-01-04  8:36                             ` Trond Myklebust
2007-01-04 10:04                               ` Benny Halevy
2007-01-04 10:47                                 ` [nfsv4] " Trond Myklebust
2007-01-04 18:12                                   ` Bryan Henderson
2007-01-04 18:26                                     ` Peter Staubach [this message]
2007-01-05  8:28                                   ` Benny Halevy
2007-01-05 10:29                                     ` Trond Myklebust
2007-01-05 16:40                                 ` Nicolas Williams
2007-01-05 16:56                                   ` Trond Myklebust
2007-01-06  7:44                                   ` Halevy, Benny
2007-01-10 13:04                                   ` Benny Halevy
2006-12-29 10:12                 ` Trond Myklebust
2006-12-31 21:19                   ` Halevy, Benny
2007-01-02 23:20                     ` Trond Myklebust
2007-01-02 23:46                     ` Trond Myklebust
2006-12-28 17:58             ` Bryan Henderson
2006-12-28 18:13               ` Shaya Potter
2006-12-28 22:50               ` Halevy, Benny
2007-01-11 23:35             ` Denis Vlasenko
2006-12-29 10:02           ` Pavel Machek
2007-01-01 22:47             ` Mikulas Patocka
2007-01-01 23:53               ` Jan Harkes
2007-01-02  0:04                 ` Mikulas Patocka
2007-01-03 18:58                   ` Frank van Maarseveen
2007-01-03 19:17                     ` Mikulas Patocka
2007-01-03 19:26                       ` Frank van Maarseveen
2007-01-03 19:31                         ` Mikulas Patocka
2007-01-03 20:26                           ` Frank van Maarseveen
2007-01-12  0:00                             ` Denis Vlasenko
2007-01-03 22:30                           ` Pavel Machek
2007-01-03 21:09                     ` Bryan Henderson
2007-01-03 22:01                       ` Frank van Maarseveen
2007-01-03 23:43                         ` Mikulas Patocka
2007-01-04  0:12                           ` Frank van Maarseveen
2007-01-08  6:19                             ` Mikulas Patocka
  -- strict thread matches above, loose matches on Subject: below --
2007-01-05 17:24 [nfsv4] " Noveck, Dave

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=459D46E4.1080102@redhat.com \
    --to=staubach@redhat.com \
    --cc=arjan@infradead.org \
    --cc=bhalevy@panasas.com \
    --cc=hbryan@us.ibm.com \
    --cc=jaharkes@cs.cmu.edu \
    --cc=jlayton@poochiereds.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=mikulas@artax.karlin.mff.cuni.cz \
    --cc=nfsv4@ietf.org \
    --cc=trond.myklebust@fys.uio.no \
    /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).