]> www.infradead.org Git - users/hch/configfs.git/commit
smb: client: fix FSCTL_GET_REPARSE_POINT against NetApp
authorPaulo Alcantara <pc@manguebit.com>
Thu, 1 Aug 2024 21:12:39 +0000 (18:12 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 2 Aug 2024 15:56:02 +0000 (10:56 -0500)
commitddecea00f87f0c46e9c8339a7c89fb2ff891521a
treecaf8d2c19ac133a2bb3352b20a743635bef5a263
parent69ca1f57555f74142a4c241703c307cb31b54667
smb: client: fix FSCTL_GET_REPARSE_POINT against NetApp

NetApp server requires the file to be open with FILE_READ_EA access in
order to support FSCTL_GET_REPARSE_POINT, otherwise it will return
STATUS_INVALID_DEVICE_REQUEST.  It doesn't make any sense because
there's no requirement for FILE_READ_EA bit to be set nor
STATUS_INVALID_DEVICE_REQUEST being used for something other than
"unsupported reparse points" in MS-FSA.

To fix it and improve compatibility, set FILE_READ_EA & SYNCHRONIZE
bits to match what Windows client currently does.

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/smb2inode.c