• A
    CIFS: use DFS pathnames in SMB2+ Create requests · f0712928
    Aurelien Aptel 提交于
    When connected to a DFS capable share, the client must set the
    SMB2_FLAGS_DFS_OPERATIONS flag in the SMB2 header and use
    DFS path names: "<server>\<share>\<path>" *without* leading \\.
    
    Sources:
    
    [MS-SMB2] 3.2.5.5 Receiving an SMB2 TREE_CONNECT Response
    > TreeConnect.IsDfsShare MUST be set to TRUE, if the SMB2_SHARE_CAP_DFS
    > bit is set in the Capabilities field of the response.
    
    [MS-SMB2] 3.2.4.3 Application Requests Opening a File
    > If TreeConnect.IsDfsShare is TRUE, the SMB2_FLAGS_DFS_OPERATIONS flag
    > is set in the Flags field.
    
    [MS-SMB2] 2.2.13 SMB2 CREATE Request, NameOffset:
    > If SMB2_FLAGS_DFS_OPERATIONS is set in the Flags field of the SMB2
    > header, the file name includes a prefix that will be processed during
    > DFS name normalization as specified in section 3.3.5.9. Otherwise, the
    > file name is relative to the share that is identified by the TreeId in
    > the SMB2 header.
    Signed-off-by: NAurelien Aptel <aaptel@suse.com>
    Acked-by: NPavel Shilovsky <pshilov@microsoft.com>
    Signed-off-by: NSteve French <smfrench@gmail.com>
    f0712928
smb2pdu.c 91.8 KB