当目录更改时如何在 Solaris 10 中使用事件通知?
我读了 Robert Benson 的文章“Solaris 操作系统的事件完成框架”在 ECF 上。
我还阅读了 Solaris 手册页,但他们不太清楚如何使用目录的事件通知。 例如,如果我将新文件添加到目录中,我希望收到该事件的一些通知。
我发现“文件事件通知”其中包含我需要的内容,但它适用于 Solaris 11 ,尚未上市。
基于“事件端口和性能”,我不想使用轮询,因为我想获得事件的性能优势。
任何建议都将受到高度赞赏!
I read Robert Benson's article "The Event Completion Framework for the Solaris Operating System" on ECF.
I also read the Solaris man pages but they are not very clear of how to use event notifications for directories.
For example, if I add a new file into a directory, I would like to get some notification of that event.
I found "File Events Notification" which has what I need but it is for Solaris 11, which is not in the market yet.
Based on "Event ports and performance", I don't want to use poll because I want to get the performance advantage of events.
Any suggestion is highly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事件端口是一种通用机制,不特定于文件或目录更改。
在 NV build 72(Solaris 10 发布之后)之前,不支持为文件或目录更改生成这些事件。
Event ports are a generic mechanism not specific to file or directory changes.
There wasn't support to generate these events for file or directory changes until NV build 72 (after Solaris 10 was released).