smb: client: handle lack of EA support in smb2_query_path_info()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 21 Jan 2025 18:25:36 +0000 (15:25 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Jan 2025 02:13:49 +0000 (20:13 -0600)
commit3681c74d342db75b0d641ba60de27bf73e16e66b
tree7c5a5c1d9bbf57670010f0a5febec9711cf0d430
parent056e91cbc9804f15704b5bc2f02f91c23b1abea1
smb: client: handle lack of EA support in smb2_query_path_info()

If the server doesn't support both EAs and reparse point in a file,
the SMB2_QUERY_INFO request will fail with either
STATUS_NO_EAS_ON_FILE or STATUS_EAS_NOT_SUPPORT in the compound chain,
so ignore it as long as reparse point isn't
IO_REPARSE_TAG_LX_(CHR|BLK), which would require the EAs to know about
major/minor numbers.

Reported-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2inode.c