Mounted shares currently unmount themselves if a call to Remount fails. Examples of cases where this can occur is if a user switches to a different network or if they log out. By introducing a new dormant state to mounts, we hold mounts in an inactive state until a call to ReadDir is successful.
Steps to implement:
1. Flip flag to keep only non-authenticated shares in memory.
Authenticated shares will temporarily not be persisted in memory.
2. Implement dormant non-authenticated shares, so that they can still
remount upon a successful ReadDir.
3. Implement dormant authenticated shares.
4. Implement UI that pops up upon clicking on a dormant authenticated
share that allows users to reenter credentials.
5. Flip flags back to persist authenticated shares in memory.
Comment 1 by jimmyxgong@chromium.org
, Dec 12