Project

General

Profile

Actions

Bug #10698

closed

SMB client fails to connect to MacOS server

Added by Gordon Ross about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cifs - CIFS server and client
Start date:
2019-04-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Attempts to use the SMB client to connect to a Mac OSX SMB server fail during connection setup, reporting "device busy".

i.e.
smbutil view //user@macos
mount -F smbfs //user@macos/share /mnt

Actions #1

Updated by Gordon Ross about 3 years ago

This bug happens because the MacOS SMB server leaves "credits granted" at zero in the reply to our SMB Negotiate request. Windows and other servers set this to one.

SMB Negotiate is "special" because at that point (very early) in the conversation between client and server, we don't yet know if both parties can deal with SMB2 credits. The spec. says both sides should assume a credit charge of one and a credit grant of one.

The client can accommodate this by overriding the credit grant for this reply.

Actions #2

Updated by Gordon Ross about 3 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Electric Monk about 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 640abd28701e4370024630347e96eb61db782c91

commit  640abd28701e4370024630347e96eb61db782c91
Author: Gordon Ross <gwr@nexenta.com>
Date:   2019-04-08T01:37:42.000Z

    10698 SMB client fails to connect to MacOS server
    Reviewed by: Jason King <jason.king@joyent.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF