From owner-freebsd-fs@FreeBSD.ORG Wed Feb 7 10:05:28 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8434716A405 for ; Wed, 7 Feb 2007 10:05:26 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8C0F613C491 for ; Wed, 7 Feb 2007 10:05:22 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HEj86-0005bF-4C for freebsd-fs@freebsd.org; Wed, 07 Feb 2007 10:30:18 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Feb 2007 10:30:18 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Feb 2007 10:30:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Ivan Voras Date: Wed, 07 Feb 2007 10:30:10 +0100 Lines: 18 Message-ID: References: <45C8DD5F.3000907@xbsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.9 (X11/20070110) In-Reply-To: <45C8DD5F.3000907@xbsd.org> Sender: news Cc: freebsd-hackers@freebsd.org Subject: Re: Use of kqueue/kevent NOTE_EXTEND fflag in VFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 10:05:29 -0000 Florent Thoumie wrote: > I'd like to use NOTE_EXTEND in the following cases: create, link, mkdir, > mknod, rename, symlink for the parent vnode or the destination parent > vnode (in the rename case). > > The rationale is that there's no way (or I don't see it) to know if a > file/directory is removed or created when monitoring a directory. Using > NOTE_EXTEND in the sense of "there's more files/directories" makes it > possible to distinguish both cases. > > Another possibility could be to create new flags that would be the > equivalent of IN_{CREATE,DELETE}_{FILE,SUBDIR}. > > Any thoughts? I'd welcome it because I have several ideas that would benefit from such thing. Separate "notes" for CREATE/DELETE (issued on a directory vnode, right?) would be better than single "extend" note.