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)
committerGünther Deschner <gd@samba.org>
Mon, 25 Jun 2018 12:56:34 +0000 (14:56 +0200)
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 bffb5371d33a2be189b29d08770908c6e437f941..183e932535bec1759030483c5b9da381aa421223 100644 (file)
@@ -401,6 +401,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)))
        {