v1.6.0-RC1
Pre-release
Pre-release
feat(probe): add mount change detection to mount probe (#595) - add new package that provides an api to watch for i/o events on files. uses linux EPOLL api internally - add mount change detection to mount probe - add change handlers to process device updates - add integration tests for mount change detection - add new package to parse mount files. libmount is a pure go port of the util-linux/libmount library. while most of the original functionalities are missing in this go implementation, it currently supports parsing mounts file in procfs and generating diffs between two parsed mounts files. while the current functionalities are enough to solve some of the issues faced in #595, this is a wip and remaining functions maybe added in future. - use libmount to find out what changed in the mounts file and trigger an update only for the required devices - parse mount file after applying all options. the `FromFile` option passed in `NewMountTab()` was parsing the provided file immediately it was called. this was preventing any filters passed from being applied since they might be added after the FromFile` option is executed (depending on the order of the options passed). parse file only once all options have been applied. - update ndm deploy yaml - update ndm yaml with the new feature gate ("MountChangeDetection") Signed-off-by: Aditya Jain <[email protected]>