Re: file keeps on changing
Petr Hanousek <phanousk <at> civ.zcu.cz>
2011-10-06 20:33:15 GMT
Hello,
sometimes is better to wait if problem can decay OpenAFS recently
released a new version (1.7.1) of Windows AFS client. It is running
without a need of Windows loopback network adapter and this simplified a
lot of things. Among others the reported problem disappeared. So this
track can be closed. Thank you for patience and debugging help.
Sincerely Petr Hanousek
Dne 2.5.2011 15:55, Benjamin C. Pierce napsal(a):
> If you mean "should it matter whether the two hosts are using different filesystem encodings" I believe
the answer is no, for present purposes. The fingerprinting operation is happening on just one host at a
time (and then later they get compared).
>
> - B
>
> On Apr 30, 2011, at 3:25 PM, Petr Hanousek wrote:
>
>> Hello Benjamin,
>> sorry for late answer and thank you for reply. I will try to simulate
>> the behavior of touching file on AFS and let you know. In the meantime
>> one question: is it OK that the filesystem encoding of NTFS is different
>> from AFS (internally utf8)?
>> Petr
>>
>> Dne 28.4.2011 18:08, Pierce Benjamin C. napsal(a):
>>> The relevant bit of code from os.ml is below. When Unison needs to fingerprint a file, it does the
fingerprint, then checks whether the file's modtime (or resource fork) has changed, and if so tries
again. So one possibility that comes to mind is that somehow the act of reading the file to fingerprint it is
changing its modtime.
>>>
>>> - B
>>>
>>>
>>> let safeFingerprint fspath path info optFp =
>>> let rec retryLoop count info optFp optRessFp =
>>> if count = 0 then
>>> raise (Util.Transient
>>> (Printf.sprintf
>>> "Failed to fingerprint file \"%s\": \
>>> the file keeps on changing"
>>> (Fspath.toPrintString (Fspath.concat fspath path))))
>>> else
>>> let fp =
>>> match optFp with
>>> None -> Fingerprint.file fspath path
>>> | Some fp -> fp
>>> in
>>> let ressFp =
>>> match optRessFp with
>>> None -> Osx.ressFingerprint fspath path info.Fileinfo.osX
>>> | Some ress -> ress
>>> in
>>> let (info', dataUnchanged, ressUnchanged) =
>>> Fileinfo.unchanged fspath path info in
>>> if dataUnchanged&& ressUnchanged then
>>> (info', (fp, ressFp))
>>> else
>>> retryLoop (count - 1) info'
>>> (if dataUnchanged then Some fp else None)
>>> (if ressUnchanged then Some ressFp else None)
>>> in
>>> retryLoop 10 info (* Maximum retries: 10 times *)
>>> (match optFp with None -> None | Some (d, _) -> Some d)
>>> None
>>>
>>>
>>>
>>> On Apr 28, 2011, at 10:57 AM, Petr Hanousek wrote:
>>>
>>>> Hello group,
>>>> I am using unison for syncing files through multiple systems. The schema
>>>> is Win7 x64 - AFS - Debian testing x64. Both systems are syncing the
>>>> required files with the network disc which is running the AFS
>>>> technology. So on both systems are AFS clients available to read and
>>>> write information on AFS.
>>>>
>>>> At first this worked OK but about half year back we moved to newer AFS
>>>> servers and after some time it is impossible to synchronise files from
>>>> Win7 to AFS. Initial sync and syncing of new files are OK but if I try
>>>> to resync, every older file generates this error:
>>>>
>>>> Error: Failed to fingerprint file "H:/doc/2007/2007.09.18.txt": the file
>>>> keeps on changing
>>>>
>>>> Syncing from Linux is OK.
>>>>
>>>> No newer version of openafs client or unison solved the problem. The
>>>> files are not opened by any application, only touched by openafs client
>>>> when syncing. Maybe it's a problem of windows AFS client but I don't
>>>> even know what to possibly ask at openafs conference. Currently running
>>>> unison 2.40.61, latest openafs client ver 1.5.99.3 and McAfee HIPS 7.0.0
>>>> and antivirus 8.7.0.570 (switching this off caused no improvement). Any
>>>> hints for searching or for asking elsewhere?
>>>>
>>>> Thanks in advance, Petr
>>>>
>>>>
>>>> --
>>>> +---------------------------------------------------------------------+
>>>> | Petr Hanousek e-mail: phanousk <at> civ.zcu.cz |
>>>> | Centre of user support tel: +420 37 763 2836 |
>>>> | University of West Bohemia mobile: +420 606 665 139 |
>>>> | Univerzitni 20, 306 14 Pilsen, Czech Republic |
>>>> +---------------------------------------------------------------------+
>>>>
>>>>
>>>> ------------------------------------
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>
>>
>> --
>> +---------------------------------------------------------------------+
>> | Petr Hanousek e-mail: phanousk <at> civ.zcu.cz |
>> | Centre of user support tel: +420 37 763 2836 |
>> | University of West Bohemia mobile: +420 606 665 139 |
>> | Univerzitni 20, 306 14 Pilsen, Czech Republic |
>> +---------------------------------------------------------------------+
>>
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>
--
+-------------------------------------------------------------------+
Petr Hanousek e-mail: phanousk <at> civ.zcu.cz
Centre of user support tel: +420 37 763 2836
University of West Bohemia mobile: +420 606 665 139
Univerzitni 20, 306 14 Pilsen, Czech Republic
+-------------------------------------------------------------------+
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/unison-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/unison-users/join
(Yahoo! ID required)
<*> To change settings via email:
unison-users-digest <at> yahoogroups.com
unison-users-fullfeatured <at> yahoogroups.com
<*> To unsubscribe from this group, send an email to:
unison-users-unsubscribe <at> yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/