缺少 inotify 事件 (在。Git 目录

我正在观察文件使用 inotify 事件的变化 (因为它发生,从 Python,调用 libc)。 对于一些文件在git clone, I see something odd: I see an IN_CREATE event, and I see via ls that the file has content, however, I never see IN_MODIFY or IN_CLOSE_WRITE. This is causing me issues since I would like to respond to IN_CLOSE_WRITE关于文件: 具体来说,要启动文件内容的上传。 行为古怪的文件在.git/objects/pack directory, and they end in .pack or .idx. Other files that git creates have a more regular IN_CREATE -> IN_MODIFY -> IN_CLOSE_WRITE chain (I'm not watching for IN_OPEN事件)。 这是在 ……

共5个回答,已解决, 标签: linux git docker libc inotify