diff options
author | kib <kib@FreeBSD.org> | 2016-05-02 13:18:17 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-05-02 13:18:17 +0000 |
commit | 9eb6f0fde4c92d101df058d2ad6dea964988cebb (patch) | |
tree | ccd20e766ed513bf7959448d7f19259988ecb162 /sys/kern | |
parent | 5bc5df16639fd16299b315b38cdba281bf17a539 (diff) | |
download | FreeBSD-src-9eb6f0fde4c92d101df058d2ad6dea964988cebb.zip FreeBSD-src-9eb6f0fde4c92d101df058d2ad6dea964988cebb.tar.gz |
Issue NOTE_EXTEND when a directory entry is added to or removed from
the monitored directory as the result of rename(2) operation. The
renames staying in the directory are not reported.
Submitted by: Vladimir Kondratyev <wulf@cicgroup.ru>
MFC after: 2 weeks
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index e1711ea..795eac5 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -4660,6 +4660,7 @@ vop_rename_post(void *ap, int rc) VFS_KNOTE_UNLOCKED(a->a_fdvp, hint); VFS_KNOTE_UNLOCKED(a->a_tdvp, hint); } else { + hint |= NOTE_EXTEND; if (a->a_fvp->v_type == VDIR) hint |= NOTE_LINK; VFS_KNOTE_UNLOCKED(a->a_fdvp, hint); |