]> www.infradead.org Git - users/hch/misc.git/commit
cifs: Fix querying of WSL CHR and BLK reparse points over SMB1
authorPali Rohár <pali@kernel.org>
Thu, 26 Dec 2024 16:12:09 +0000 (17:12 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Apr 2025 20:49:19 +0000 (15:49 -0500)
commitef86ab131d9127dfbfa8f06e12441d05fdfb090b
treedfbeb7dc7a2056128761b36a2816904ce697afb6
parent56c0bea52cef0bb02c4d6c23669ef485b5f67c87
cifs: Fix querying of WSL CHR and BLK reparse points over SMB1

When reparse point in SMB1 query_path_info() callback was detected then
query also for EA $LXDEV. In this EA are stored device major and minor
numbers used by WSL CHR and BLK reparse points. Without major and minor
numbers, stat() syscall does not work for char and block devices.

Similar code is already in SMB2+ query_path_info() callback function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb1ops.c