Network Share Links & Duplicate Volumes Mounted
We've noticed a new issue on workstations we've updated to OS X Sierra recently. Specifically, using our .inetloc files to connect to a share more than once causes a duplicate share to appear in the (hidden, by default) /Volumes folder. This duplicate share will be the same name of the share that was already mounted, but with a '-#' appended, with the # beginning at 1 and incrementing each time you double-click the shortcut again. Additionally, these folders do not show the standard 'mapped share' icon, but instead show a folder icon with a restricted access tag (red dot with white horizontal line).
To assist our users in reaching network shares on our various file servers (via SMB), we provide .inetloc shortcut links to each share on each users desktop. We create these by using the 'Connect to Server..." option in the Go menu in finder. After inputting our smb path, we select the whole link and drag to the desktop to create the shortcut .inetloc file for each share.
We've been able to test this same set of shortcuts on systems running 10.9, 10.10, and 10.11 and do not see the same behavior on these OS's. We can verify visually in Finder, and also within the /Volumes directory in Terminal using 'ls -la', that the duplicate volume folders do not appear when clicking our .inetloc links multiple times.
However, on several computers running 10.12.x, we are able to reproduce this behavior.
In practice, the biggest issue we've noted with this behavior is that when users forget they have already mounted the share via the link, they will click it again because a Finder window pops up immediately on that location. But, since the /Volumes folder is hidden by default, users are unaware that a new '-#' share has been mounted. Then, when attempting to save files that were already open FROM the share before it was duplicated BACK to the share, the saving application can get confused about the path to that file. Depending on the application used, the storage system in use, and the number of duplicated shares showing up in the /Volumes folder on the workstation, this can lead to lost data, failed save/rename operations, and who knows what else...
MacBook Pro with Retina display, macOS Sierra (10.12.2)