summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/samba_libs.py
diff options
context:
space:
mode:
authorShwethaHP <spandura@redhat.com>2017-08-04 16:43:43 +0530
committerShwethaHP <spandura@redhat.com>2017-08-09 15:19:37 +0530
commit0a4cdc909d4f5cb60b5dba5f2ca360db8e74796f (patch)
treebd641dedeb422eb40b61b4e806349efc9a77f101 /glustolibs-gluster/glustolibs/gluster/samba_libs.py
parent3f38fd0b62eb0e2397e9bef4bcf8227a33f5361c (diff)
Providing configs to set volume options, group options when exporting volume as 'smb share',
'nfs-ganesha export' in the config yml. Reading the configs in the gluster_base_class and setting those configs when exporting the volumes as 'smb share' or 'nfs-ganesha export'. recommended options when exporting volume as 'smb share': group: "metadata-cache" cache-samba-metadata: "on" Change-Id: I86a118c7015eaedd849a0f6e8b613605df5b6c32 Signed-off-by: ShwethaHP <spandura@redhat.com>
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