linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* directory notification.
@ 2003-11-04 17:44 Terje Malmedal
  2003-11-05  2:15 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Terje Malmedal @ 2003-11-04 17:44 UTC (permalink / raw)
  To: linux-kernel


Hi, 

Modifications of existing files via NFS are not picked up by the
directory notification system.

kernel is 2.4.22, I'm testing with the example program from
/usr/src/linux/Documentation/dnotify.txt

I get notifications on the following: 
nfs-server# echo hello >> existing.file   
nfs-client# echo hello > new.file

But not on this: 
nfs-client# echo hello >> existing.file 

I guess the problem of detecting changes done via NFS is similar to
the problem of multiple hard-links to the same file, which is
documented as not supported.

Is this something that can be fixed, or is it going to be too
difficult to go from NFS-handle and back to the directory it came
from?

-- 
 - Terje
malmedal@usit.uio.no

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: directory notification.
  2003-11-04 17:44 directory notification Terje Malmedal
@ 2003-11-05  2:15 ` Stephen Rothwell
  2003-11-05 10:22   ` Terje Malmedal
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2003-11-05  2:15 UTC (permalink / raw)
  To: Terje Malmedal; +Cc: linux-kernel

On Tue, 4 Nov 2003 18:44:29 +0100 Terje Malmedal <terje.malmedal@usit.uio.no> wrote:
>
> Modifications of existing files via NFS are not picked up by the
> directory notification system.
> 
> kernel is 2.4.22, I'm testing with the example program from
> /usr/src/linux/Documentation/dnotify.txt
> 
> I get notifications on the following: 
> nfs-server# echo hello >> existing.file   
> nfs-client# echo hello > new.file
> 
> But not on this: 
> nfs-client# echo hello >> existing.file 
> 
> I guess the problem of detecting changes done via NFS is similar to
> the problem of multiple hard-links to the same file, which is
> documented as not supported.
> 
> Is this something that can be fixed, or is it going to be too
> difficult to go from NFS-handle and back to the directory it came
> from?

Are you running the program that expects notifies on the NFS server or the
client? If on the client, you will never get notifies for modifications
made on the server or other clients.  If on the server, it needs looking
at as you should get the notifies (I think - it has been a while since I
last looked at the NFS server code).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: directory notification.
  2003-11-05  2:15 ` Stephen Rothwell
@ 2003-11-05 10:22   ` Terje Malmedal
  0 siblings, 0 replies; 3+ messages in thread
From: Terje Malmedal @ 2003-11-05 10:22 UTC (permalink / raw)
  To: sfr; +Cc: linux-kernel


[Stephen Rothwell]
> On Tue, 4 Nov 2003 18:44:29 +0100 Terje Malmedal <terje.malmedal@usit.uio.no> wrote:
>> 
>> Modifications of existing files via NFS are not picked up by the
>> directory notification system.
>> 
>> kernel is 2.4.22, I'm testing with the example program from
>> /usr/src/linux/Documentation/dnotify.txt
>> 
>> I get notifications on the following: 
>> nfs-server# echo hello >> existing.file   
>> nfs-client# echo hello > new.file
>> 
>> But not on this: 
>> nfs-client# echo hello >> existing.file 
>> 
>> I guess the problem of detecting changes done via NFS is similar to
>> the problem of multiple hard-links to the same file, which is
>> documented as not supported.
>> 
>> Is this something that can be fixed, or is it going to be too
>> difficult to go from NFS-handle and back to the directory it came
>> from?

> Are you running the program that expects notifies on the NFS server or the
> client? 

On the server of course.

> If on the client, you will never get notifies for modifications
> made on the server or other clients.  If on the server, it needs looking
> at as you should get the notifies (I think - it has been a while since I
> last looked at the NFS server code).

It would be very nice if this could be fixed. 

-- 
 - Terje
malmedal@usit.uio.no

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-05 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 17:44 directory notification Terje Malmedal
2003-11-05  2:15 ` Stephen Rothwell
2003-11-05 10:22   ` Terje Malmedal

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).