Allows automounted filesystem containing current view to time out, causing updir
Affected version
nautilus-3.36.2-1.fc32.x86_64
Steps to reproduce
- Create an autofs mount with a timeout short enough for observation (e.g. 10 seconds).
- Browse to a subfolder on that filesystem.
- Ensure nothing else is touching that subfolder, and wait.
Current behavior
Nautilus does not hold the browsed directory open, so if nothing else is using its filesystem, autofs times it out and unmounts it. Nautilus is notified that its current directory no longer exists, and steps up a directory. autofs then remounts the filesystem and the process repeats until we hit a non-automount filesystem.
Expected behavior
Like when I have changed directory to an automounted filesystem in the shell, the directory is held open so it does not time out, and there is no spontaneous updir. I suppose it could hold open any other resource that filesystem, for that matter. For example it could open() a .nautilus-(random)-lock at the root directory of the automounted filesystem and close() it when no longer on that filesystem.