]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: fix renaming of reparse points
authorPaulo Alcantara <pc@manguebit.com>
Sun, 26 Nov 2023 02:55:06 +0000 (23:55 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Jan 2024 21:46:06 +0000 (15:46 -0600)
commit7435d51b7ea2ab7801279c43ecd72063e9d5c92f
tree464f91149925132f710835da6b20aaadb48db0a1
parent67ec9949b0dfe78c99e110dd975eb7dc5645630c
smb: client: fix renaming of reparse points

The client was sending an SMB2_CREATE request without setting
OPEN_REPARSE_POINT flag thus failing the entire rename operation.

Fix this by setting OPEN_REPARSE_POINT in create options for
SMB2_CREATE request when the source inode is a repase point.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/cifssmb.c
fs/smb/client/inode.c
fs/smb/client/smb2inode.c
fs/smb/client/smb2proto.h