diff options
Diffstat (limited to 'glustolibs-gluster')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/samba_libs.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |