Package: linux-mage 
Version: 2.6.32-5-amd64 

cifs.ko module (which is included in the kernel pkg as far as i know) 
cifs driver version 1.61 

when cifs module loads oplock is enabled by default. 
so I can do 
echo 0 >/proc/fs/cifs/OplockEnabled 
but that won't persist through a driver reload. so we tried adding this to 
/etc/sysctl.conf: 
fs.cifs.OplockEnabled = 0 
however: 

root@nl14s0008-vm1:~# echo 0 >/proc/fs/cifs/OplockEnabled 
root@nl14s0008-vm1:~# cat /proc/fs/cifs/OplockEnabled 
0 
root@nl14s0008-vm1:~# modprobe -r cifs 
root@nl14s0008-vm1:~# tail -1 /etc/sysctl.conf 
fs.cifs.OplockEnabled = 0 
root@nl14s0008-vm1:~# lsmod|grep cifs 
root@nl14s0008-vm1:~# modprobe cifs 
root@nl14s0008-vm1:~# !l 
lsmod |grep cifs 
cifs 262528 0 
nls_base 6377 3 cifs,nls_utf8,usbcore 
root@nl14s0008-vm1:~# !cat 
cat /proc/fs/cifs/OplockEnabled 
1 

So, when I read the modinfo of cifs, there are a few module options, but no 
oplock option. 
I would like to add something like: 
options cifs oplocksenabled=0 
to /etc/modprobe.d/aliases.conf 

Is it feasible to add that param as an option? 

I use the cifs 1.61 module on 2.6.32-5-amd64 kernel on Debian 6.0 (Debian 
2.6.32-35squeeze2) 



Met vriendelijke groet, 
Alexander Swen 

Reply via email to