DENY_MODE problem...
Luis Claudio R. Goncalves
lclaudio at conectiva.com.br
Fri Nov 30 09:44:16 GMT 2001
Hello!
I sent this message to samba-technical yesterday but as I saw no response
(not even a RTFM ;), I'm crossposting.
I just need some help to track down this bug. I can write a patch if I can
find the guilt...
----- Forwarded message from "Luis Claudio R. Goncalves" <lclaudio at conectiva.com.br> -----
Date: Thu, 29 Nov 2001 12:34:41 -0200
From: "Luis Claudio R. Goncalves" <lclaudio at conectiva.com.br>
Subject: DENY_MODE problem...
To: samba-technical at lists.samba.org
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
mailing list