Use of kqueue/kevent NOTE_EXTEND fflag in VFS

Ali Mashtizadeh mashtizadeh at gmail.com
Tue Feb 6 23:33:02 UTC 2007


I saw in the past several people have asked if theres a way to monitor all
file operations (not limited to a set of Vnodes). Is this likely to be
implemented any time soon? Or is there a good alternative?

On 2/6/07, Florent Thoumie <flz at xbsd.org> 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?
>
> --
> Florent Thoumie
> flz at FreeBSD.org
> FreeBSD Committer
>
>
>


-- 
Ali Mashtizadeh
علی مشتی زاده


More information about the freebsd-hackers mailing list