Skip to content

Commit 7963178

Browse files
namjaejeonsmfrench
authored andcommitted
smb3: set COMPOUND_FID to FileID field of subsequent compound request
For an operation compounded with an SMB2 CREATE request, client must set COMPOUND_FID(0xFFFFFFFFFFFFFFFF) to FileID field of smb2 ioctl. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Fixes: 2e4564b ("smb3: add support stat of WSL reparse points for special file types") Reviewed-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 509a154 commit 7963178

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/cifs/smb2ops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,8 +3114,8 @@ smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
31143114
rqst[1].rq_nvec = SMB2_IOCTL_IOV_SIZE;
31153115

31163116
rc = SMB2_ioctl_init(tcon, server,
3117-
&rqst[1], fid.persistent_fid,
3118-
fid.volatile_fid, FSCTL_GET_REPARSE_POINT,
3117+
&rqst[1], COMPOUND_FID,
3118+
COMPOUND_FID, FSCTL_GET_REPARSE_POINT,
31193119
true /* is_fctl */, NULL, 0,
31203120
CIFSMaxBufSize -
31213121
MAX_SMB2_CREATE_RESPONSE_SIZE -

0 commit comments

Comments
 (0)