[opensuse] Outdated copies of Samba files on Windows 10 client
I have the problem, that a Windows 10 client used outdated copies of files, which are shared by a Samba 4.5.3 server. Setup: * Desktop/Server: Samba 4.5.3, openSUSE Tumbleweed current * Client: Windows 10 1607 as a KVM guest On the server I compile Java files with ANT. The resulting program.jar file is current on the server, but the client still sees old copies of program.jar even minutes after the ANT build. At first I thought, that Windows 10 caches the whole build directory. But newly created file show up immediately on the Windows side. I do not use any non-default locking or caching options in /etc/samba/smb.conf. I also don't use special caching on the Windows side. How can I resolv this problem? (My current workaround it to manually delete the ANT folder on Windows before each server ANT build.) My smb.conf: # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. [global] workgroup = WORKGROUP passdb backend = tdbsam printing = cups printcap name = cups printcap cache time = 750 cups options = raw name resolve order = wins map to guest = Bad User include = /etc/samba/dhcp.conf usershare allow guests = No add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ acl allow execute always = Yes domain logons = Yes domain master = Yes local master = Yes netbios name = cecilia os level = 65 preferred master = Yes security = user usershare max shares = 100 wins support = Yes profile acls = Yes veto files = /aquota.user/*.locky/ # see: http://lug.krems.cc/docu/samba/appb_02.html deadtime = 15 log level = 2 # see http://www.eggplant.pro/blog/faster-samba-smb-cifs-share-performance/ use sendfile = Yes [all] comment = All directories path = / create mask = 0664 directory mask = 0775 read only = No Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/01/2017 09:30 PM, Bjoern Voigt wrote:
I have the problem, that a Windows 10 client used outdated copies of files, which are shared by a Samba 4.5.3 server.
Time synchronization issues? Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/01/2017 09:30 PM, Bjoern Voigt wrote:
I have the problem, that a Windows 10 client used outdated copies of files, which are shared by a Samba 4.5.3 server. Time synchronization issues? Good idea, but probably not. Both server and client use a NTP time
Bernhard Voelker wrote: source. I also checked time and timezone manually. As I already wrote, the cached files on the Windows side are many minutes old and outdated. A time differences may be in milliseconds. Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/02/17 20:06, Bjoern Voigt wrote:
On 02/01/2017 09:30 PM, Bjoern Voigt wrote:
I have the problem, that a Windows 10 client used outdated copies of files, which are shared by a Samba 4.5.3 server. Time synchronization issues? Good idea, but probably not. Both server and client use a NTP time
Bernhard Voelker wrote: source. I also checked time and timezone manually.
As I already wrote, the cached files on the Windows side are many minutes old and outdated. A time differences may be in milliseconds.
iirc, there's something called inotify, where the OS tells an app that a file or directory has changed. I've noticed, quite often, that this doesn't seem to happen, so that's somewhere to investigate. I find, though, just doing a refresh (F5 on windows, moving away and back on dolphin) usually fixes the problem. A pain, I know, but that seems to be the way things are quite often, nowadays :-( Cheers, Wol -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Bernhard Voelker
-
Bjoern Voigt
-
Wols Lists