| Summary: | inotifyd has "m" and "y" events backwards | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Lars Kellogg-Stedman <lars> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.24.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
Fixed in git, thanks! |
The help for inotifyd says: If watching a directory: m Subfile is moved into dir y Subfile is moved out of dir n Subfile is created d Subfile is deleted But: # inotifyd - /tmp:mynd & # pwd /root # date > foo # mv foo /tmp y /tmp foo # mv /tmp/foo . m /tmp foo That is, inotify is in fact delivery a 'y' notification when moving a file *into* the directory, and a 'm' notification when moving the file out.