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