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