1. /proc/sys/fs/dir-notify-enable
[root@localhost /proc/sys/fs]$ cat dir-notify-enable
1
2. 分析理解
设置是否启用dnotify,已被inotify取代,因为dnotify 需要您为每个打算监控是否发生改变的目录打开一个文件描述符。当同时监控多个目录时,这会消耗大量的资源,因为有可能达到每个进程的文件描述符限制。并且不允许卸载(unmount)支持的设备。
3. 翻译
这个文件被用来禁用或者启用在fcntl(2)的dnotify接口描述 ,他是系统级别的。0值表示禁用这个接口,1是表示开启。
/proc/sys/fs/dir-notify-enable This file can be used to disable or enable the dnotify interface described in fcntl(2) on a system-wide basis. A value of 0 in this file disables the interface, and a value of 1 enables it.