preventing folder lock collisions

Get help for specific problems
Posts: 2
Joined: 14 Oct 2012

stephan-p

Hi,
I'm using FFS on 3 computers, each syncing a range of folders with the NAS.
Some of the folders are personal, but others are 'shared'.
When FFS_real on PC1 performs it's sync with the NAS, it locks the folders in
order to prevent synchronisation collisions.
When FFS_real on another PC in the network also wants to perform its sync, it
collides with the folder lock and fires an error message. When you understand
the underlying reason, the error message can be easily ignored. Unfortunately,
other members in the family tend to respond differently, closing the the
window and thus ending the FFS_real process. Goodbye realtime folder sync for
that particular computer.

Is there another way in which I can have multiple PC's sync with the NAS, with
less chance on the folder lock collisions?
Can I adjust the interval at which each of these computers performs its
checks? Using prime numbers will definitely help here.
Was I wrong to use FFS_REAL on multiple computers?

Any guidance would be much appreciated.
Stephan
User avatar
Site Admin
Posts: 7042
Joined: 9 Dec 2007

Zenju

> it collides with the folder lock and fires an error message.


What kind of error message do you see, is it from FFS or RTS? It's certainly
not an expected error, in general RTS should just trigger FFS, which then
waits, while the folder is locked - without any errors being produced.


> Is there another way in which I can have multiple PC's sync with the NAS


If RTS is producing too may errors, the alternative is to start FFS
unconditionally after fixed time intervals using Windows Task Planner.


> Was I wrong to use FFS_REAL on multiple computers?


It seems some NAS shares do not work properly work with
"ReadDirectoryChangesW", the standard Windows API for reading .. well,
directory changes:
[404, Invalid URL: https://sourceforge.net/tracker/?func=detail&atid=1093081&aid=3563591&group_id=234430]
Posts: 2
Joined: 14 Oct 2012

stephan-p

The error I receive:
(Translated from Dutch)

Cannot check location 'P:\Documenten van Stephan\'. (ReadDirectoryChangesW)
Windows Error code 58: The designated server cannot perform the requested
function.

Does this ring a bell?
Ours is a Sitecom Network HD, running some Linux OS
User avatar
Site Admin
Posts: 7042
Joined: 9 Dec 2007

Zenju

Yes, ERROR_BAD_NET_RESP 58 (0x3A) is the same error code like the one in the
ticket above.