On Wed, 03 Mar 2010, Agustianes Umbara Suwardi wrote:

Hi,

> Has anyone tried to exclusive-use on CIFS mounted files with
> Harbour? I have a CIFS mount point:
> mount -t cifs -o 
> rw,sync,user=ptiuser,password=secret,uid=1000,gid=1000,noperms,directio
> //192.168.20.1/ptiuser/dbf /mnt/dbf
> 
> As a test, I run on computer A a foxpro (under dosemu) script that
> use a dbf as exclusive. Then on my computer I write a harbour app
> that use the same file exclusively. The result is both computer can
> use the file in the same time!

Your problem has nothing to CIFS volumes.

In POSIX systems like Linux DOS DENY flags (EXCLUSIVE mode) do not exist.
DOSEMU emulates them only and such emulation is visible and respected only
by programs executed in DOSEMU. The exception is when inside DOSEMU you
are running network client which connects to file server directly instead
of using LREDIR volumes. In such case DOSEMU sends information about the
DOS DENY flags to file server which can manage them and synchronize other
clients.

> The second test, on my computer I use the file exclusively under
> foxpro (on dosemu). And the set exclusive command takes effect, the
> file is used exclusively.
> Is it a bug on harbour, or I'm passing the wrong mount parameters?

It's not a bug. Read above. You are simply making sth what cannot work
with programs executed outside DOSEMU.

best regards,
Przemek
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to