Date: Wed, 07 Feb 2007 10:30:10 +0100 From: Ivan Voras <ivoras@fer.hr> To: freebsd-fs@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: Re: Use of kqueue/kevent NOTE_EXTEND fflag in VFS Message-ID: <eqc673$v2k$1@sea.gmane.org> In-Reply-To: <45C8DD5F.3000907@xbsd.org> References: <45C8DD5F.3000907@xbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eqc673$v2k$1>