[haiku-development] Re: Monitoring file contents modifications

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 14 Feb 2010 13:39:43 +0100

On 2010-02-07 at 18:39:16 [+0100], Michael Pfeiffer 
<michael.w.pfeiffer@xxxxxxxxx> wrote:
> In BeOS it was quite easy using the node monitor to get a notification 
> after the contents of a file had changed by testing if the "opcode" field 
> in the notification message was set to B_STAT_CHANGED.
> Changing attribute values did not trigger that notification.
> It seems in Haiku however changing an attribute also triggers 
> "fields" field in the notification message).
> In BeOS maybe other file modifications (for instance changing the owner?) 
> also triggered B_STATE_CHANGED. My point is that in Haiku I cannot 
> distinguish between attribute modifications and file contents modifications 
> anymore. Any ideas how to monitor file contents modifications in Haiku only 
> would be appreciated.

This sounds like a BFS bug. If you haven't done so already, please file a 

CU, Ingo

Other related posts: