B_STAT_CHANGED

"Axel Dörfler" <[email protected]>
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <50864809577-BeMail@zon>
Hi there,

in the Haiku BFS (like in Be's dos file system) we are continuously 
sending update messages when a file is written to. Of course this looks 
better in Tracker when copying or downloading data, but it has a 
downside, too:
Previously, a B_STAT_CHANGED event also meant that the file was closed, 
ie. the write process was completed at this time. With continuous 
messages, this is no longer the case. If your application was waiting 
for B_STAT_CHANGED to open a file, it would no longer work. Even worse, 
there is no clean solution to make it work anymore.

There are two solutions to this problem:
1) we could add another message field to B_STAT_CHANGED messages, that 
contain information about the intermediate state of the event, or
2) we introduce another event type like B_STAT_UPDATE to the list.

The downside of 1) is that it's not a solution for old applications - 
they would need to get special Haiku support. The downside of 2) is 
that you would lose backwards source compatibility.
I would vote for 2), and I am especially open to alternative names in 
order to make the difference of the two events more obvious.

Bye,
   Axel.



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.