FILE CACHE/LOCKING DOES NOT WORK

Mick Taylor mt at symbionics.com
Tue Jun 15 07:44:43 GMT 1999


The problem:
A file updated on a UNIX box (Solaris2.6) then viewed on a Win95 PC via
samba is fine, if you copy this file using Windows Explorer to e.g. your
desktop, this is fine first time. But, if you repeat this operation then
the file size reported by Windows Explorer is correct but the file size
reported on the local copy is still the original size. This operation needs
to be repeated several times (2-6) for the local copy to be updated
correctly.

This works fine with NT but is repeatable on Win95. I have messed with
oplocks,
sync and changed the registry in Win95 as per article in FAQ but with no
success.
I have checked that all the UNIX systems have the same smb .conf and that
they are
basically configured the same.

Details:
UNIX Machines: SUN/SUN Clones, Solaris 2.6
WINDOWS Machines: Windows95b
NT Machines: NT4sp4
The above experiment was done with a small .txt file
Version 1.19.16p10 OK
Version 1.19.18p11 BAD
Version 2.0.3 	BAD

Any ideas ?

Thanks
Mick Taylor



SMB.CONF
[global]
      security = server
	password server = dc-server
	create mask = 0770
	directory mask =0770

	wins support = no
	wins server = wins-server
	os level = 0
	prefered master = no
	browse list = no
	domain master = no
	browseable = yes

	printing = bsd
	print command = /usr/ucb/lpr -r -s -P%p %s
	lpq command = /usr/ucb/lpq -P%p
	lprm command = /usr/ucb/lprm -P%p %j
	printcap name = /etc/printcap

[home]
        path = /home
        read only = no
        guest ok = no

[home2]
        path = /home2
        read only = no
        guest ok = no
[home3]
        path = /home3
        read only = no
        guest ok = no
[home4]
        path = /home4
        read only = no
        guest ok = no
[home5]
        path = /home5
        read only = no
        guest ok = no

------------------------------


More information about the samba mailing list