[haiku-bugs] [Haiku] #5405: Too many notifications after attribute change

  • From: "laplace" <trac@xxxxxxxxxxxx>
  • Date: Sun, 14 Feb 2010 16:14:11 -0000

#5405: Too many notifications after attribute change
------------------------------+---------------------------------------------
 Reporter:  laplace           |       Owner:  axeld         
     Type:  bug               |      Status:  new           
 Priority:  normal            |   Milestone:  R1            
Component:  File Systems/BFS  |     Version:  R1/Development
 Keywords:                    |   Blockedby:                
 Platform:  All               |    Blocking:                
------------------------------+---------------------------------------------
 With node monitoring enabled, changing an attribute triggers a
 B_STAT_CHANGED notification after B_ATTR_CHANGED.

 The B_STAT_CHANGED notification message contains in field "fields"
 B_STAT_SIZE and B_STATE_MODIFICATION_TIME). AFAICT the file size did not
 change; maybe the modification time has changed; I cannot tell as Tracker
 does not display it.

 This is an incompatibility to BeOS R5.

 I had used B_STAT_CHANGED in an application as an easy indication that the
 contents of a file had changed. The application then tries to reload the
 file. However that application also updates some attributes after loading
 the file, which triggers now a B_STAT_CHANGED notification, which triggers
 a reload of the file, and so on...

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5405>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: