From 7b832ca01329894c57ccddea3156035cb856d353 Mon Sep 17 00:00:00 2001 From: Vijay Avuthu Date: Thu, 27 Dec 2018 11:13:06 +0530 Subject: setting user.cifs to on for all cifs volumes Change-Id: I4c0b5c9e39d1e7903a64ad9fe91c2feb6ecf7f8e --- glustolibs-gluster/glustolibs/gluster/samba_libs.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'glustolibs-gluster/glustolibs/gluster/samba_libs.py') diff --git a/glustolibs-gluster/glustolibs/gluster/samba_libs.py b/glustolibs-gluster/glustolibs/gluster/samba_libs.py index bffe6a12c..3051579ab 100644 --- a/glustolibs-gluster/glustolibs/gluster/samba_libs.py +++ b/glustolibs-gluster/glustolibs/gluster/samba_libs.py @@ -244,6 +244,14 @@ def share_volume_over_smb(mnode, volname, smb_users_info): """ g.log.info("Start sharing the volume over SMB") + # Set volume option 'user.cifs' to 'on'. + cmd = "gluster volume set %s user.cifs on" % volname + ret, _, _ = g.run(mnode, cmd) + if ret != 0: + g.log.error("Failed to set the volume option user.cifs on") + return False + g.log.info("Successfully set 'user.cifs' to 'on' on %s", volname) + # Set volume option 'stat-prefetch' to 'on'. cmd = "gluster volume set %s stat-prefetch on" % volname ret, _, _ = g.run(mnode, cmd) -- cgit