[Samba] Refreshing file contents...

Urban Widmark urban at teststation.com
Fri Mar 29 02:40:08 GMT 2002


On Thu, 28 Mar 2002, Dave Fox wrote:

> I wrote a program that would open a file and read the contents, (file
> contains
> 
> 60 records at 2048 bytes per record)
> 
> On the windows box,  I would edit the file and change the contents of a
> record.
> 
> Back on the linux box,  this change would not appear for a significant
> amount of time,  which is a problem.

Kernel version on the linux box?
How long is "a significant amount of time"? 1s, 30s, 10minutes, ...

smbfs doesn't do oplocks or file locking or anything, and is generally not
being a nice client when it comes to having files opened at the same time
as other clients.

Some kernel versions have been worse than others at this (esp some older
2.2 versions).


If you are using a recent kernel version, a testprogram that triggers the
failure for the windows and linux sides would be nice. It should be
possible to just disable caching in smbfs.

/Urban





More information about the samba mailing list