Linux NFS development
 help / color / mirror / Atom feed
From: Timo Sirainen <tss@iki.fi>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: nfs@lists.sourceforge.net
Subject: Re: [NFS] Cache flushing
Date: Wed, 21 Nov 2007 22:56:24 +0200	[thread overview]
Message-ID: <1195678584.6039.436.camel@hurina> (raw)
In-Reply-To: <1195677569.8374.18.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1518 bytes --]

On Wed, 2007-11-21 at 15:39 -0500, Trond Myklebust wrote:
> On Wed, 2007-11-21 at 22:36 +0200, Timo Sirainen wrote:
> > On 21.11.2007, at 15.56, Trond Myklebust wrote:
> > 
> > > On Wed, 2007-11-21 at 15:14 +0200, Timo Sirainen wrote:
> > >
> > >> Now that I think of it, I guess the reason is that my 2.6.22 setup  
> > >> has
> > >> Linux+ext3 as NFS server and 2.6.17-rc2 setup has NetApp as  
> > >> server. So
> > >> even though open()+close() flushes the directory's attribute  
> > >> cache, it
> > >> doesn't flush the file name -> NFS handle cache unless mtime changes?
> > >
> > > Right. You're hitting the principal limitation of ext3 as an NFS  
> > > backend
> > > filesystem.
> > > As I said in an earlier mail, the resolution on the time is 1  
> > > second, so
> > > client 2 can basically not see any changes that happen within < 1  
> > > second
> > > on client 1. The reason is that the mtime stays the same.
> > 
> > With files it's possible to work around this limitation with fcntl  
> > locking, but directories can't be locked. So back to my original  
> > question: Would it be possible to have chmod(dir, (uid_t)-1,  
> > (gid_t)-1) flush its cache? I don't see what harm there could be in  
> > this, since normally no-one would do it anyway and the change is simple-
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


  parent reply	other threads:[~2007-11-21 20:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-17  0:11 Cache flushing Timo Sirainen
2007-11-17 19:46 ` [NFS] " Trond Myklebust
     [not found]   ` <1195328785.6999.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-11-17 20:12     ` Timo Sirainen
2007-11-17 20:41       ` Trond Myklebust
     [not found]         ` <1195332062.6999.20.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-11-17 22:11           ` Timo Sirainen
2007-11-17 23:52             ` Trond Myklebust
     [not found]               ` <1195343531.7084.11.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-11-18  0:26                 ` Timo Sirainen
2007-11-18  0:46                   ` Trond Myklebust
     [not found]                     ` <1195346790.8908.0.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-11-18  2:03                       ` Timo Sirainen
2007-11-20  2:14             ` Timo Sirainen
2007-11-20 23:47               ` Trond Myklebust
     [not found]                 ` <1195602454.7234.100.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2007-11-21 13:14                   ` Timo Sirainen
2007-11-21 13:56                     ` Trond Myklebust
     [not found]                       ` <1195653389.8374.4.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2007-11-21 20:36                         ` Timo Sirainen
2007-11-21 20:39                           ` Trond Myklebust
     [not found]                             ` <1195677569.8374.18.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2007-11-21 20:56                               ` Timo Sirainen [this message]
2007-11-21 21:15                                 ` Trond Myklebust
     [not found]                                   ` <1195679737.8374.34.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2007-11-22  0:52                                     ` Timo Sirainen

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=1195678584.6039.436.camel@hurina \
    --to=tss@iki.fi \
    --cc=nfs@lists.sourceforge.net \
    --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