[lkml]   [2001]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: SMBFS reading & Time sync problem
On Thu, 27 Dec 2001, Eshwar D - CTD, Chennai. wrote:

> Hai,
> I am using kernel version 2.4.2. and samba version is 2.2.0. and

2.4.3 may have a fix for this if the size of the file changes. Upgrade to
a newer kernel and see if this doesn't work better there.

smbfs does not really support this kind of sharing anyway. It caches
things without having an "oplock" on the server. Without an oplock it
should always re-read everything (hard to do for mmap'ed files).

There is also an assumption in a lot of the code that the file does not
change on the server.

> To avoid this problem my suggestion is
> 1. While every write the modified time to be notified to sever by
> sending SMBsetattr.

That will cut the transfer rate in half (roughly) and there is no
guarantee that it will work as some servers do not seem to respond with
the recently written attributes.

I don't think that is the best way to do this. oplocks + proper
invalidation should be a lot safer. Setting attributes depends on the
clocks of the machines being somewhat in sync.

Please test 2.4.17 (or a more recent kernel from your vendor). If that
doesn't work could you then send me a testprogram/script that triggers
this. Thanks.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:14    [W:0.050 / U:2.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site