Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Feb 2007 19:56:15 +0000
From:      Florent Thoumie <flz@xbsd.org>
To:        freebsd-hackers@FreeBSD.org,  freebsd-fs@FreeBSD.org
Subject:   Use of kqueue/kevent NOTE_EXTEND fflag in VFS
Message-ID:  <45C8DD5F.3000907@xbsd.org>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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@FreeBSD.org
FreeBSD Committer


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyN1pMxEkbVFH3PQRCvOPAJ9YBjOshompn3KXspXFtxjxnTw03wCgh4Qa
HrDEgaVrfdSvZau4hJZbF84=
=4kxa
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C8DD5F.3000907>