DENY_MODE problem...
Luis Claudio R. Goncalves
lclaudio at conectiva.com.br
Thu Nov 29 06:36:03 GMT 2001
hello!
I'm facing a weird problem. When a clipper application opens a dbf file as
READONLY, its DenyMode will be DENY_ALL. If I open the same file as SHARE,
everything works ok.
I saw this under samba-2.2.1a + some patches. The code in 2.2.2 seems to be
almost the same, at least in source/smbd/open.c. O, I've removed oplocks
for .exe, .dbf, .ndx and related files.
The smbstatus output of a READONLY open:
Locked files:
Pid DenyMode R/W Oplock Name
--------------------------------------------------
1082 DENY_WRITE RDONLY NONE /home/samba/sistema/TESTE1.EXE Wed Nov 28 14:23:15 2001
1082 DENY_ALL RDONLY NONE /home/samba/sistema/extrato.dbf Wed Nov 28 14:23:15 2001
The smbstatus output of a SHARE open:
Locked files:
Pid DenyMode R/W Oplock Name
--------------------------------------------------
1082 DENY_WRITE RDONLY NONE /home/samba/sistema/TESTE.EXE Wed Nov 28 14:22:39 2001
1082 DENY_NONE RDWR NONE /home/samba/sistema/extrato.dbf Wed Nov 28 14:22:39 2001
I'm trying'to track this bug down (if it is a bug and not a *feature*) and
can't see what's wrong.
Thanks in advance,
Luis
--
[ Luis Claudio R. Goncalves lclaudio at conectiva.com.br ]
[ MSc coming soon -- Conectiva HA Team - Gospel User - Linuxer - !Java ]
[ Fault Tolerance - Real-Time - Distributed Systems - IECLB - IS 40:31 ]
[ LateNite Programmer -- My Utmost for His Highest -- ]
More information about the samba-technical
mailing list