All of lore.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Neil Brown <neilb@suse.de>
Cc: devzero-S0/GAf8tV78@public.gmane.org, linux-nfs@vger.kernel.org
Subject: Re: inotify and nfsd exported filesystem
Date: Tue, 22 Jan 2008 16:39:34 -0500	[thread overview]
Message-ID: <20080122213934.GN24697@fieldses.org> (raw)
In-Reply-To: <18326.24905.512220.221488-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>

On Wed, Jan 23, 2008 at 08:34:01AM +1100, Neil Brown wrote:
> On Tuesday January 22, devzero-S0/GAf8tV78@public.gmane.org wrote:
> > i was only testing for IN_OPEN and IN_CLOSE_NOWRITE  ( http://inotify-tools.sourceforge.net/api/inotifytools_8h.html )
> > 
> > can do more in depth test tomorrow.
> 
> If you are watching for inotify events on the server, and performing
> accesses on some client, then I would expect you to get an IN_OPEN
> followed immediately by an IN_CLOSE_{NO,}WRITE each time the client
> sends a READ or WRITE request respectively.
> 
> So if the client just opens the file and then closes it, you would get
> no INOTIFY events.
> If the client performs open/read/close repeatedly, subsequent reads
> would come from cache, so you would only get one
> IN_OPEN/IN_CLOSE_NOWRITE
> pair.
> 
> If the client performs writes, you should get a more predictable
> stream of IN_OPEN/IN_CLOSE_WRITE pairs, though they could be delayed a
> bit.
> 
> You results will probably be different (and possible more like what
> you expect) if you use NFSv4.

Until delegations are granted, and then you'll start missing some of the
client's opens again....

I'd expect inotify to notice changes to directories and (after some
delay) to file data, but wouldn't count on more than that.

--b.

  parent reply	other threads:[~2008-01-22 21:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 20:36 inotify and nfsd exported filesystem devzero-S0/GAf8tV78
     [not found] ` <120349239-S0/GAf8tV78@public.gmane.org>
2008-01-22 20:40   ` J. Bruce Fields
2008-01-22 21:34 ` Neil Brown
     [not found]   ` <18326.24905.512220.221488-wvvUuzkyo1EYVZTmpyfIwg@public.gmane.org>
2008-01-22 21:39     ` J. Bruce Fields [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-22 20:26 devzero-S0/GAf8tV78
     [not found] ` <120329353-S0/GAf8tV78@public.gmane.org>
2008-01-22 20:29   ` J. Bruce Fields

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=20080122213934.GN24697@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=devzero-S0/GAf8tV78@public.gmane.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.