Now IDE is able to determine the list of auto mounts. This helps a lot (otherwise it works wrong with these directories). But determining this list takes time; until it is detected, a fixed list is used.
So there are 2 problems:
1) after connect and until correct auto mounts are detected, file system can work wrong
2) file system behaviour is inconsistent (first it uses one list of auto mounts, then it changes it)
Ideal solving this problem requires adding more synchronization, which is error prone.
I propose just to remember the list of auto mounts from previous connect (or previous IDE session). This won't add delay and does not need synchronization.
fixed in d878b67652ee, b46bfd32cc57 on enum/release82
Integrated into 'main-silver', will be available in build *201612100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Vladimir Kvashin <firstname.lastname@example.org>
Log: refactoring berfore fixing #269000 - Auto mounts list should be restored on subsequent connection
(transplanted from d878b67652ee5b1b9a8920290141298046198ffe)