Actions
Refactor #16140
openRegister ISC inotify leases watcher on leases file only, not directory
Status:
New
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
The ISC inotify leases watcher currently adds a :modify watcher on the entire parent directory, but should instead register it only on the target inode.
When the file is recreated, the old watcher needs to be closed and re-registered. In rb-inotify 0.9.7, this may result in an exception when an event's received for the old watcher - this is fixed in https://github.com/nex3/rb-inotify/commit/a3ff7cc in master. Once released, this could be implemented.
Example implementation: https://github.com/theforeman/smart-proxy/compare/develop...domcleal:16021-inotify-queue-overflow-reregister
Updated by Dominic Cleal about 8 years ago
- Related to Bug #16021: inotify queue overflow halts ISC lease file monitoring added
Actions