STEP20 - TODO smb2_tcon: report share as cluster share if "cluster share = true"
authorMichael Adam <obnox@samba.org>
Wed, 20 Jan 2016 23:25:37 +0000 (00:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 13:41:23 +0000 (14:41 +0100)
TODO: No further behaviour change yet...

Pair-Programmed-With: Guenther Deschner <gd@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Pair-Programmed-With: Michael Adam <obnox@samba.org>

source3/smbd/smb2_tcon.c

index bf709d8686e8a0115ff0f14c43a5c0f300f6994c..a4d9efdd2eebf5f9b19fc42790931f8fab6774a3 100644 (file)
@@ -404,6 +404,12 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                *out_share_flags |= SMB2_SHAREFLAG_ENCRYPT_DATA;
        }
 
+       if (conn->protocol >= PROTOCOL_SMB2_22 &&
+           lp_cluster_share(SNUM(tcon->compat)))
+       {
+               *out_capabilities |= SMB2_SHARE_CAP_CLUSTER;
+       }
+
        *out_maximal_access = tcon->compat->share_access;
 
        *out_tree_id = tcon->global->tcon_wire_id;