]> www.infradead.org Git - users/hch/configfs.git/commit
smb: client: handle lack of FSCTL_GET_REPARSE_POINT support
authorPaulo Alcantara <pc@manguebit.com>
Wed, 31 Jul 2024 13:23:39 +0000 (10:23 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Aug 2024 15:55:22 +0000 (10:55 -0500)
commit4b96024ef2296b1d323af327cae5e52809b61420
tree3bd0ce5c6c52f7bdf4f2f44fd6fe4ae626652cd4
parent8400291e289ee6b2bf9779ff1c83a291501f017b
smb: client: handle lack of FSCTL_GET_REPARSE_POINT support

As per MS-FSA 2.1.5.10.14, support for FSCTL_GET_REPARSE_POINT is
optional and if the server doesn't support it,
STATUS_INVALID_DEVICE_REQUEST must be returned for the operation.

If we find files with reparse points and we can't read them due to
lack of client or server support, just ignore it and then treat them
as regular files or junctions.

Fixes: 5f71ebc41294 ("smb: client: parse reparse point flag in create response")
Reported-by: Sebastian Steinbeisser <Sebastian.Steinbeisser@lrz.de>
Tested-by: Sebastian Steinbeisser <Sebastian.Steinbeisser@lrz.de>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/inode.c
fs/smb/client/reparse.c
fs/smb/client/reparse.h
fs/smb/client/smb2inode.c