STEP20 - TODO smb2_tcon: report share as scale out if 'scale out share = yes'
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: behavioural changes

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 951aca19d330e3ea17fa49ad083dacb063620b16..5b11309cb0bf95c5fea5aa68f85d4a903688a1b7 100644 (file)
@@ -409,6 +409,11 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
        {
                *out_capabilities |= SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY;
        }
+       if (conn->protocol >= PROTOCOL_SMB2_22 &&
+           lp_scale_out_share(SNUM(tcon->compat)))
+       {
+               *out_capabilities |= SMB2_SHARE_CAP_SCALEOUT;
+       }
        if (conn->protocol >= PROTOCOL_SMB2_22 &&
            lp_cluster_share(SNUM(tcon->compat)))
        {