summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/samba_libs.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/samba_libs.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/samba_libs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/samba_libs.py b/glustolibs-gluster/glustolibs/gluster/samba_libs.py
index a12e48855..8c70b6774 100644
--- a/glustolibs-gluster/glustolibs/gluster/samba_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/samba_libs.py
@@ -244,13 +244,13 @@ def share_volume_over_smb(mnode, volname, smb_users_info):
"""
g.log.info("Start sharing the volume over SMB")
- # Set volume option 'stat-prefetch' to 'off'.
- cmd = "gluster volume set %s stat-prefetch off" % volname
+ # Set volume option 'stat-prefetch' to 'on'.
+ cmd = "gluster volume set %s stat-prefetch on" % volname
ret, _, _ = g.run(mnode, cmd)
if ret != 0:
- g.log.error("Failed to set the volume option stat-prefetch off")
+ g.log.error("Failed to set the volume option stat-prefetch on")
return False
- g.log.info("Successfully set 'stat-prefetch' to 'off' on %s", volname)
+ g.log.info("Successfully set 'stat-prefetch' to 'on' on %s", volname)
# Set volume option 'server.allow-insecure' to 'on'.
cmd = "gluster volume set %s server.allow-insecure on" % volname