AFAIK, there isn't such a gurantee.
What we can rely on is only the fact that the two events(IN_MOVED_FROM
, IN_MOVED_TO
) on a rename operation are assocaited with the same cookie
.
Any assumption except above is unreliable, for instance:
- The two events will come sequentially(one comes right after the other).
- The two events will be appear in the same
read
system call together.