Menu

#215 Foxpro 2.0 LAN Record/File Locking

open
nobody
None
5
2012-11-02
2007-05-01
ostrowlaw
No

Any success with file/record locking? I am running Dosemu 1.2.2 on Suse 10.2. I tried Freedos,then installed MSDOS 6.0, installed share. Locks seem to work on the Linux side, i.e., when I open a file with my Linux box, another user running Windows is locked out. BUT, when the Windows user opens a record, the Linux box does not recognize the lock and reports that it can lock the file as well. This is impossible as only 1 user can lock at a time -- otherwise data loss is the result.

This is our mission critical application. I know the file locks have been repaired using Visual Foxpro under Wine. Any assistance under Dosemu would be much appreciated.

Thanks for any assistance or suggestions.

Alan

Discussion

  • Timofey Kutergin

    Logged In: YES
    user_id=1953538
    Originator: NO

    Where are these files located ?
    If they are on SMB server (Samba on Linux or Windows Server) and you are using:
    - smbfs file system: smbfs does not support file locks, please upgrade to cifs
    - cifs file system: there is incompatibility between cifs and dosemu. If lock request fails, cifs returns error code EACCES (NFS for example returns EAGAIN). This is probably bug in dosemu which does not consider EACCES error code as 'lock failure'

     
  • ostrowlaw

    ostrowlaw - 2007-12-06

    Logged In: YES
    user_id=1758800
    Originator: YES

    The database files we need to lock are located on a shared Netware 4.1 or 5.1 file server.

    Thanks for your help.

    Alan

     
  • Timofey Kutergin

    Logged In: YES
    user_id=1953538
    Originator: NO

    What network client do you use to access files on Netware server ? Do you mount netware volume on linux level and then use lredir to map dos drive letter to mount point ? Or you installed DOS network client in DOS running in dosemu (I was not able to do it this way).
    In former case, try to run strace -p <pid of="" dosemu.bin="" process=""> 2>&1 | grep fcntl
    an another xterm window on Linux system running dosemu while attempting to access record locked by Windows user.
    Watch for fcntl returning EAGAIN or EACCES error code. If you will see EACCES code returned by fcntl(F_SETLK,...) system call - then your problem will be the same as mine - bug ID 1845455.
    Otherwise - this could be something else.

    Regards
    Timofey

     
  • ostrowlaw

    ostrowlaw - 2007-12-11

    Logged In: YES
    user_id=1758800
    Originator: YES

    Sorry, my Linux stuff got wiped out and I need to reinstall everything. So, I decided to install SUSE 10.3, so I am waiting for the disks. After I get everything up and running again, I'll try out your suggestions and let you know. It should be at least a week or so.

    Thanks again.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.