Hi I have a problem with Samba locking files from DOS or Windows aplication. It Was tested on Samba 2.0.6, 2.0.7, 2.2.0alpha and RedHat 6.2 , RedHat 7.0 , Kernel 2.2.14-6.0.1 with attached configuration. Example 1: Program Mana.exe created by VisualFoxPro 5.0 is runnig from Win98 local disk ( c:\mana\mana.exe) and data path is set to //samba/server/manager . Before I start program there will not open any files on Samba server. When is program normaly closed server status is: PID Sharing R/W Oplock File Date 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manr2001.dbf Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/mana2001.fpt Tue Feb 27 17:02:36 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANR2001.CDX Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manaadod.fpt Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manaadod.dbf Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANP2001.CDX Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manp2001.dbf Tue Feb 27 17:02:44 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANA2001.CDX Tue Feb 27 17:02:36 2001 2090 DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/mana2001.dbf Tue Feb 27 17:02:36 2001 This problem exists only on Samba server and is critical for use database systems (when data are shared with another user). Novell or Win98 network is working correctly. This problem exists with a lot of programs. Example 2: Pictures saved on Samba server in directory Progres. When the files are viewed and closed (by irfanview.exe) the file, who was viewed as last, stayes opened. Open Files PID Sharing R/W Oplock File Date 2703 DENY_NONE RDONLY EXCLUSIVE+BATCH /server/Progres/lhw2.jpg Tue Feb 27 17:20:07 2001 Please tell me, what can I do. Thanks Ota Neuzil ota.neuzil@syskey.cz -------------- next part -------------- HTML attachment scrubbed and removed
I have the same problem, but another program. More, this program is lounched from the samba server as well as data files. Some hints ? Artur> Ota Neu?il wrote: > > > Hi > > I have a problem with Samba locking files from DOS or Windows > aplication. > It Was tested on Samba 2.0.6, 2.0.7, 2.2.0alpha and RedHat 6.2 , > RedHat 7.0 , Kernel 2.2.14-6.0.1 with attached configuration. > > > > Example 1: Program Mana.exe created by VisualFoxPro 5.0 is runnig from > Win98 local disk ( c:\mana\mana.exe) > and data path is set to //samba/server/manager . > > Before I start program there will not open any files on Samba server. > > When is program normaly closed server status is: > > > PID Sharing R/W Oplock File Date > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manr2001.dbfTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/mana2001.fptTue Feb 27 17:02:36 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANR2001.CDXTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manaadod.fptTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manaadod.dbfTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANP2001.CDXTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/manp2001.dbfTue Feb 27 17:02:44 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/MANA2001.CDXTue Feb 27 17:02:36 2001 > 2090DENY_NONE RDWR EXCLUSIVE+BATCH /server/Manager/mana2001.dbfTue Feb 27 17:02:36 2001 > > > > This problem exists only on Samba server and is critical for use > database systems (when data are shared with another user). > Novell or Win98 network is working correctly. > > This problem exists with a lot of programs. > > Example 2: Pictures saved on Samba server in directory Progres. > > When the files are viewed and closed (by > irfanview.exe) the file, who was viewed as last, stayes opened. > > Open Files > > PID Sharing R/W Oplock File Date > 2703DENY_NONE RDONLY EXCLUSIVE+BATCH /server/Progres/lhw2.jpgTue Feb 27 17:20:07 2001 > > > Please tell me, what can I do. > > Thanks > > Ota Neuzil > ota.neuzil@syskey.cz
We are implementing samba based on the CIFS document. We are stuck with implementing the LOCK_BYTE_RANGE. If the CIFS document is to be referred, then we see that there is no field in this message that indicates if a read/write or unlock message is being sent by the client. So our question is, how does one determine what kind of locking the client has requested. Thanks in advance, Saugata Das