smb: client: set correct d_type for reparse points under DFS mounts
authorPaulo Alcantara <pc@manguebit.com>
Fri, 2 Feb 2024 15:38:24 +0000 (12:38 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 8 Feb 2024 16:50:40 +0000 (10:50 -0600)
commit55c7788c37242702868bfac7861cdf0c358d6c3d
tree6967c092dd90ce6ccbea210625910968daec4c3b
parent45be0882c5f91e1b92e645001dd1a53b3bd58c97
smb: client: set correct d_type for reparse points under DFS mounts

Send query dir requests with an info level of
SMB_FIND_FILE_FULL_DIRECTORY_INFO rather than
SMB_FIND_FILE_DIRECTORY_INFO when the client is generating its own
inode numbers (e.g. noserverino) so that reparse tags still
can be parsed directly from the responses, but server won't
send UniqueId (server inode number)

Signed-off-by: Paulo Alcantara <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/readdir.c
fs/smb/client/smb2pdu.c