14f8ab
From 0769c5ddc78ea37b9a43ac35dd71ec8cea4b8da8 Mon Sep 17 00:00:00 2001
14f8ab
From: yinkui <13965432176@163.com>
14f8ab
Date: Fri, 16 Aug 2019 10:15:07 +0800
14f8ab
Subject: [PATCH 412/449] gluster-smb:add smb parameter when access gluster by
14f8ab
 cifs
14f8ab
14f8ab
Backport of https://review.gluster.org/23240
14f8ab
14f8ab
Change-Id: I9ff54f2ca6f86bb5b2f4740485a0159e1fd7785f
14f8ab
BUG: 1783232
14f8ab
Signed-off-by: yinkui <13965432176@163.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/202472
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 extras/hook-scripts/set/post/S30samba-set.sh     | 1 +
14f8ab
 extras/hook-scripts/start/post/S30samba-start.sh | 1 +
14f8ab
 2 files changed, 2 insertions(+)
14f8ab
14f8ab
diff --git a/extras/hook-scripts/set/post/S30samba-set.sh b/extras/hook-scripts/set/post/S30samba-set.sh
14f8ab
index d2a62d3..e73f00f 100755
14f8ab
--- a/extras/hook-scripts/set/post/S30samba-set.sh
14f8ab
+++ b/extras/hook-scripts/set/post/S30samba-set.sh
14f8ab
@@ -90,6 +90,7 @@ function add_samba_share () {
14f8ab
         STRING+="path = /\n"
14f8ab
         STRING+="read only = no\n"
14f8ab
         STRING+="guest ok = yes\n"
14f8ab
+        STRING+="kernel share modes = no\n"
14f8ab
         printf "$STRING"  >> ${CONFIGFILE}
14f8ab
 }
14f8ab
 
14f8ab
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
14f8ab
index 2854bdd..0d5a5ed 100755
14f8ab
--- a/extras/hook-scripts/start/post/S30samba-start.sh
14f8ab
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
14f8ab
@@ -89,6 +89,7 @@ function add_samba_share () {
14f8ab
         STRING+="path = /\n"
14f8ab
         STRING+="read only = no\n"
14f8ab
         STRING+="guest ok = yes\n"
14f8ab
+        STRING+="kernel share modes = no\n"
14f8ab
         printf "$STRING"  >> "${CONFIGFILE}"
14f8ab
 }
14f8ab
 
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab