From owner-freebsd-hackers@freebsd.org Mon Nov 16 07:08:18 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B938A30B54 for ; Mon, 16 Nov 2015 07:08:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 289451439 for ; Mon, 16 Nov 2015 07:08:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id 24CFDA30B51; Mon, 16 Nov 2015 07:08:18 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23761A30B50 for ; Mon, 16 Nov 2015 07:08:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) by mx1.freebsd.org (Postfix) with ESMTP id C909F1438 for ; Mon, 16 Nov 2015 07:08:17 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from chamsa.cs.huji.ac.il ([132.65.80.19]) by kabab.cs.huji.ac.il with esmtp id 1ZyDtd-0009sj-BB; Mon, 16 Nov 2015 09:08:13 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: kqueue of a nfs mounted file not working From: Daniel Braniss In-Reply-To: <20151115152635.GB5854@kib.kiev.ua> Date: Mon, 16 Nov 2015 09:08:12 +0200 Cc: hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <3AEC67FD-2E67-4EF9-9D46-818ABF3D8118@cs.huji.ac.il> References: <9BC3EFA2-945F-4C86-89F6-778873B58469@cs.huji.ac.il> <20151115152635.GB5854@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 07:08:18 -0000 > On 15 Nov 2015, at 17:26, Konstantin Belousov = wrote: >=20 > 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. >=20 > 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.