fs/smb/client: avoid querying SMB2_OP_QUERY_WSL_EA for SMB3 POSIX

Avoid extra roundtrip

Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Ralph Boehme 2024-11-15 13:15:50 +01:00 committed by Steve French
parent 40384c840e
commit ca4b2c4607

View File

@ -943,7 +943,8 @@ int smb2_query_path_info(const unsigned int xid,
if (rc || !data->reparse_point)
goto out;
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
if (!tcon->posix_extensions)
cmds[num_cmds++] = SMB2_OP_QUERY_WSL_EA;
/*
* Skip SMB2_OP_GET_REPARSE if symlink already parsed in create
* response.