[Samba] problem with kernel oplock

stephane.purnelle at corman.be stephane.purnelle at corman.be
Wed Oct 17 10:58:35 GMT 2007


Hi,

We test a software called Safekit.
This software permit to have a replicated FS and can start some apps from 
a particular script.
We use this startup script for starting SaMBa. 

We make this test : 

NODE1 : Samba not actif (SECOND)
NODE2 : Samba is running (PRIM)

open a file with samba and modify it
make swap
I try to save and no possible to save, but if I close the file and reopen 
it it works fine.

On the log file, we have : 

[2007/10/17 12:25:50, 4] smbd/open.c:open_file_ntcreate(1605)
  calling open_file with flags=0x0 flags2=0x0 mode=0760, access_mask = 
0x20089, open_access_mask = 0x20089
[2007/10/17 12:25:50, 2] smbd/open.c:open_file(391)
  spu opened file CORINF/cmde/CDE5021.ods read=Yes write=No (numopen=3)
[2007/10/17 12:25:50, 3] smbd/oplock_linux.c:linux_set_kernel_oplock(173)
  linux_set_kernel_oplock: Refused oplock on file CORINF/cmde/CDE5021.ods, 
fd = 26, dev = 14, inode = 403381390. (Ressource temporairement non 
disponible)
[2007/10/17 12:25:50, 5] smbd/nttrans.c:reply_ntcreate_and_X(938)
  reply_ntcreate_and_X: fnum = 12684, open name = CORINF/cmde/CDE5021.ods
[2007/10/17 12:25:50, 5] lib/util.c:show_msg(484)
[2007/10/17 12:25:50, 5] lib/util.c:show_msg(494)

Anyone can explain this little problem ?

Samba 3.0.26a
The shared directory is accesible with a local mount of a NFS share.

thanks

        Stéphane Purnelle

-----------------------------------
Stéphane PURNELLE                         stephane.purnelle at corman.be
Service Informatique       Corman S.A.           Tel : 00 32 087/342467


More information about the samba mailing list