oplocks and file caching
Ralph Blach
rcblach at raleigh.ibm.com
Thu Jan 29 17:14:27 GMT 1998
Hi,
I am using AIX 4.1.5 and found the following problem with oplocks.
On an AIX 4.1.5 system I created the file
xx
with the contents
(0000)
Do a ls -l on the file
-rw-r--r-- 1 rcblach rtp403 7 Jan 29 11:09 xx
on a win95 sytem with the file mapped on my F:
type xx
(0000)
do a dir on the file
dir xx
Volume in drive F is RCBLACH
Directory of F:\
xx 7 01-29-98 11:09a xx
xx bck 16,401 01-29-98 10:31a xx.bck
2 file(s) 16,408 bytes
0 dir(s) 597,344,256 bytes free
------
now on the AIX sytem change the file xx to
(0000 )
and do an ls on the file
-rw-r--r-- 1 rcblach rtp403 8 Jan 29 11:12 xx
now on the win95 system do a dir of the file
Volume in drive F is RCBLACH
Directory of F:\
xx 8 01-29-98 11:12a xx
xx bck 16,401 01-29-98 10:31a xx.bck
NOW type the file and the results are
type xx
(0000)
--------------
HMMMMMM, the correct length is reported, but the old cached version of
the file is present.
Now heres the very intersting point. If I edit the file, the correct
version is retrieved.
there edit xx
shows (0000 )
To overcome this I have set
oplocks =False
in the smb.conf file.
Any comments??? is this a bug???
Chip Blach
More information about the samba
mailing list