Aurelien Aptel f0712928be CIFS: use DFS pathnames in SMB2+ Create requests
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: Aurelien Aptel <aaptel@suse.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2017-03-02 17:04:58 -06:00
..
2017-02-27 18:43:47 -08:00
2016-12-22 11:25:24 +00:00
2017-02-27 18:43:46 -08:00
2017-02-28 15:36:09 -08:00
2016-12-25 17:21:23 +01:00
2017-01-31 13:23:09 -05:00
2017-02-27 18:43:48 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:47 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:48 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2016-12-05 19:01:16 -05:00
2016-09-27 18:47:38 -04:00
2017-01-30 16:32:25 -08:00
2017-02-27 18:43:46 -08:00
2016-12-14 23:48:11 -05:00
2017-02-27 18:43:46 -08:00
2017-02-27 18:43:46 -08:00
2016-12-05 19:03:49 -05:00
2017-02-27 18:43:48 -08:00