SMBMounter icon indicating copy to clipboard operation
SMBMounter copied to clipboard

SMB share with name similar to an existing volume is not auto-mounted

Open Valentin-N opened this issue 4 months ago • 3 comments

Auto-mounting fails for a SMB share with a name that is a substring of an existing volume name. Take the below example, where the existing volume is called foo_bar, while the SMB share name is foo.

/dev/disk3s7 on /Volumes/foo_bar (apfs, local, journaled, protect)
//user@host/foo on /Volumes/foo (smbfs, nodev, nosuid, mounted by user)

In this scenario, following a disconnection the app enters an inconsistent state where it thinks foo is already mounted when in reality it isn't. Thus, the app fails to re-mount the share.

Additionally, the UI seems to show the inconsistency. Take for example the screenshot below. The 1st share is foo and is in the weird state that shows the disconnect button while already disconnected. The 2nd share has a different name and is unaffected by this issue, so the app correctly shows the connect button.

Image

Valentin-N avatar Jul 28 '26 14:07 Valentin-N

Hi Valentin Thanks for the info. I fixed it in Version 1.4. Please try it out and give me some feedback if it works now. Kevin

KeepCoolCH avatar Jul 28 '26 19:07 KeepCoolCH

Thank you for the quick turn around. The issue is resolved now.

Valentin-N avatar Jul 28 '26 21:07 Valentin-N

Great 👍🏻

KeepCoolCH avatar Jul 28 '26 22:07 KeepCoolCH