Skip to contentSkip to conversation

[4.13] Bad error message, old SMB protocol host.

DISCUSSION Robin 1 participant 1 message Aug 15, 2017

Subsystems (2)
lore
Share & tools
lore

Robin

author
#0 lore raw

When trying to mount an older SMB host share, the errors cifs produces are very cryptic. Such as CIFS VFS: cifs_mount failed w/return code = -112

Or
mount: mount //192.168.1.123/path/ on /mnt/path failed: Host is down

I reported this issue as a regression at first.
https://bugzilla.kernel.org/show_bug.cgi?id=196599
Thinking that cifs was just plain broken in this kernel as gvfs mounted the same share just fine.

Can this protocol mismatch scenario have it's own, more informative error message? As this will likely effect more people when this change reaches the bulk of users.