[PATCH][CIFS] mount with "unix" mount option for SMB1 incorrectly handled

Steve French smfrench at gmail.com
Tue Jul 23 05:56:15 UTC 2024


When Andrew Bartlett mentioned problems using the SMB1 Unix Extensions to Samba
I noticed a couple of client bugs.  This fixes the second problem I noticed.

Although by default we negotiate CIFS Unix Extensions for SMB1 mounts
to Samba (and they work if the user does not specify "unix" or "posix"
or "linux" on mount), and we do properly handle when a user turns them
off with "nounix" mount parm, ... but with the  changes to the mount
API we broke cases where the user explicitly specified the "unix"
option (or equivalently "linux" or "posix") on mount with vers=1.0 to
Samba or other servers which support the CIFS Unix Extensions.

   "mount error(95): Operation not supported"

and logged:

   "CIFS: VFS: Check vers= mount option. SMB3.11 disabled but required
for POSIX extensions"

even though CIFS Unix Extensions are supported for vers=1.0  This
patch fixes the case where the user specifies both "unix" (or
equivalently "posix" or "linux") and "vers=1.0" on mount to a server
which supports the CIFS Unix Extensions.

See attached

-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cifs-mount-with-unix-mount-option-for-SMB1-incorrect.patch
Type: text/x-patch
Size: 2043 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20240723/0ad6dd1e/0001-cifs-mount-with-unix-mount-option-for-SMB1-incorrect.bin>


More information about the samba-technical mailing list