I have a fileshare on Windows 7 that I'm accessing from a linux (ubuntu lucid) virtual machine running in VirtualBox.
When I change a file in windows, then don't access it for a while (an hour or two or more) in the linux filesystem, it either uses the old/unchanged version of the file, or it uses a truncated or corrupted version of the file.
I'm using fstab and cifs, and haven't had any other problems.
Running mount -a doesn't update the caching - I'm not really sure whether it's caching at the windows side or linux.
The two actions that update to the newer version of a file are: - restarting the linux virtual machine - resaving the file with a different filesize
Is there a way to turn off or improve the caching?
I had a look through the Win7->folder->Sharing settings, and couldn't see anything useful there.