vfs_glusterfs: print exact cmdline for disabling write-behind translator
authorGünther Deschner <gd@samba.org>
Tue, 24 Nov 2020 14:38:41 +0000 (15:38 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 27 Nov 2020 17:15:07 +0000 (17:15 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14486

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Nov 27 17:15:07 UTC 2020 on sn-devel-184

docs-xml/manpages/vfs_glusterfs.8.xml
source3/modules/vfs_glusterfs.c

index ca6085a0595ae31abc52216f58bdaf7f91f5ba1a..d25135e14ac3cd99f55588db763718a208b4a8fe 100644 (file)
                 translator and refuse to connect if detected.
                 Please disable the write-behind translator for the GlusterFS
                 volume to allow the plugin to connect to the volume.
+                The write-behind translator can easily be disabled via calling
+                <programlisting>
+                        gluster volume set &lt;volumename&gt; performance.write-behind off
+                </programlisting> on the commandline.
        </para>
         <para>
                 With GlusterFS versions >= 9, we silently bypass write-behind
-                translator during intial connect and failure is avoided.
+                translator during initial connect and failure is avoided.
         </para>
 
 </refsect1>
index c438a64d9beecfc32e99b1225d169ff49f1256e9..ebbde9353a9c6c424f971c1f04f48ba1ec10b3c6 100644 (file)
@@ -345,9 +345,12 @@ static int check_for_write_behind_translator(TALLOC_CTX *mem_ctx,
        if (write_behind_present) {
                DBG_ERR("Write behind translator is enabled for "
                        "volume (%s), refusing to connect! "
-                       "Please check the vfs_glusterfs(8) manpage for "
+                       "Please turn off the write behind translator by calling "
+                       "'gluster volume set %s performance.write-behind off' "
+                       "on the commandline. "
+                       "Check the vfs_glusterfs(8) manpage for "
                        "further details.\n",
-                       volume);
+                       volume, volume);
                return -1;
        }