]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbdotconf: mark "aio write behind" with substitution="1"
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 14:54:45 +0000 (16:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:32 +0000 (10:25 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
docs-xml/smbdotconf/tuning/aiowritebehind.xml
source3/smbd/service.c

index c88cd97fa9702258870061d2d6b0399de06b6cbc..d60af7154fd102e2df75d12492b6665094f81053 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="aio write behind"
                  context="S"
                 type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>If Samba has been built with asynchronous I/O support,
index 1a708fc622c622f365be397ec9c1b18a850a8c9c..196d757ea712c991c564812dd50380880b9ee628 100644 (file)
@@ -530,6 +530,8 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
                                        const char *pdev)
 {
        struct smbd_server_connection *sconn = xconn->client->sconn;
+       const struct loadparm_substitution *lp_sub =
+               loadparm_s3_global_substitution();
        struct smb_filename *smb_fname_cpath = NULL;
        fstring dev;
        int ret;
@@ -824,7 +826,7 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
                set_namearray( &conn->veto_oplock_list,
                               lp_veto_oplock_files(talloc_tos(), snum));
                set_namearray( &conn->aio_write_behind_list,
-                               lp_aio_write_behind(talloc_tos(), snum));
+                               lp_aio_write_behind(talloc_tos(), lp_sub, snum));
        }
        smb_fname_cpath = synthetic_smb_fname(talloc_tos(),
                                        conn->connectpath,