[Unison-hackers] File watcher: Question about state file

Gene Horodecki geneh at shaw.ca
Thu Jun 3 00:57:09 EDT 2010


On 05/31/2010 8:19 AM, Benjamin Pierce wrote:
> One thing it's used for is to tell the filewatcher when was the last time it was running, so that it can report files changed since then.  That is, it will tell Unison not just what files are changing right now, but what files have changed since the last time we ran Unison with "-repeat watch" for these replicas.
>
> However, I don't think this scheme is safe -- it could cause us to miss changes if Unison simply trusts it.  It is better to start the change detection at the moment where Unison starts up the filewatcher and then make Unison do a full scan of the filesystems itself, to make sure it finds everything that has changed since the last run.
>
> So I propose removing the --statefile functionality (assuming that was the only thing Christophe was using it for).
>
>     - B
>
>
> On May 30, 2010, at 8:47 PM, Gene Horodecki wrote:
>
>    
>> What is the --statefile for?  I did not implement it in my win32 section.
>>
>> _______________________________________________
>> Unison-hackers mailing list
>> Unison-hackers at lists.seas.upenn.edu
>> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>>      
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>    
Ok I just got built on my windows machine in cygwin and one of my ubuntu 
machines.  Can you tell me how I start up the new filewatcher functionality?



More information about the Unison-hackers mailing list