Use of kqueue/kevent NOTE_EXTEND fflag in VFS

Florent Thoumie flz at xbsd.org
Tue Feb 6 20:24:15 UTC 2007


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070206/90a7d661/signature.pgp


More information about the freebsd-hackers mailing list