diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-07-06 12:50:37 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-07-06 12:50:37 +0000 |
| commit | b70997c8c75adc3ab343c47d5ba7d01c9c774d9e (patch) | |
| tree | 3173f78799e428e49c9965bab72065ed26cfe547 /tools | |
| parent | 4805b88edb009e53c4fee159138d2cbe0c848da7 (diff) | |
inotify: Unconditionally generate IN_IGNORED events for files/dirs
The implementation previously only generated an IN_IGNORED event for a
deleted watched file if the watch explicitly requested IN_DELETE_SELF.
This is not correct, IN_IGNORED should always be raised when the watched
subject is deleted. Adjust the implementation of inotify_log_one()
accordingly.
This also fixes a problem where a deleted watched file's watch
would not be removed if IN_DELETE_SELF was not in the watch's event
mask, in which case the unlinked vnode would linger until the inotify
descriptor itself is closed.
Add a regression test.
Reported by: jrtc27
Reviewed by: jrtc27
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D58050
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
