Let's say that there is a file F on a Linux system EXT4. F is shared through Samba. First, I open F on a Windows client. Now, a process on the Linux system updates F. But the Windows client still sees the old version of F. Closing F and opening it again on the Windows client, or terminating the Linux process that updated the file, does not seem to refresh the file (get the latest file on the Linux system). The only thing that worked was restarting the Samba service. Is there any other way to refresh a directory/file on the Windows client, without restarting the Samba service?
1 Answer
This existing answer for another question worked. In short, in PowerShell run Remove-SmbMapping
, and try to re-open the file.
samba --version Version 4.16.2