Bug 742529

Summary: gio: No CHANGES_DONE_HINT when monitoring directory
Product: [Fedora] Fedora Reporter: Tomáš Bžatek <tbzatek>
Component: glib2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: bbaude, dcbw, mclasen, pknirsch, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-27 15:37:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 736489    
Bug Blocks: 803329    

Description Tomáš Bžatek 2011-09-30 13:02:27 UTC
Description of problem:
When monitoring a directory, no CHANGES_DONE_HINT is received once a changed file is closed.

Version-Release number of selected component (if applicable):
glib2-2.29.90-1.fc16.ppc64
glibc-2.14.90-8.ppc64
kernel-3.1.0-0.rc6.git0.3.fc16.kh.ppc64

How reproducible:
always

Steps to Reproduce:
1. mkdir test
2. gvfs-monitor-dir test
3. echo Hello! > test/file
  
Actual results:
Directory Monitor Event:
Child = /tmp/test/test
Event = CHANGED
Directory Monitor Event:
Child = /tmp/test/test
Event = CHANGED
Directory Monitor Event:
Child = /tmp/test/test
Event = CHANGED


Expected results (taken from 2.6.38.2 x86_64 machine):
Directory Monitor Event:
Child = /tmp/test/test
Event = CREATED
Directory Monitor Event:
Child = /tmp/test/test
Event = CHANGED
Directory Monitor Event:
Child = /tmp/test/test
Event = CHANGES_DONE_HINT

Comment 1 Tomáš Bžatek 2011-09-30 13:10:00 UTC
Tested inotify sample app from http://www.ibm.com/developerworks/linux/library/l-inotify/?ca=drs-

x86_64 (kernel 2.6.38.2):
> 2 events queued
> MODIFY: File "test" on WD #1
> OPEN: File "test" on WD #1
> 
> 2 events queued
> MODIFY: File "test" on WD #1
> CLOSE_WRITE: File "test" on WD #1

ppc64 (kernel 3.1.0-0.rc6):
> 4 events queued
> MODIFY: File "test" on WD #1
> OPEN: File "test" on WD #1
> MODIFY: File "test" on WD #1
> CLOSE_WRITE: File "test" on WD #1