Bug 8726

Summary: inotifyd has "m" and "y" events backwards
Product: Busybox Reporter: Lars Kellogg-Stedman <lars>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Lars Kellogg-Stedman 2016-02-26 14:26:57 UTC
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.
Comment 1 Denys Vlasenko 2016-03-06 16:37:07 UTC
Fixed in git, thanks!