Skip to content

Commit 428285c

Browse files
pcacjrgregkh
authored andcommitted
smb: client: default to nonativesocket under POSIX mounts
commit 6b44530 upstream. SMB3.1.1 POSIX mounts require sockets to be created with NFS reparse points. Cc: linux-cifs@vger.kernel.org Cc: Ralph Boehme <slow@samba.org> Cc: David Howells <dhowells@redhat.com> Cc: <stable@vger.kernel.org> Reported-by: Matthew Richardson <m.richardson@ed.ac.uk> Closes: https://marc.info/?i=1124e7cd-6a46-40a6-9f44-b7664a66654b@ed.ac.uk Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c114609 commit 428285c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/client/fs_context.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
16741674
pr_warn_once("conflicting posix mount options specified\n");
16751675
ctx->linux_ext = 1;
16761676
ctx->no_linux_ext = 0;
1677+
ctx->nonativesocket = 1; /* POSIX mounts use NFS style reparse points */
16771678
}
16781679
break;
16791680
case Opt_nocase:

0 commit comments

Comments
 (0)