Bug 8726 - inotifyd has "m" and "y" events backwards
Summary: inotifyd has "m" and "y" events backwards
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-26 14:26 UTC by Lars Kellogg-Stedman
Modified: 2016-03-06 16:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!