inotify
-
The publishing server uses the latest updated file system discovery mechanism : Inotify .
发布服务器模块采用了最先进的文件系统变更发现机制:Inotify。
-
In this article , you will learn how to use inotify functions for a simple monitoring application .
在本文中,您将会学习如何在简单的监控应用程序中使用inotify功能。
-
You should be aware of two configuration options inside the kernel when dealing with Inotify .
使用Inotify时,要特别注意内核中关于它的两个配置。
-
The file descriptor used by inotify is obtained using a system call and does not have an associated device or file .
Inotify所使用的文件描述符可以通过系统调用获得,并且没有相关设备或者文件。
-
Inotify provides a simple API that uses minimal file descriptors and allows fine granularity of monitoring .
Inotify提供一个简单的API,使用最小的文件描述符,并且允许细粒度监控。
-
Is the system call that creates an inotify instance and returns a file descriptor referring to the instance .
是用于创建一个inotify实例的系统调用,并返回一个指向该实例的文件描述符。
-
Inotify can watch files or directories .
Inotify能够监视文件或者目录。
-
Inotifywatch-gather filesystem access statistics using inotify
Inotifywatch-使用inotify来统计文件系统访问信息
-
As noted above , inotify uses a file descriptor , allowing programmers to use standard select or poll functions to watch for events .
如上所述,inotify使用文件描述符,允许程序员使用标准select或者poll函数来监视事件。
-
Configuration options for Inotify
Inotify的配置选项
-
Inotify uses a single file descriptor , while dnotify requires opening one file descriptor for each directory that you intend to watch for changes .
Inotify使用一个独立的文件描述符,而dnotify需要为每个受监控的目录打开一个文件描述符。
-
With inotify , a watched file or directory on a file system that is unmounted generates an event , and the watch is automatically removed .
对于inotify,卸载的文件系统上的监视文件或目录会产生一个事件,而且监视也会自动移除。
-
As you can see I 've been monitoring the directory ~ / InfoQ and two events took place inside / home / mika / InfoQ / inotify .
很显然,这里我们监控的是~/InfoQ文件夹,并且可以看到/home/mika/InfoQ/inotify上发生了两个事件。
-
In this article we will walk through how to use Inotify to monitor directories and trigger alerts on changes and present tools you might want to add to your personal toolbox .
本文将简要介绍inotify,告诉我们如何监控文件夹,如何一有变化就报告相关消息事件,并介绍了一些相关工具,我们可以把它们添加到自己的工具箱中。
-
I am indebted to Eli Dow of IBM who wrote an earlier version of this article , prior to the final integration of inotify in the Linux kernel .
在Linux内核中对inotify进行最后集成之前,我要感谢IBM公司EliDow,他写了本文较早的版本。