Concurrent access by two users - does it handle ok?
On connection to an SSH server, how is concurrent file access handled (two persons using ExpanDrive or one using ExpanDrive and someone else accessing locally or via SMB on the remote end attempt to open/modify the same file)? Is someone denied access? Is the file corrupted? How are changes reconciled?
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi, Jacob,
Even on your local filesystem, if two processes have the same file open and are writing concurrently, it's essentially a matter of luck as to which write happens first. Most operating systems provide an advisory locking facility that processes can use to detect and avoid concurrent access, but processes are not required to use these facilities. None of the SFTP or FTP server implementations I have seen use advisory locking in their default configurations.
So, to answer your question: ExpanDrive is at the mercy of whatever the SFTP or FTP server provides. If the server does not detect and prevent concurrent access, then ExpanDrive won't either. We play by the same rules that other processes are subject to. That means, if you are really editing and saving the file with two programs at once, you might get garbage. But that could also happen if you did the same thing without ExpanDrive, too.
Most applications that manipulate files mitigate this problem by reading the whole file, making changes in memory, then writing the whole file back. This is what programs like TextMate do, for example. Before writing changes, such programs check to see if the file was changed while you were editing it, and warns you if so. -
Inappropriate?What about using programs like Quickbooks in a multi-user mode. Is this allowed via Expandrive?
Loading Profile...



EMPLOYEE
