kqueue of a nfs mounted file not working

Daniel Braniss danny at cs.huji.ac.il
Mon Nov 16 07:08:18 UTC 2015


> On 15 Nov 2015, at 17:26, Konstantin Belousov <kostikbel at gmail.com> wrote:
> 
> On Sun, Nov 15, 2015 at 11:22:55AM +0200, Daniel Braniss wrote:
>> HI,
>> I???m writing a program to monitor a file using kqueue(2), if the file is local
>> all is OK, but if the file is via a nfs mounted fs, it only works once.
>> stat shows the file growing, but kevent is not triggered.
> 
> Does file grow due to local changes on the nfs client, or some other
> client changes the file, while your client tries to get kevent notifications ?

it gets updated by a host which has the file as local, so yes, it gets updated
by another client/host.




More information about the freebsd-hackers mailing list